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

Unified Diff: ui/gl/gl_surface_osmesa.h

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Fix copyright notice on new files Created 3 years, 11 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_glx.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 3155c11cc5885a51290d7a8c63b67ba2ec52f0e3..55e92957806713a4b4cf05adb4d878163d74b411 100644
--- a/ui/gl/gl_surface_osmesa.h
+++ b/ui/gl/gl_surface_osmesa.h
@@ -21,10 +21,10 @@ namespace gl {
// surfaces can be resized and resizing preserves the contents.
class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
public:
- GLSurfaceOSMesa(GLSurface::Format format, const gfx::Size& size);
+ GLSurfaceOSMesa(GLSurfaceFormat format, const gfx::Size& size);
// Implement GLSurface.
- bool Initialize(GLSurface::Format format) override;
+ bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
bool Resize(const gfx::Size& new_size,
float scale_factor,
@@ -33,14 +33,14 @@ class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
gfx::SwapResult SwapBuffers() override;
gfx::Size GetSize() override;
void* GetHandle() override;
- GLSurface::Format GetFormat() override;
+ GLSurfaceFormat GetFormat() override;
protected:
~GLSurfaceOSMesa() override;
private:
gfx::Size size_;
- GLSurface::Format format_;
+ GLSurfaceFormat format_;
std::unique_ptr<int32_t[]> buffer_;
DISALLOW_COPY_AND_ASSIGN(GLSurfaceOSMesa);
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/gl/gl_surface_osmesa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698