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

Unified Diff: examples/surfaces_app/surfaces_app.cc

Issue 1168993002: Update the native_viewport interface to allow specification of the surface configuration, currently… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Final cleanups Created 5 years, 6 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
Index: examples/surfaces_app/surfaces_app.cc
diff --git a/examples/surfaces_app/surfaces_app.cc b/examples/surfaces_app/surfaces_app.cc
index e254b5937dd65707fd020eb7fcafb4e8fcc1b68e..2e0762948cef0c9ba3741cd720605fd644b93961 100644
--- a/examples/surfaces_app/surfaces_app.cc
+++ b/examples/surfaces_app/surfaces_app.cc
@@ -39,7 +39,8 @@ class SurfacesApp : public ApplicationDelegate {
// Connect to the native viewport service and create a viewport.
app_impl_->ConnectToService("mojo:native_viewport_service", &viewport_);
- viewport_->Create(Size::From(size_), [](ViewportMetricsPtr metrics) {});
+ viewport_->Create(Size::From(size_), SurfaceConfiguration::New(),
+ [](ViewportMetricsPtr metrics) {});
viewport_->Show();
// Grab a ContextProvider associated with the viewport.
« no previous file with comments | « examples/spinning_cube/spinning_cube_app.cc ('k') | gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698