Index: gpu/command_buffer/service/gles2_cmd_decoder.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h |
index 297b9cfae811d73fe5deb35bc359013e9f041438..8cbbd80a8463fbdbc9ca997c7cbe43facac737b4 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h |
@@ -33,6 +33,7 @@ class Size; |
namespace gpu { |
struct Mailbox; |
+struct SyncToken; |
namespace gles2 { |
@@ -159,7 +160,14 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
// Set the surface associated with the default FBO. |
virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0; |
+ // Releases the surface associated with the GL context. |
+ // The decoder should not be used until a new surface is set. |
+ virtual void ReleaseSurface() = 0; |
+ |
virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0; |
+ virtual void TakeFrontBuffer(const Mailbox& mailbox) = 0; |
+ virtual void ReturnFrontBuffer(const Mailbox& mailbox, |
+ bool is_lost) = 0; |
// Resize an offscreen frame buffer. |
virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; |
@@ -201,6 +209,8 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; |
virtual void SetForceShaderNameHashingForTest(bool force) = 0; |
virtual uint32_t GetAndClearBackbufferClearBitsForTest(); |
+ virtual size_t GetSavedBackTextureCountForTest() = 0; |
+ virtual size_t GetCreatedBackTextureCountForTest() = 0; |
// Gets the QueryManager for this context. |
virtual QueryManager* GetQueryManager() = 0; |