Граф коммитов

298 Коммитов

Автор SHA1 Сообщение Дата
Ethan Lin b4d6b03c03 Bug 1330945 - Part1. Apply opacity to webrender stacking context as an opacity filter. r=jrmuizel 2017-02-02 15:09:09 +08:00
Nicolas Silva c49c387b31 Bug 1333565 - Accidentally unapplied changes from the previous commit. r=jrmuizel 2017-01-27 16:08:17 -05:00
Nicolas Silva a106148e0e Bug 1333565 - Fix the epoch/transactionId plumbing when the render thread is enabled. r=jrmuizel 2017-01-27 15:30:18 -05:00
Jeff Muizelaar e56c66022e Bug 1333923. Update webrender bcf3c371086894f5e1d098ee60f0592abf01f6b3. r=gfx? 2017-01-25 17:31:23 -05:00
Jeff Muizelaar eb0b758e56 Bug 1333593. Add support for snapshotting with the RenderThread. r=nical 2017-01-24 23:29:34 -05:00
Kartikaya Gupta 6297f79dd0 Bug 1333505 - Some minor code cleanup. r=nical
MozReview-Commit-ID: 3qaIxt9To5j
2017-01-24 16:20:54 -05:00
Kartikaya Gupta 29dfe5930f Bug 1333505 - Some cosmetic cleanup (comments/whitespace/alpha-sorting). r=nical
MozReview-Commit-ID: 2DYABsBzSrs
2017-01-24 16:06:17 -05:00
Kartikaya Gupta bba4386e2f Bug 1333397 - Rename WRGlyphInstance to WrGlyphInstance for naming consistency. r=gfx?
MozReview-Commit-ID: K6Y5H7WOe87
2017-01-24 08:44:23 -05:00
Kartikaya Gupta 4aa491b578 Bug 1331792 - Stop using MOZ_MAKE_COMPILER_ASSUME_IS_UNREACHABLE in functions called from destructors to better work around VC++ compiler warnings. r=gfx?
MozReview-Commit-ID: Jh0OooS3ijl
2017-01-20 14:46:58 -05:00
Kartikaya Gupta 70fdf5ecb8 Bug 1331792 - Group things by type in webrender_ffi.h and fix up formatting to conform to Mozilla style. r=gfx?
MozReview-Commit-ID: 4AFSDRPYNI2
2017-01-20 14:44:26 -05:00
Kartikaya Gupta 34d50a426b Bug 1325627 - Ensure all serialized Wr* enums have sentinel values and are consistently defined as |enum class|. r=gfx?
MozReview-Commit-ID: 5Yfzg9T1W1q
2017-01-20 14:15:55 -05:00
Ryan Hunt b66f280583 Bug 1329739 - Specify a WrMixBlendMode for WebRenderLayer r=kats
--HG--
extra : amend_source : bfa6ad8ee9cc13ab292958040ccd0f8dded15e5f
extra : histedit_source : c33cb15304d3e5806b90f04f690e000d42a5f933
2017-01-19 17:57:18 -06:00
Jeff Muizelaar 568cd6614e Bug 1332465. Update webrender to 6c15d14bb6b786cad979407e6ed7b86949b4ae48 r=gfx? 2017-01-19 22:33:10 -05:00
Kartikaya Gupta 48a6c2c8d7 Bug 1328602 - Fix incorrect return type in ffi signature. r=gfx?
MozReview-Commit-ID: hbkWlWYkDP
2017-01-19 11:17:12 -05:00
Nicolas Silva ee383fa898 Bug 1328602 - Make it possible to enable the work-in-progress render thread code using MOZ_USE_RENDER_THREAD and ugly branching, hopefully temporarily. r=gfx? 2017-01-18 18:46:21 -05:00
Nicolas Silva 2eb8dbabc9 Bug 1328602 - Begin making it possible to not have a Compositor object. r=gfx? 2017-01-18 14:50:00 -05:00
sotaro ee359c1f8b Bug 1331828 - Fix ffi inconsistency of wr_readback_into_buffer() r=gfx? 2017-01-18 15:51:39 +09:00
Nicolas Silva 597e71680d Bug 1328602 - WError fix on Windows. r=kats? 2017-01-17 16:18:34 -05:00
Nicolas Silva 795ddcbcc7 Bug 1331515 - Replace the usage of some of the WebRender ffi types by their strongly typed equivalents. r=gfx? 2017-01-17 15:13:41 -05:00
Nicolas Silva 95c53d99a6 Bug 1328602 - Fix the image format conversion and some stylistic changes. r=jrmuizel? 2017-01-17 14:48:00 -05:00
Nicolas Silva b637815c6d Bug 1328602 - Implement forwarding events to the render thread through the render backend. r=gfx? 2017-01-17 14:46:31 -05:00
Nicolas Silva d8d26d90cf Bug 1331515 - More WR to Wr prefix conversion. r=gfx? 2017-01-17 10:17:38 -05:00
Nicolas Silva a2579a7676 Bug 1331515 - WR to Wr prefix conversion for more ffi types. r=gfx? 2017-01-17 09:53:57 -05:00
Nicolas Silva 0ece8a0f07 Bug 1331515 - Rename WRColor into WrColor. r=gfx? 2017-01-17 09:44:07 -05:00
Nicolas Silva 3dbccd2998 Bug 1331515 - Rename WRState into WrState. r=gfx? 2017-01-17 09:32:25 -05:00
Nicolas Silva bf5fc449f0 Bug 1331515 - Rename WRLayoutSize into WrLayoutSize. r=gfx? 2017-01-17 09:32:20 -05:00
Nicolas Silva 41c7fc068a Bug 1331515 - Rename WRRect into WrRect. r=gfx? 2017-01-17 09:32:16 -05:00
sotaro 1676904e38 Bug 1331541 - Replace gl::GetString() with gl::get_string() r=gfx? 2017-01-17 12:30:34 +09:00
Nicolas Silva 83339f9131 Bug 1331515 - Move some types to the mozilla::wr namespace. r=gfx? 2017-01-16 19:22:09 -05:00
Nicolas Silva c993a8f2b0 Bug 1331515 - Move webrender_bindings/src/webrender.h to webrender_bindings/webrender_ffi.h. r=gfx?
--HG--
rename : gfx/webrender_bindings/src/webrender.h => gfx/webrender_bindings/webrender_ffi.h
2017-01-16 19:22:01 -05:00
Nicolas Silva db18d11b92 Bug 1331515 - mozilla/webrender include path. r=gfx? 2017-01-16 19:21:52 -05:00
Nicolas Silva e66ff49a44 Bug 1331515 - Move webrender wrappers to the webrender_bindings directory. r=gfx?
--HG--
rename : gfx/layers/wr/RenderThread.cpp => gfx/webrender_bindings/RenderThread.cpp
rename : gfx/layers/wr/RenderThread.h => gfx/webrender_bindings/RenderThread.h
rename : gfx/layers/wr/RendererOGL.cpp => gfx/webrender_bindings/RendererOGL.cpp
rename : gfx/layers/wr/RendererOGL.h => gfx/webrender_bindings/RendererOGL.h
rename : gfx/layers/wr/WebRenderAPI.cpp => gfx/webrender_bindings/WebRenderAPI.cpp
rename : gfx/layers/wr/WebRenderAPI.h => gfx/webrender_bindings/WebRenderAPI.h
rename : gfx/layers/wr/WebRenderTypes.h => gfx/webrender_bindings/WebRenderTypes.h
2017-01-16 19:21:43 -05:00
Nicolas Silva 4fbb39e069 Bug 1328602 - Implement more WebRenderAPI methods. r=gfx? 2017-01-16 15:22:47 +01:00
Ryan Hunt 5d82b6b00b Bug 1328893 - Specify an ImageRendering for some WebRenderLayers r=kats
--HG--
extra : rebase_source : 7f5cc7445e156b47c2210d36d1db8eb35c8b1a44
extra : amend_source : 2d418c013850f2fff88596599bc2622a5eb82b2c
2017-01-13 11:59:07 -06:00
JerryShih 0c9d622bc9 Bug 1329574 - update WR binding for external image life-time updates. r=nical?
MozReview-Commit-ID: e5SZ345Rf2
2017-01-13 20:02:19 +08:00
JerryShih 1833411d22 Bug 1329574 - update webrender_bindings for Renderer options changes. r=gfx? 2017-01-13 20:02:19 +08:00
Nicolas Silva c95874efc9 Bug 1328602 - Start replacing wrstate with DisplayListBuilder. r=gfx? 2017-01-13 11:25:07 +01:00
Nicolas Silva e2d1fd765a Bug 1328602 - Provide alternative bindings that don't depend on WrWindowState. r=gfx? 2017-01-12 15:31:31 +01:00
Nicolas Silva b963768154 Bug 1328602 - Begin implementing creating/destroying WebRenderAPI objects. r=gfx? 2017-01-11 13:51:27 +01:00
Kartikaya Gupta cbabf2480f Bug 1329666 - Follow-up with small refactoring. r=jrmuizel?
MozReview-Commit-ID: HkW73OGgVAU
2017-01-10 14:35:18 -05:00
Nicolas Silva a069e3b6e6 Bug 1328602 - Begin implementing a C++ wrapper around WebRender's RenderApi. r=gfx? 2017-01-10 10:17:30 +01:00
Nicolas Silva 9f6448ef59 Bug 1328602 - Add a few comments explaining where some of the pieces are meant to fit. r=gfx? 2017-01-06 19:10:20 +01:00
Nicolas Silva f1b93535c4 Bug 1328602 - Start implementing the render thread. r=gfx? 2017-01-06 19:10:15 +01:00
Nicolas Silva d4effb9bcb Bug 1328602 - Expose some more WebRender initialization functions through the C bindings. r=gfx? 2017-01-06 19:10:08 +01:00
Nicolas Silva c349796b77 Bug 1328602 - Expose Renderer through the c bindings. r=gfx? 2017-01-06 19:10:03 +01:00
Jeff Muizelaar 7e23dc7608 Bug 1329666. Add an ImageMask parameter to push_stacking_context(). r=gfx?
This will be used for implementing mask layers.
2017-01-09 10:48:45 -05:00
Jeff Muizelaar 8c9b481358 Bug 1329652. wr-bindings: Build the clip region explicitly. r=gfx?
We'll want this when adding mask support.
2017-01-09 10:03:34 -05:00
Mason Chang 3a26207249 Bug 1329316. Enable AA and Subpixel AA for WR render options. r=gfx? 2017-01-06 22:40:59 -08:00
Mason Chang 5e1c34af71 Bug 1329314 - Add support for nsDisplayText webrender display item. r=jrmuizel? 2017-01-06 11:50:53 -08:00
Kartikaya Gupta e747fadcd2 Back out bug 1328602 (5 csets) for build bustage and test failures. r=bustage 2017-01-06 13:49:32 -05:00
Kartikaya Gupta e90faa1dbd Bug 1328602 - Follow-up to fix build bustage. r=gfx?
MozReview-Commit-ID: 3rOwR4gw8IO
2017-01-06 13:29:56 -05:00
Nicolas Silva 665b09377c Bug 1328602 - Add a few comments explaining where some of the pieces are meant to fit. r=gfx? 2017-01-06 19:10:20 +01:00
Nicolas Silva 5c440ad7ad Bug 1328602 - Start implementing the render thread. r=gfx? 2017-01-06 19:10:15 +01:00
Nicolas Silva 4ff68fd879 Bug 1328602 - Expose some more WebRender initialization functions through the C bindings. r=gfx? 2017-01-06 19:10:08 +01:00
Nicolas Silva a9829d0c64 Bug 1328602 - Expose Renderer through the c bindings. r=gfx? 2017-01-06 19:10:03 +01:00
Jeff Muizelaar 78ce9e5c93 Bug 1328973. Rename OpPushDLBuilder to OpDPPushStackingContext etc. r=gfx?
Rename these things to better match the webrender api
2017-01-05 14:49:15 -05:00
Jeff Muizelaar 0d16784b61 Bug 1328951. Rename root_dl_builder to dl_builder. r=gfx?
Now that we only have one dl_builder let's just call it that.
2017-01-05 13:58:28 -05:00
Ethan Lin 45ad9d0db8 Bug 1322079 - Convert WebRenderBorderLayer to webrender border display item. r=kats
MozReview-Commit-ID: Aq8idTWGj5d
2016-12-27 14:12:01 +08:00
Kartikaya Gupta a207b5db23 Bug 1325646 - Fix some warnings when building webrender_bindings. r=gfx?
MozReview-Commit-ID: 6Fw0j6p8HsI
2016-12-23 12:05:30 -05:00
Jeff Muizelaar 85ef280be5 Bug 1324965. Remove nested DisplayListBuilders. r=mchang?
This simplifies the logic around displaylist builders and
makes us push immediately instead of deferring it. The data
we used to pass to pop() is now passed to push().

