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

Unified Diff: components/mus/surfaces/top_level_display_client.cc

Issue 1496103002: Reusing base::IdType<...> to implement SurfaceId. Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-id-base
Patch Set: Rebasing + dusting off... Created 4 years, 10 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 | « components/html_viewer/html_frame.cc ('k') | components/mus/ws/display_manager_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/top_level_display_client.cc
diff --git a/components/mus/surfaces/top_level_display_client.cc b/components/mus/surfaces/top_level_display_client.cc
index 106d3b1f56b5c23e52202963b0a9ae28d84e3055..2a70e4596f1001b298c0731e80a8a1efe16771b1 100644
--- a/components/mus/surfaces/top_level_display_client.cc
+++ b/components/mus/surfaces/top_level_display_client.cc
@@ -33,7 +33,8 @@ TopLevelDisplayClient::TopLevelDisplayClient(
: task_runner_(base::ThreadTaskRunnerHandle::Get()),
surfaces_state_(surfaces_state),
factory_(surfaces_state->manager(), this),
- cc_id_(static_cast<uint64_t>(surfaces_state->next_id_namespace()) << 32) {
+ cc_id_(cc::SurfaceId::FromUnsafeValue(
+ static_cast<uint64_t>(surfaces_state->next_id_namespace()) << 32)) {
factory_.Create(cc_id_);
display_.reset(new cc::Display(this, surfaces_state_->manager(), nullptr,
« no previous file with comments | « components/html_viewer/html_frame.cc ('k') | components/mus/ws/display_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698