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

Issue 2919373002: cc: De-special-case SurfaceLayer code (Closed)

Created:
3 years, 6 months ago by Fady Samuel
Modified:
3 years, 6 months ago
CC:
chromium-reviews, sadrul, blink-reviews-platform-graphics_chromium.org, dshwang, kinuko+watch, mfoltz+watch_chromium.org, Stephen Chennney, rwlbuis, krit, drott+blinkwatch_chromium.org, jam, jbauman+watch_chromium.org, Rik, darin-cc_chromium.org, blink-reviews, kalyank, xjz+watch_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, fmalita+watch_chromium.org, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: De-special-case SurfaceLayer code Currently, there's a bunch of special casing for surface synchronization in cc::SurfaceLayer. This makes the code hard to read and reason about. This CL fixes the issue by unifying the two code paths. A Surface ID referenced as a fallback is always placed in |referenced_surfaces|, and a surface ID referenced as a primary surface is added to |activation_dependencies| if the fallback is valid and does not match the primary. This CL allows a single code path by setting both primary and fallback SurfaceInfos in all callsites. BUG=672962 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2919373002 Cr-Commit-Position: refs/heads/master@{#477166} Committed: https://chromium.googlesource.com/chromium/src/+/cc854aa517e80dbb782f0e2a01563103533cb6be

Patch Set 1 #

Patch Set 2 : Fix cloning. Simplify references #

Patch Set 3 : Fix cc_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -81 lines) Patch
M cc/layers/surface_layer.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/surface_layer.cc View 1 2 chunks +11 lines, -62 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/local/window_port_local.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M ui/compositor/layer.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
Fady Samuel
+piman@ please review content + cc
3 years, 6 months ago (2017-06-05 15:19:27 UTC) #5
piman
lgtm
3 years, 6 months ago (2017-06-05 16:50:38 UTC) #8
Fady Samuel
+sadrul@ for ui. +junov@ for offscreen canvas stuff.
3 years, 6 months ago (2017-06-05 18:07:32 UTC) #12
sadrul
lgtm
3 years, 6 months ago (2017-06-05 19:38:51 UTC) #17
Justin Novosad
lgtm
3 years, 6 months ago (2017-06-05 20:07:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2919373002/40001
3 years, 6 months ago (2017-06-06 00:49:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2919373002/40001
3 years, 6 months ago (2017-06-06 02:10:28 UTC) #26
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 03:04:02 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/cc854aa517e80dbb782f0e2a0156...

Powered by Google App Engine
This is Rietveld 408576698