This is also closer to what Servo does.

In a follow up I'll rename some of the methods to closer
align with the webrender names.

MozReview-Commit-ID: AfkwT7DzJ8o
2016-12-21 13:36:31 -05:00
Kartikaya Gupta 53a1603866 Revert tree back to commit 8a362f5c65fb. r=fix-messy-tree
MozReview-Commit-ID: 8ewcbgQsay9
2016-12-22 10:38:58 -05:00
JerryShih d3ed6a3313 Bug 1321144 - add some operators for WRExternalImageId and WRImageKey. r=gfx?
MozReview-Commit-ID: 441DP6hn2G5
2016-12-22 17:22:37 +08:00
JerryShih d5cc4bb246 Bug 1323143 - update WR binding for external image life-time updates. r=nical?
MozReview-Commit-ID: e5SZ345Rf2
2016-12-22 13:08:10 +08:00
Jeff Muizelaar 34eabc2d62 Bug 1324965. Remove nested DisplayListBuilders. r=mchang?
This simplifies the logic around displaylist builders and
makes us push immediately instead of deferring it. The data
we used to pass to pop() is now passed to push().

This is also closer to what Servo does.

In a follow up I'll rename some of the methods to closer
align with the webrender names.
2016-12-21 13:38:43 -05:00
sotaro 4dbcec85a4 Bug 1324648 - Use GLContext to get GL functions pointers for webrender r=nical 2016-12-21 13:22:04 +09:00
Kartikaya Gupta e51489a7fa Bug 1324472 - Update webrender_bindings to use LayoutRect instead of LayerRect. r=nical?
MozReview-Commit-ID: 1nt9NzR8mpm
2016-12-20 11:14:18 -05:00
Ethan Lin 0e70c8aa34 Bug 1324679 - Fix overflow area for wr_pop_dl_builder. r=nical? 2016-12-20 15:41:24 +08:00
Kartikaya Gupta 40ec6a29b5 Bug 1324472 - Add typed units and missing options in webrender_bindings to go with webrender update. r=gfx?
MozReview-Commit-ID: 2Kf4VHsQTrn
2016-12-19 14:29:47 -05:00
sotaro 03919c6190 Bug 1322956 - Fix wr_pop_dl_builder() break r=nical? 2016-12-12 15:12:30 +09:00
JerryShih 42ca26e278 Bug 1320320 - remove the missed-epoch-checking panic in wait_for_epoch() WR bindings. r=mchang?
If render_backend hasn't process any display_list yet, there will no epoch data in renderer. So, current_epoch() call will return None in that case.

