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

Unified Diff: services/ui/public/cpp/window_tree_client.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/public/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index 2dbd61dd354b6bb1c5bc9d04d252542424f2c165..ecbc6281d0326758ab4e4e3bfe39c27883166c38 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -1140,17 +1140,11 @@ void WindowTreeClient::OnWindowPredefinedCursorChanged(
void WindowTreeClient::OnWindowSurfaceChanged(
Id window_id,
- const cc::SurfaceId& surface_id,
- const gfx::Size& frame_size,
- float device_scale_factor) {
+ const cc::SurfaceInfo& surface_info) {
Window* window = GetWindowByServerId(window_id);
if (!window)
return;
- std::unique_ptr<SurfaceInfo> surface_info(base::MakeUnique<SurfaceInfo>());
- surface_info->surface_id = surface_id;
- surface_info->frame_size = frame_size;
- surface_info->device_scale_factor = device_scale_factor;
- WindowPrivate(window).LocalSetSurfaceId(std::move(surface_info));
+ WindowPrivate(window).LocalSetSurfaceInfo(surface_info);
}
void WindowTreeClient::OnDragDropStart(
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698