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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2688043002: Retain references to surfaces from both active AND pending CompositorFrames (Closed)
Patch Set: Added TODOs and addressed comments 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 | « cc/surfaces/surface_manager.cc ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index bdf2af36a38e5a329f77cf746c2c8549577d4f3b..648b0c865558998de8c04ee62980524fd07ead46 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -1171,9 +1171,9 @@ bool ContainsSurfaceId(cc::SurfaceId container_surface_id,
RenderWidgetHostViewChildFrame* target_view) {
if (!container_surface_id.is_valid())
return false;
- for (cc::SurfaceId id :
- GetSurfaceManager()->GetSurfaceForId(container_surface_id)
- ->referenced_surfaces()) {
+ for (cc::SurfaceId id : GetSurfaceManager()
+ ->GetSurfaceForId(container_surface_id)
+ ->active_referenced_surfaces()) {
if (id == target_view->SurfaceIdForTesting() ||
ContainsSurfaceId(id, target_view))
return true;
« no previous file with comments | « cc/surfaces/surface_manager.cc ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698