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; |