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

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

Issue 20658002: gpu: Add GpuMemoryBufferFactory interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use CHECK_EQ Created 7 years, 5 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 | « android_webview/native/aw_contents.cc ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4fb70f6daf371f38b13c36e3ff03509594be2bd..9e38b1c84bf2041bad89f4334f0e809b62dc97af 100644
--- a/gpu/command_buffer/client/gl_in_process_context.h
+++ b/gpu/command_buffer/client/gl_in_process_context.h
@@ -21,15 +21,14 @@ namespace gles2 {
class GLES2Implementation;
}
-class GpuMemoryBuffer;
+class GpuMemoryBufferFactory;
class GLES2_IMPL_EXPORT GLInProcessContext {
public:
virtual ~GLInProcessContext() {}
- typedef scoped_ptr< ::gpu::GpuMemoryBuffer> GpuMemoryBufferCreator(
- int width, int height);
- static void SetGpuMemoryBufferCreator(GpuMemoryBufferCreator* creator);
+ // Must be called before any GLInProcessContext instances are created.
+ static void SetGpuMemoryBufferFactory(GpuMemoryBufferFactory* factory);
// Must be called before any GLInProcessContext instances are created.
// Default value is false.
« no previous file with comments | « android_webview/native/aw_contents.cc ('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