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

Unified Diff: ui/gl/gl_surface_cgl.h

Issue 334173006: Clean up GLSurfaceCGL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 6 years, 6 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_context_cgl.cc ('k') | ui/gl/gl_surface_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_cgl.h
diff --git a/ui/gl/gl_surface_cgl.h b/ui/gl/gl_surface_cgl.h
deleted file mode 100644
index 4786acdb4a06323d8cdee8a3a8867e4a05f81649..0000000000000000000000000000000000000000
--- a/ui/gl/gl_surface_cgl.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_GL_GL_SURFACE_CGL_H_
-#define UI_GL_GL_SURFACE_CGL_H_
-
-#include "ui/gfx/size.h"
-#include "ui/gl/gl_surface.h"
-
-namespace gfx {
-
-// Base class for CGL surfaces.
-class GLSurfaceCGL : public GLSurface {
- public:
- GLSurfaceCGL();
-
- static bool InitializeOneOff();
- static void* GetPixelFormat();
-
- protected:
- virtual ~GLSurfaceCGL();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(GLSurfaceCGL);
-};
-
-// A "no-op" surface. It is not required that a CGLContextObj have an
-// associated drawable (pbuffer or fullscreen context) in order to be
-// made current. Everywhere this surface type is used, we allocate an
-// FBO at the user level as the drawable of the associated context.
-class GL_EXPORT NoOpGLSurfaceCGL : public GLSurfaceCGL {
- public:
- explicit NoOpGLSurfaceCGL(const gfx::Size& size);
-
- // Implement GLSurface.
- virtual bool Initialize() OVERRIDE;
- virtual void Destroy() OVERRIDE;
- virtual bool IsOffscreen() OVERRIDE;
- virtual bool SwapBuffers() OVERRIDE;
- virtual gfx::Size GetSize() OVERRIDE;
- virtual void* GetHandle() OVERRIDE;
- virtual void* GetDisplay() OVERRIDE;
-
- protected:
- virtual ~NoOpGLSurfaceCGL();
-
- private:
- gfx::Size size_;
-
- DISALLOW_COPY_AND_ASSIGN(NoOpGLSurfaceCGL);
-};
-
-} // namespace gfx
-
-#endif // UI_GL_GL_SURFACE_CGL_H_
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_surface_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698