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

Unified Diff: ui/aura/mus/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 | « ui/aura/mus/window_tree_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 41475eefcf7f15090f658b8aad92413a6a191cf2..e9d1c0772d7a3ed3e42a9dae278a8516cec18268 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1222,17 +1222,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) {
WindowMus* 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;
- window->SetSurfaceIdFromServer(std::move(surface_info));
+ window->SetSurfaceInfoFromServer(surface_info);
}
void WindowTreeClient::OnDragDropStart(
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698