MozReview-Commit-ID: CDJ2UJ8AHhT
2016-12-07 13:01:29 -10:00
JerryShih 48f010e6b3 Bug 1320320 - wait epochs ready before WR render() call. r=mchang?
wait for root_pipeline_id's and iframe's epochs ready before render() call.

MozReview-Commit-ID: AFVOmlaBmPp
2016-12-07 08:04:49 -10:00
JerryShih 5de4daa857 Bug 1320320 - handle pipeline epoch in WR binding. r=mchang?
move the epoch counting from gecko to WR binding

MozReview-Commit-ID: 8bc6Cy4HDYS
2016-12-07 08:04:49 -10:00
Jerry Shih 9e0a134399 Backed out changeset cd238a069da7
miss the Cargo update changeset.
2016-12-05 01:22:51 -10:00
JerryShih 9b40d2f3f6 Bug 1320320 - handle pipeline epoch in WR binding. r=mchang?
move the epoch counting from gecko to WR binding

MozReview-Commit-ID: IqHbOchFJIc
2016-12-05 01:16:03 -10:00
Mason Chang 32df29a172 Bug 1319170 - Fix build failure 2016-12-04 12:52:54 -08:00
Mason Chang 8225e91629 Bug 1319170. Readback gpu directly into shared texture buffer for reftests. r=sotaro? 2016-12-02 10:39:40 -08:00
Mason Chang c8ef7e4a47 Bug 1321654 - Assert which thread bindings.rs executes in. r=gfx? 2016-12-01 14:10:10 -08:00
Nicolas Silva 0e7017847a Bug 1321587 - WebRender update. r=gfx?
--HG--
rename : third_party/rust/rand/.gitignore => third_party/rust/threadpool/.gitignore
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/threadpool/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/threadpool/LICENSE-MIT
2016-12-01 18:09:55 +01:00
Jerry Shih a496200d27 Backed out changeset 2d3e477fd282
The flush function is removed by Bug 1321417.
2016-12-01 15:28:20 +08:00
JerryShih 8f601bd2c2 Bug 1320320 - flush and wait the last frame's data before webrender render() call. r=jmuizelaar?
MozReview-Commit-ID: 4wdvsrWeCsQ
2016-12-01 11:57:46 +08:00
Morris Tseng 1565dfd024 Merge 3c3cd985155f9a0c016b2087fce7a41482dfda5f to graphics. 2016-12-01 10:25:55 +08:00
Mason Chang 976884f26a Bug 1321417 - Use Epochs to wait for reftests to finish rendering. r=sotaro? 2016-11-30 15:59:47 -08:00
Mason Chang 06b15d89e0 Bug 1321095 Add an epoch for each frame in webrender. r=hshih? 2016-11-29 14:08:32 -08:00
JerryShih 3ba2bba5f2 Bug 1319284 - create a WR imageKey from an external texture. r=nical?
add wr_add_external_image_texture() func to create a WR imageKey from an external texture.

