Chromium Code Reviews| Index: ui/gl/gl_surface.h |
| diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h |
| index 1302cce4e5331b558a502e4311fac3a1ed7e529a..190e5b7a455ca8fe8741c12a625de99f327802a6 100644 |
| --- a/ui/gl/gl_surface.h |
| +++ b/ui/gl/gl_surface.h |
| @@ -88,6 +88,10 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
| // on error. |
| virtual bool OnMakeCurrent(GLContext* context); |
| + // Called when the surface is bound as the current framebuffer for the |
| + // current context. |
| + virtual void WasBound(); |
|
Ken Russell (switch to Gerrit)
2014/12/12 02:30:44
Naming nit: consider NotifyWasBound or similar. Wa
ccameron
2014/12/12 16:17:36
Done. Yeah, I wasn't happy with this name either.
|
| + |
| // Used for explicit buffer management. |
| virtual bool SetBackbufferAllocation(bool allocated); |
| virtual void SetFrontbufferAllocation(bool allocated); |