Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Issue 1430813002: cc: Fork OverlayCandidate to CALayerOverlay (Closed)

Created:
5 years, 1 month ago by ccameron
Modified:
5 years, 1 month ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fork OverlayCandidate to CALayerOverlay Create a CALayerOverlay which encapsulates all of the state that we can use to represent a Overlay as a CALayer so far. Since this is much more than can be represented by hardware overlays, fork this from the overlay code. Add a method to the OverlayValidator to indicate if using CALayers is appropriate on a particular platform at a particular time. Add a ProcessForCALayers method to OverlayProcessor, which, if successful, replaces all quads with CALayers, and removes the overlay for the backbuffer. Of note is that many more DrawQuad features may be used by CALayers (e.g, 3D transforms, nontrivial clipping) in the future. Remove the AllOrNothing strategy, since this will be taking its place. BUG=533690 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/35db390a4fe9bef22036e69683cdbcce0c6f9a49 Cr-Commit-Position: refs/heads/master@{#360163}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Cleaned up version #

Patch Set 4 : Everything but tests #

Patch Set 5 : Tests, lots of them! #

Patch Set 6 : Fix init in tests #

Total comments: 4

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -183 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
A cc/output/ca_layer_overlay.h View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
A cc/output/ca_layer_overlay.cc View 1 2 3 4 1 chunk +187 lines, -0 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 5 6 2 chunks +31 lines, -18 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 2 chunks +27 lines, -0 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 6 chunks +46 lines, -2 lines 0 comments Download
M cc/output/overlay_candidate_validator.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/output/overlay_processor.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M cc/output/overlay_processor.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
D cc/output/overlay_strategy_all_or_nothing.h View 1 2 1 chunk +0 lines, -36 lines 0 comments Download
D cc/output/overlay_strategy_all_or_nothing.cc View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 6 chunks +115 lines, -72 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 4 5 5 chunks +13 lines, -4 lines 0 comments Download
M content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
ccameron
This sets up the foundation for the Mac-specific overlay-like path that we discussed in https://codereview.chromium.org/1394403002/ ...
5 years, 1 month ago (2015-11-01 09:58:32 UTC) #2
ccameron
This is ready to go now. Ptal.
5 years, 1 month ago (2015-11-12 05:05:18 UTC) #4
alexst (slow to review)
https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc File cc/output/ca_layer_overlay.cc (right): https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc#newcode18 cc/output/ca_layer_overlay.cc:18: bool FromIOSurfaceQuad(ResourceProvider* resource_provider, const ResourceProvider? I don't see anything ...
5 years, 1 month ago (2015-11-12 14:36:18 UTC) #5
ccameron
https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc File cc/output/ca_layer_overlay.cc (right): https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc#newcode18 cc/output/ca_layer_overlay.cc:18: bool FromIOSurfaceQuad(ResourceProvider* resource_provider, On 2015/11/12 14:36:18, alexst (slow to ...
5 years, 1 month ago (2015-11-12 17:31:47 UTC) #6
alexst (slow to review)
On 2015/11/12 17:31:47, ccameron wrote: > https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc > File cc/output/ca_layer_overlay.cc (right): > > https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc#newcode18 > ...
5 years, 1 month ago (2015-11-12 18:58:20 UTC) #7
reveman
On 2015/11/12 at 18:58:20, alexst wrote: > On 2015/11/12 17:31:47, ccameron wrote: > > https://codereview.chromium.org/1430813002/diff/100001/cc/output/ca_layer_overlay.cc ...
5 years, 1 month ago (2015-11-13 17:07:44 UTC) #8
ccameron
Is this good to go?
5 years, 1 month ago (2015-11-14 00:12:55 UTC) #9
ccameron
On 2015/11/14 00:12:55, ccameron wrote: > Is this good to go? Ping on this.
5 years, 1 month ago (2015-11-16 22:43:28 UTC) #10
reveman
lgtm % alexst's overlay owner review
5 years, 1 month ago (2015-11-16 23:18:53 UTC) #11
alexst (slow to review)
lgtm, the motivation for splitting up makes sense.
5 years, 1 month ago (2015-11-17 13:21:17 UTC) #12
ccameron
Thanks!
5 years, 1 month ago (2015-11-17 19:35:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430813002/100001
5 years, 1 month ago (2015-11-17 19:36:01 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/95609) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-17 19:39:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430813002/120001
5 years, 1 month ago (2015-11-17 20:46:15 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-17 21:23:03 UTC) #22
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 21:24:00 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/35db390a4fe9bef22036e69683cdbcce0c6f9a49
Cr-Commit-Position: refs/heads/master@{#360163}

Powered by Google App Engine
This is Rietveld 408576698