MozReview-Commit-ID: DJUsd15EKlw
2016-11-29 11:56:18 +08:00
Morris Tseng 133d7a894f Bug 1319646 - Toggle webrender profiler by preferences. r=kats?
MozReview-Commit-ID: DneWqzP34ux
2016-11-29 10:06:25 +08:00
Jerry Shih b73b0b4d0e Merge 8a3e765c52b2 to graphics.
--HG--
extra : amend_source : 3d41fc6e0bff2cad4fa71f3912d5a98077785dbc
2016-11-25 18:10:42 +08:00
Morris Tseng 2deb064663 Backed out changeset 2622d62d1f08 2016-11-24 10:55:16 +08:00
Morris Tseng 094e75bdee Bug 1319646 - Add a preference to enable/disable webrender profiler. r=jrmuizel?
MozReview-Commit-ID: 31349AWgDr9
2016-11-23 11:40:00 +08:00
Kartikaya Gupta f801c5b483 Bug 1319199 - Update gfx code to work with new webrender version. r=gfx?
The updated webrender doesn't take scroll IDs as part of the stacking context.
Instead, it has dedicated operations to push/pop scrolling layers. Since APZ
is currently disabled we don't really need this functionality. We will use it
in the future but for now we can remove the relevant code.

MozReview-Commit-ID: 9NpXvvgYSah
2016-11-22 09:53:55 -05:00
Kartikaya Gupta 59eaa36242 Bug 1319199 - Update webrender_bindings to opt-out of freetype. r=gfx?
Since webrender now re-exports the servo-freetype-sys option as a feature,
we can opt out of having that in webrender_bindings and use the webrender as
unmodified.

