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

Unified Diff: gpu/command_buffer/client/gl_in_process_context.h

Issue 143023005: Support multiple service instances with GLInProcessContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: gpu/command_buffer/client/gl_in_process_context.h
diff --git a/gpu/command_buffer/client/gl_in_process_context.h b/gpu/command_buffer/client/gl_in_process_context.h
index 6d96f131554a50ef9d1cbbc926544417a6918b97..188ed3434305f394587863bdf7244b9a605b7f0f 100644
--- a/gpu/command_buffer/client/gl_in_process_context.h
+++ b/gpu/command_buffer/client/gl_in_process_context.h
@@ -8,6 +8,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "gles2_impl_export.h"
+#include "gpu/command_buffer/service/in_process_command_buffer.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/gpu_preference.h"
@@ -64,7 +65,8 @@ class GLES2_IMPL_EXPORT GLInProcessContext {
// thread safe.
static GLInProcessContext* CreateWithSurface(
scoped_refptr<gfx::GLSurface> surface,
- bool share_resources,
+ scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
+ GLInProcessContext* share_context,
const GLInProcessContextAttribs& attribs,
gfx::GpuPreference gpu_preference);
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698