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

Unified Diff: services/gles2/command_buffer_driver.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/gles2/command_buffer_driver.h
diff --git a/services/gles2/command_buffer_driver.h b/services/gles2/command_buffer_driver.h
index 6d1fd345063034232ab9321e6175c49cc233a8a8..d6a2f4be4971a35c28b85fb7527032b34bbcf99a 100644
--- a/services/gles2/command_buffer_driver.h
+++ b/services/gles2/command_buffer_driver.h
@@ -11,8 +11,10 @@
#include "base/single_thread_task_runner.h"
#include "base/timer/timer.h"
#include "mojo/services/gpu/public/interfaces/command_buffer.mojom.h"
+#include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
+#include "ui/gl/gl_surface.h"
namespace gpu {
class CommandBufferService;
@@ -45,12 +47,14 @@ class CommandBufferDriver {
// Offscreen.
CommandBufferDriver(gfx::GLShareGroup* share_group,
gpu::gles2::MailboxManager* mailbox_manager,
- gpu::SyncPointManager* sync_point_manager);
+ gpu::SyncPointManager* sync_point_manager,
+ gfx::SurfaceConfiguration requested_configuration);
abarth-chromium 2015/06/09 00:30:21 gfx::SurfaceConfiguration -> const gfx::SurfaceCon
iansf 2015/06/09 01:52:04 Done.
// Onscreen.
CommandBufferDriver(gfx::AcceleratedWidget widget,
gfx::GLShareGroup* share_group,
gpu::gles2::MailboxManager* mailbox_manager,
- gpu::SyncPointManager* sync_point_manager);
+ gpu::SyncPointManager* sync_point_manager,
+ gfx::SurfaceConfiguration requested_configuration);
abarth-chromium 2015/06/09 00:30:21 gfx::SurfaceConfiguration -> const gfx::SurfaceCon
iansf 2015/06/09 01:52:04 Done.
~CommandBufferDriver();
void set_client(scoped_ptr<Client> client) { client_ = client.Pass(); }
@@ -89,6 +93,7 @@ class CommandBufferDriver {
scoped_refptr<gfx::GLShareGroup> share_group_;
scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
scoped_refptr<gpu::SyncPointManager> sync_point_manager_;
+ gfx::SurfaceConfiguration requested_configuration_;
scoped_refptr<base::SingleThreadTaskRunner> context_lost_task_runner_;
base::Callback<void(int32_t)> context_lost_callback_;

Powered by Google App Engine
This is Rietveld 408576698