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

Unified Diff: cc/surfaces/surface_dependency_tracker.cc

Issue 2803913004: cc: Introduce embedded_surfaces in metadata for surface Ids in draw quads (Closed)
Patch Set: Addressed Dana's comments 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
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_dependency_tracker.cc
diff --git a/cc/surfaces/surface_dependency_tracker.cc b/cc/surfaces/surface_dependency_tracker.cc
index 302a021b5ebba7dd15d8ed0f1bb2b2a5df17b3aa..9e059072223b3805029769c79d80e255e6156611 100644
--- a/cc/surfaces/surface_dependency_tracker.cc
+++ b/cc/surfaces/surface_dependency_tracker.cc
@@ -43,8 +43,7 @@ void SurfaceDependencyTracker::RequestSurfaceResolution(Surface* surface) {
// Referenced surface IDs that aren't currently known to the surface manager
// or do not have an active CompsotiorFrame block this frame.
- for (const SurfaceId& surface_id :
- pending_frame.metadata.referenced_surfaces) {
+ for (const SurfaceId& surface_id : pending_frame.metadata.embedded_surfaces) {
Surface* surface_dependency = surface_manager_->GetSurfaceForId(surface_id);
if (!surface_dependency || !surface_dependency->HasActiveFrame())
blocked_surfaces_from_dependency_[surface_id].insert(
@@ -117,10 +116,9 @@ void SurfaceDependencyTracker::OnSurfaceDiscarded(Surface* surface) {
const CompositorFrame& pending_frame = surface->GetPendingFrame();
- DCHECK(!pending_frame.metadata.referenced_surfaces.empty());
+ DCHECK(!pending_frame.metadata.embedded_surfaces.empty());
- for (const SurfaceId& surface_id :
- pending_frame.metadata.referenced_surfaces) {
+ for (const SurfaceId& surface_id : pending_frame.metadata.embedded_surfaces) {
auto it = blocked_surfaces_from_dependency_.find(surface_id);
if (it == blocked_surfaces_from_dependency_.end())
continue;
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698