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

Unified Diff: services/native_viewport/native_viewport_impl.cc

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « services/native_viewport/native_viewport_impl.h ('k') | services/native_viewport/viewport_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/native_viewport_impl.cc
diff --git a/services/native_viewport/native_viewport_impl.cc b/services/native_viewport/native_viewport_impl.cc
index bfc701acb8cda215dedebdabcadcf08e055ef612..65eed1063befd39b37a5cb27b47185f423d0736f 100644
--- a/services/native_viewport/native_viewport_impl.cc
+++ b/services/native_viewport/native_viewport_impl.cc
@@ -37,7 +37,7 @@ NativeViewportImpl::NativeViewportImpl(mojo::ApplicationImpl* app,
metrics_(mojo::ViewportMetrics::New()),
waiting_for_event_ack_(false),
weak_factory_(this) {
- app->ConnectToService("mojo:surfaces_service", &surfaces_service_);
+ app->ConnectToService("mojo:surfaces_service", &surface_);
// TODO(jamesr): Should be mojo_gpu_service
app->ConnectToService("mojo:native_viewport_service", &gpu_service_);
}
@@ -84,8 +84,7 @@ void NativeViewportImpl::SubmittedFrame(mojo::SurfaceIdPtr child_surface_id) {
// TODO(jamesr): When everything is converted to surfaces initialize this
// eagerly.
viewport_surface_.reset(new ViewportSurface(
- surfaces_service_.get(), gpu_service_.get(),
- metrics_->size.To<gfx::Size>(),
+ surface_.Pass(), gpu_service_.get(), metrics_->size.To<gfx::Size>(),
child_surface_id.To<cc::SurfaceId>()));
if (widget_id_)
viewport_surface_->SetWidgetId(widget_id_);
« no previous file with comments | « services/native_viewport/native_viewport_impl.h ('k') | services/native_viewport/viewport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698