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

Unified Diff: services/ui/ws/test_change_tracker.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 | « services/ui/ws/test_change_tracker.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_change_tracker.cc
diff --git a/services/ui/ws/test_change_tracker.cc b/services/ui/ws/test_change_tracker.cc
index 5c7e4d47da4b20e22a70cacf198e678cb8a342e3..1e7e0f30a373ace283012aad5e175e20ee88359e 100644
--- a/services/ui/ws/test_change_tracker.cc
+++ b/services/ui/ws/test_change_tracker.cc
@@ -426,15 +426,13 @@ void TestChangeTracker::OnTopLevelCreated(uint32_t change_id,
void TestChangeTracker::OnWindowSurfaceChanged(
Id window_id,
- const cc::SurfaceId& surface_id,
- const gfx::Size& frame_size,
- float device_scale_factor) {
+ const cc::SurfaceInfo& surface_info) {
Change change;
change.type = CHANGE_TYPE_SURFACE_CHANGED;
change.window_id = window_id;
- change.surface_id = surface_id;
- change.frame_size = frame_size;
- change.device_scale_factor = device_scale_factor;
+ change.surface_id = surface_info.id();
+ change.frame_size = surface_info.size_in_pixels();
+ change.device_scale_factor = surface_info.device_scale_factor();
AddChange(change);
}
« no previous file with comments | « services/ui/ws/test_change_tracker.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698