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

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: 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/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 7668ce9bafafccfe139dd6c28b0722257a3dcdb1..311566b9e662ebe4994682fb8b27b3aed2c7872d 100644
--- a/components/mus/surfaces/top_level_display_client.cc
+++ b/components/mus/surfaces/top_level_display_client.cc
@@ -26,7 +26,8 @@ TopLevelDisplayClient::TopLevelDisplayClient(
const scoped_refptr<SurfacesState>& surfaces_state)
: 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