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

Unified Diff: cc/surfaces/surface_observer.h

Issue 2938833002: Add SurfaceWillDraw notification (Closed)
Patch Set: add unit test to verify that OnSurfaceWillDraw is called only for surfaces added to the CompositorF… Created 3 years, 6 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') | cc/test/fake_surface_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_observer.h
diff --git a/cc/surfaces/surface_observer.h b/cc/surfaces/surface_observer.h
index 5cf1c05225550bc128d13d900a3e38a5a121c45a..a8166a064829dde7152aab233f62e0488704ecde 100644
--- a/cc/surfaces/surface_observer.h
+++ b/cc/surfaces/surface_observer.h
@@ -37,6 +37,9 @@ class SurfaceObserver {
// and, thus, is expected to produce damage soon.
virtual void OnSurfaceDamageExpected(const SurfaceId& surface_id,
const BeginFrameArgs& args) = 0;
+
+ // Runs when a surface has been added to the aggregated CompositorFrame.
+ virtual void OnSurfaceWillDraw(const SurfaceId& surface_id) = 0;
};
} // namespace cc
« no previous file with comments | « cc/surfaces/surface_manager.cc ('k') | cc/test/fake_surface_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698