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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 1136006: Calling OpenGL from the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.h (revision 42644)
+++ gpu/command_buffer/service/gles2_cmd_decoder.h (working copy)
@@ -15,6 +15,8 @@
#if defined(OS_MACOSX)
#include "app/surface/transport_dib.h"
#endif
+
+#include "gfx/size.h"
#include "gpu/command_buffer/service/common_decoder.h"
@@ -71,14 +73,20 @@
Callback1<TransportDIB::Id>::Type* deallocator) = 0;
#endif
- // Initializes the graphics context.
+ // Initializes the graphics context. Can create an offscreen
+ // decoder with a frame buffer that can be referenced from the parent.
// Returns:
// true if successful.
- virtual bool Initialize() = 0;
+ virtual bool Initialize(GLES2Decoder* parent,
+ const gfx::Size& size,
+ uint32 parent_texture_id) = 0;
// Destroys the graphics context.
virtual void Destroy() = 0;
+ // Resize an offscreen frame buffer.
+ virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0;
+
// Make this decoder's GL context current.
virtual bool MakeCurrent() = 0;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698