Chromium Code Reviews| Index: ui/gl/gl_surface_stub.h |
| diff --git a/ui/gl/gl_surface_stub.h b/ui/gl/gl_surface_stub.h |
| index 14e24b07e625f3c04788e25e3f83750b6b15b341..d57a1295ed809edad20e0cb4805ca7c4d0b40d2f 100644 |
| --- a/ui/gl/gl_surface_stub.h |
| +++ b/ui/gl/gl_surface_stub.h |
| @@ -12,11 +12,15 @@ namespace gfx { |
| // A GLSurface that does nothing for unit tests. |
| class GL_EXPORT GLSurfaceStub : public GLSurface { |
| public: |
| + GLSurfaceStub(); |
| + |
| void SetSize(const gfx::Size& size) { size_ = size; } |
| + void UpdateFBO(); |
|
joth
2013/08/04 00:45:16
may need a comment, or more verbose name
UpdateFbo
boliu
2013/08/05 16:58:24
Changed to SaveCurrentFBO. The FromContext bit is
|
| // Implement GLSurface. |
| virtual void Destroy() OVERRIDE; |
| virtual bool IsOffscreen() OVERRIDE; |
| + virtual unsigned int GetBackingFrameBufferObject(); |
| virtual bool SwapBuffers() OVERRIDE; |
| virtual gfx::Size GetSize() OVERRIDE; |
| virtual void* GetHandle() OVERRIDE; |
| @@ -25,6 +29,7 @@ class GL_EXPORT GLSurfaceStub : public GLSurface { |
| virtual ~GLSurfaceStub(); |
| private: |
| + unsigned int fbo_; |
| gfx::Size size_; |
| }; |