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

Unified Diff: cc/surfaces/display.cc

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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 | « cc/surfaces/display.h ('k') | cc/surfaces/frame_sink_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 8309f0b19cb9d3b00156763e00f82de91d985e21..f918e1d0202852bd9d8f754789f9f60623e14e3e 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -68,12 +68,12 @@ Display::~Display() {
void Display::Initialize(DisplayClient* client,
SurfaceManager* surface_manager,
- uint32_t compositor_surface_namespace) {
+ const FrameSinkId& frame_sink_id) {
DCHECK(client);
DCHECK(surface_manager);
client_ = client;
surface_manager_ = surface_manager;
- compositor_surface_namespace_ = compositor_surface_namespace;
+ frame_sink_id_ = frame_sink_id;
surface_manager_->AddObserver(this);
@@ -81,7 +81,7 @@ void Display::Initialize(DisplayClient* client,
// they are ready to receive a BeginFrameSource.
if (begin_frame_source_) {
surface_manager_->RegisterBeginFrameSource(begin_frame_source_.get(),
- compositor_surface_namespace_);
+ frame_sink_id_);
}
bool ok = output_surface_->BindToClient(this);
@@ -92,7 +92,7 @@ void Display::Initialize(DisplayClient* client,
}
void Display::SetSurfaceId(const SurfaceId& id, float device_scale_factor) {
- DCHECK_EQ(id.client_id(), compositor_surface_namespace_);
+ DCHECK(id.frame_sink_id() == frame_sink_id_);
if (current_surface_id_ == id && device_scale_factor_ == device_scale_factor)
return;
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/frame_sink_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698