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

Unified Diff: cc/surfaces/surface_manager.cc

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: More cleanup 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
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

Powered by Google App Engine
This is Rietveld 408576698