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

Unified Diff: services/native_viewport/onscreen_context_provider.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
« no previous file with comments | « services/native_viewport/onscreen_context_provider.h ('k') | services/view_manager/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/onscreen_context_provider.cc
diff --git a/services/native_viewport/onscreen_context_provider.cc b/services/native_viewport/onscreen_context_provider.cc
index 90a98dc8106c6d02409526d842eb9e2b2a50aecb..fcdf54326ecf25a584c6b5a353fadfc6fd93adc6 100644
--- a/services/native_viewport/onscreen_context_provider.cc
+++ b/services/native_viewport/onscreen_context_provider.cc
@@ -11,7 +11,8 @@ namespace native_viewport {
OnscreenContextProvider::OnscreenContextProvider(
const scoped_refptr<gles2::GpuState>& state)
- : command_buffer_impl_(nullptr),
+ : requested_configuration_(gfx::SurfaceConfiguration()),
+ command_buffer_impl_(nullptr),
state_(state),
widget_(gfx::kNullAcceleratedWidget),
binding_(this) {
@@ -51,6 +52,7 @@ void OnscreenContextProvider::Create(
DCHECK(!command_buffer_impl_);
pending_create_callback_.Run(nullptr);
}
+
pending_listener_ = viewport_parameter_listener.Pass();
pending_create_callback_ = callback;
@@ -70,7 +72,7 @@ void OnscreenContextProvider::CreateAndReturnCommandBuffer() {
state_->sync_point_manager(),
make_scoped_ptr(new gles2::CommandBufferDriver(
widget_, state_->share_group(), state_->mailbox_manager(),
- state_->sync_point_manager())));
+ state_->sync_point_manager(), requested_configuration_)));
command_buffer_impl_->set_observer(this);
pending_create_callback_.Run(cb.Pass());
pending_create_callback_.reset();
« no previous file with comments | « services/native_viewport/onscreen_context_provider.h ('k') | services/view_manager/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698