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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2811813004: Surface Synchronization: Distinguish between dependencies and references (Closed)
Patch Set: Update remaining tests to correspond to new behavior Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 62654865f4d51e641bd820b3652b2b945f2c1adc..a7d1488d276a0b500afbb2edfbef2e93b1dd9c74 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1624,13 +1624,14 @@ CompositorFrameMetadata LayerTreeHostImpl::MakeCompositorFrameMetadata() const {
for (LayerImpl* surface_layer : active_tree_->SurfaceLayers()) {
SurfaceLayerImpl* surface_layer_impl =
static_cast<SurfaceLayerImpl*>(surface_layer);
- metadata.referenced_surfaces.push_back(
- surface_layer_impl->primary_surface_info().id());
- // We need to retain a reference to the fallback surface too so that it's
- // guaranteed to be available when needed.
- if (surface_layer_impl->fallback_surface_info().is_valid()) {
+ if (!settings_.enable_surface_synchronization) {
vmpstr 2017/04/11 18:35:17 nit: can you flip this to the positive and exchang
Fady Samuel 2017/04/11 19:39:24 Done.
metadata.referenced_surfaces.push_back(
- surface_layer_impl->fallback_surface_info().id());
+ surface_layer_impl->primary_surface_info().id());
+ } else {
+ if (surface_layer_impl->fallback_surface_info().is_valid()) {
+ metadata.referenced_surfaces.push_back(
+ surface_layer_impl->fallback_surface_info().id());
vmpstr 2017/04/11 18:35:17 hmm why do we not reference primary surface info i
Fady Samuel 2017/04/11 19:39:24 As the description says, fallbacks are references
+ }
}
}
if (!InnerViewportScrollLayer())

Powered by Google App Engine
This is Rietveld 408576698