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

Unified Diff: ui/gl/gl_surface_osmesa.h

Issue 1652873002: Android: Use virtualized context only for those with compatible config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 10 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
« no previous file with comments | « ui/gl/gl_surface_mac.cc ('k') | ui/gl/gl_surface_osmesa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_osmesa.h
diff --git a/ui/gl/gl_surface_osmesa.h b/ui/gl/gl_surface_osmesa.h
index 6c317ea3e92146fd1eee668e7d4581713014b255..d46a55c300ee8709914957339a5151d1144859a9 100644
--- a/ui/gl/gl_surface_osmesa.h
+++ b/ui/gl/gl_surface_osmesa.h
@@ -14,14 +14,12 @@
namespace gfx {
-enum OSMesaSurfaceFormat { OSMesaSurfaceFormatBGRA, OSMesaSurfaceFormatRGBA };
-
// A surface that the Mesa software renderer draws to. This is actually just a
// buffer in system memory. GetHandle returns a pointer to the buffer. These
// surfaces can be resized and resizing preserves the contents.
class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
public:
- GLSurfaceOSMesa(OSMesaSurfaceFormat format, const gfx::Size& size);
+ GLSurfaceOSMesa(GLSurface::Format format, const gfx::Size& size);
// Implement GLSurface.
bool Initialize(GLSurface::Format format) override;
@@ -33,14 +31,14 @@ class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
gfx::SwapResult SwapBuffers() override;
gfx::Size GetSize() override;
void* GetHandle() override;
- unsigned GetFormat() override;
+ GLSurface::Format GetFormat() override;
protected:
~GLSurfaceOSMesa() override;
private:
- unsigned format_;
gfx::Size size_;
+ GLSurface::Format format_;
scoped_ptr<int32_t[]> buffer_;
DISALLOW_COPY_AND_ASSIGN(GLSurfaceOSMesa);
« no previous file with comments | « ui/gl/gl_surface_mac.cc ('k') | ui/gl/gl_surface_osmesa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698