Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: ui/gfx/gl/gl_surface_osmesa.h

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/gl/gl_surface_osmesa.h
===================================================================
--- ui/gfx/gl/gl_surface_osmesa.h (revision 86168)
+++ ui/gfx/gl/gl_surface_osmesa.h (working copy)
@@ -17,7 +17,7 @@
// surfaces can be resized and resizing preserves the contents.
class GLSurfaceOSMesa : public GLSurface {
public:
- explicit GLSurfaceOSMesa(const gfx::Size& size);
+ explicit GLSurfaceOSMesa(unsigned format, const gfx::Size& size);
virtual ~GLSurfaceOSMesa();
// Resize the back buffer, preserving the old content. Does nothing if the
@@ -32,9 +32,13 @@
virtual gfx::Size GetSize();
virtual void* GetHandle();
+ // Get the surface's format.
+ unsigned GetFormat();
+
private:
void AllocateBuffer(const Size& size);
+ unsigned format_;
gfx::Size size_;
scoped_array<int32> buffer_;

Powered by Google App Engine
This is Rietveld 408576698