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

Unified Diff: cc/surfaces/surface.cc

Issue 1475643006: Revert of List all child surfaces (including occluded) in CompositorFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/quads/render_pass_unittest.cc ('k') | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.cc
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc
index 563415c20428948cd7240e7361c1dd245fd7d07f..8faff9898134a90754b42875429aae0e1ab91aed 100644
--- a/cc/surfaces/surface.cc
+++ b/cc/surfaces/surface.cc
@@ -66,7 +66,12 @@
std::vector<SurfaceId> new_referenced_surfaces;
if (current_frame_) {
- new_referenced_surfaces = current_frame_->metadata.referenced_surfaces;
+ for (auto& render_pass :
+ current_frame_->delegated_frame_data->render_pass_list) {
+ new_referenced_surfaces.insert(new_referenced_surfaces.end(),
+ render_pass->referenced_surfaces.begin(),
+ render_pass->referenced_surfaces.end());
+ }
}
if (previous_frame) {
« no previous file with comments | « cc/quads/render_pass_unittest.cc ('k') | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698