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

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

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.cc
===================================================================
--- ui/gfx/gl/gl_surface_osmesa.cc (revision 86168)
+++ ui/gfx/gl/gl_surface_osmesa.cc (working copy)
@@ -8,7 +8,9 @@
namespace gfx {
-GLSurfaceOSMesa::GLSurfaceOSMesa(const gfx::Size& size) : size_(size) {
+GLSurfaceOSMesa::GLSurfaceOSMesa(unsigned format, const gfx::Size& size)
+ : format_(format),
+ size_(size) {
}
GLSurfaceOSMesa::~GLSurfaceOSMesa() {
@@ -63,6 +65,10 @@
return buffer_.get();
}
+unsigned GLSurfaceOSMesa::GetFormat() {
+ return format_;
+}
+
void GLSurfaceOSMesa::AllocateBuffer(const Size& size) {
buffer_.reset(new int32[size.GetArea()]);
memset(buffer_.get(), 0, size.GetArea() * sizeof(buffer_[0]));

Powered by Google App Engine
This is Rietveld 408576698