| Index: ui/gfx/gl/gl_surface.h
|
| diff --git a/ui/gfx/gl/gl_surface.h b/ui/gfx/gl/gl_surface.h
|
| index d6523a2c3371745a5a5b7b426ba1fe6727b30d58..3f2027c2387eac7e5974ca241a2bfef5858f6eca 100644
|
| --- a/ui/gfx/gl/gl_surface.h
|
| +++ b/ui/gfx/gl/gl_surface.h
|
| @@ -71,14 +71,9 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
|
| // on error.
|
| virtual bool OnMakeCurrent(GLContext* context);
|
|
|
| - // Used for explicit buffer management. Expect buffers to be destroyed only
|
| - // when surface is not visible.
|
| - enum BufferAllocationState {
|
| - BUFFER_ALLOCATION_FRONT_AND_BACK,
|
| - BUFFER_ALLOCATION_FRONT_ONLY,
|
| - BUFFER_ALLOCATION_NONE
|
| - };
|
| - virtual void SetBufferAllocation(BufferAllocationState state);
|
| + // Used for explicit buffer management.
|
| + virtual void SetBackbufferAllocation(bool allocated);
|
| + virtual void SetFrontbufferAllocation(bool allocated);
|
|
|
| // Get a handle used to share the surface with another process. Returns null
|
| // if this is not possible.
|
| @@ -134,7 +129,8 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
|
| virtual void* GetHandle() OVERRIDE;
|
| virtual unsigned int GetBackingFrameBufferObject() OVERRIDE;
|
| virtual bool OnMakeCurrent(GLContext* context) OVERRIDE;
|
| - virtual void SetBufferAllocation(BufferAllocationState state) OVERRIDE;
|
| + virtual void SetBackbufferAllocation(bool allocated) OVERRIDE;
|
| + virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE;
|
| virtual void* GetShareHandle() OVERRIDE;
|
| virtual void* GetDisplay() OVERRIDE;
|
| virtual void* GetConfig() OVERRIDE;
|
|
|