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

Unified Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2714973002: Fix check for changing SurfaceId. (Closed)
Patch Set: Add test for display root references. Created 3 years, 10 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
« no previous file with comments | « no previous file | cc/surfaces/compositor_frame_sink_support_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/compositor_frame_sink_support.cc
diff --git a/cc/surfaces/compositor_frame_sink_support.cc b/cc/surfaces/compositor_frame_sink_support.cc
index 96508cd305d7d4c0cd6a4ab86b2e83956407ebaa..6829117f79e72641657f8540d9917a941907e1c3 100644
--- a/cc/surfaces/compositor_frame_sink_support.cc
+++ b/cc/surfaces/compositor_frame_sink_support.cc
@@ -158,6 +158,8 @@ void CompositorFrameSinkSupport::ReferencedSurfacesChanged(
if (!surface_manager_->using_surface_references())
return;
+ SurfaceId last_surface_id = reference_tracker_.current_surface_id();
+
// Populate list of surface references to add and remove based on reference
// surfaces in current frame compared with the last frame. The list of
// surface references includes references from both the pending and active
@@ -166,7 +168,6 @@ void CompositorFrameSinkSupport::ReferencedSurfacesChanged(
active_referenced_surfaces,
pending_referenced_surfaces);
- SurfaceId last_surface_id = reference_tracker_.current_surface_id();
UpdateSurfaceReferences(last_surface_id, local_surface_id);
}
« no previous file with comments | « no previous file | cc/surfaces/compositor_frame_sink_support_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698