This patch also updates the README as the in-tree webrender is now exactly
the same as upstream webrender, which simplifies future updates to webrender.

MozReview-Commit-ID: 6JBtgjWIcn2
2016-11-22 09:52:56 -05:00
sotaro 81b6df55cb Bug 1317893 - Add CompositorVsyncScheduler to WebRenderBridgeParent r=kats 2016-11-22 11:56:38 +09:00
JerryShih ace55ba3b3 Bug 1319284 - check WR external image handler is valid before use. r=nical?
MozReview-Commit-ID: H8nLTrajRoN
2016-11-22 10:24:00 +08:00
JerryShih 9db97c3c96 Bug 1319284 - WR external image binding. r=nical?
MozReview-Commit-ID: 3CHWK6a8C17
2016-11-22 10:13:59 +08:00
Kartikaya Gupta 0bf678e8d3 Bug 1318100 - Minor cosmetic cleanup. r=mchang?
MozReview-Commit-ID: BuypOmNxpUJ
2016-11-21 10:16:11 -05:00
Mason Chang 5919ed4c3b Bug 1318100 - Add support for reftests in webrender. r=mstange 2016-11-18 16:10:53 -08:00
Mason Chang 1b2487ad39 Bug 1318761 - Followup cleanup of bindings.rs from kats and vlad. r=kats? 2016-11-18 13:58:49 -08:00
Mason Chang 0769c05c24 Bug 1318761 - Properly create nested stacking contexts in bindings.rs. r=kats? 2016-11-18 12:19:43 -08:00
Morris Tseng c258b15697 Bug 1316223 - Moving binding to separate folder. r=jrmuizel,kats
MozReview-Commit-ID: FLqSGebdGcH

--HG--
rename : gfx/webrender/src/bindings.rs => gfx/webrender_bindings/src/bindings.rs
rename : gfx/webrender/webrender.h => gfx/webrender_bindings/src/webrender.h
2016-11-18 13:02:05 -05:00