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

Unified Diff: cc/surfaces/surface_manager.cc

Issue 2403573002: cc: Introduce mechanism to observe CompositorFrames submitted to new surfaceIDs (Closed)
Patch Set: Updated changes missed Created 4 years, 2 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.h ('k') | cc/surfaces/surface_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.cc
diff --git a/cc/surfaces/surface_manager.cc b/cc/surfaces/surface_manager.cc
index 027b8ff5f8b0aeff0279cc4e5e6f808e4ab10d24..c627b033a8adc4efa3fe13385983dde549131cd4 100644
--- a/cc/surfaces/surface_manager.cc
+++ b/cc/surfaces/surface_manager.cc
@@ -345,9 +345,18 @@ Surface* SurfaceManager::GetSurfaceForId(const SurfaceId& surface_id) {
bool SurfaceManager::SurfaceModified(const SurfaceId& surface_id) {
CHECK(thread_checker_.CalledOnValidThread());
bool changed = false;
- FOR_EACH_OBSERVER(SurfaceDamageObserver, observer_list_,
+ FOR_EACH_OBSERVER(SurfaceObserver, observer_list_,
OnSurfaceDamaged(surface_id, &changed));
return changed;
}
+void SurfaceManager::SurfaceCreated(const SurfaceId& surface_id,
+ const gfx::Size& frame_size,
+ float device_scale_factor) {
+ CHECK(thread_checker_.CalledOnValidThread());
+ FOR_EACH_OBSERVER(
+ SurfaceObserver, observer_list_,
+ OnSurfaceCreated(surface_id, frame_size, device_scale_factor));
+}
+
} // namespace cc
« no previous file with comments | « cc/surfaces/surface_manager.h ('k') | cc/surfaces/surface_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698