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

Unified Diff: components/mus/ws/server_window_surface.cc

Issue 1496103002: Reusing base::IdType<...> to implement SurfaceId. Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-id-base
Patch Set: Created 5 years 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 | « components/mus/ws/display_manager_delegate.h ('k') | components/mus/ws/window_finder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window_surface.cc
diff --git a/components/mus/ws/server_window_surface.cc b/components/mus/ws/server_window_surface.cc
index 0ee1a52b57923144804731e2928a620e307327c4..4340e2445c926b87a13dcd0c7bb7a5de54aae425 100644
--- a/components/mus/ws/server_window_surface.cc
+++ b/components/mus/ws/server_window_surface.cc
@@ -101,7 +101,7 @@ bool ServerWindowSurface::ConvertSurfaceDrawQuad(
cc::SharedQuadState* sqs,
cc::RenderPass* render_pass) {
Id id = static_cast<Id>(
- input->surface_quad_state->surface.To<cc::SurfaceId>().id);
+ input->surface_quad_state->surface.To<cc::SurfaceId>().GetUnsafeValue());
WindowId other_window_id = WindowIdFromTransportId(id);
ServerWindow* other_window = window()->GetChildWindow(other_window_id);
if (!other_window) {
« no previous file with comments | « components/mus/ws/display_manager_delegate.h ('k') | components/mus/ws/window_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698