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

Unified Diff: services/native_viewport/onscreen_context_provider.h

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: 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: services/native_viewport/onscreen_context_provider.h
diff --git a/services/native_viewport/onscreen_context_provider.h b/services/native_viewport/onscreen_context_provider.h
index 46ab1b190448e322c0f1470090e9674c7618ca69..afaafff08153afd860c3ac30c8d79b545edea2ca 100644
--- a/services/native_viewport/onscreen_context_provider.h
+++ b/services/native_viewport/onscreen_context_provider.h
@@ -10,6 +10,7 @@
#include "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom.h"
#include "services/gles2/command_buffer_impl.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gl/gl_surface.h"
namespace gles2 {
class GpuState;
@@ -26,6 +27,8 @@ class OnscreenContextProvider : public mojo::ContextProvider,
void Bind(mojo::InterfaceRequest<mojo::ContextProvider> request);
void SetAcceleratedWidget(gfx::AcceleratedWidget widget);
+ void SetSurfaceConfiguration(
+ gfx::SurfaceConfiguration requested_configuration);
abarth-chromium 2015/06/09 00:30:21 const gfx::SurfaceConfiguration&
iansf 2015/06/09 01:52:04 Done.
private:
// mojo::ContextProvider implementation:
@@ -37,6 +40,7 @@ class OnscreenContextProvider : public mojo::ContextProvider,
void CreateAndReturnCommandBuffer();
+ gfx::SurfaceConfiguration requested_configuration_;
gles2::CommandBufferImpl* command_buffer_impl_;
scoped_refptr<gles2::GpuState> state_;
gfx::AcceleratedWidget widget_;

Powered by Google App Engine
This is Rietveld 408576698