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

Unified Diff: cc/surfaces/surface_manager.cc

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 12 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 63700bac2157841de59a30c3000f000ae757d774..34bd3948255f19625156ef54b0b5bdc6ae80e388 100644
--- a/cc/surfaces/surface_manager.cc
+++ b/cc/surfaces/surface_manager.cc
@@ -495,12 +495,10 @@ bool SurfaceManager::SurfaceModified(const SurfaceId& surface_id) {
return changed;
}
-void SurfaceManager::SurfaceCreated(const SurfaceId& surface_id,
- const gfx::Size& frame_size,
- float device_scale_factor) {
+void SurfaceManager::SurfaceCreated(const SurfaceInfo& surface_info) {
CHECK(thread_checker_.CalledOnValidThread());
for (auto& observer : observer_list_)
- observer.OnSurfaceCreated(surface_id, frame_size, device_scale_factor);
+ observer.OnSurfaceCreated(surface_info);
}
} // 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