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])); |