summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl/gl_surface_wgl.h
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 23:59:20 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 23:59:20 +0000
commit9fd055dfc23c3ed743a893cf390f56d777316341 (patch)
tree5941e502d6dbb6544a6ac41df36e3e835c24c386 /ui/gfx/gl/gl_surface_wgl.h
parent517717ba972b5948842f0a3fb62c550223f77a68 (diff)
downloadchromium_src-9fd055dfc23c3ed743a893cf390f56d777316341.zip
chromium_src-9fd055dfc23c3ed743a893cf390f56d777316341.tar.gz
chromium_src-9fd055dfc23c3ed743a893cf390f56d777316341.tar.bz2
Revert 107243 - Added GLSurfaceAdapter, an implementation of GLSurface that forwards all calls to another instance of GLSurface.
This is to allow new implementations of GLSurface that "derive" from different implementations selected at runtime. For example an ImageTransportSurface might derive from either GLSurfaceOSMesa or GLSurfaceGLX depending on the current GL backend in use. See http://codereview.chromium.org/8060045/. Other yak shaving includes: - Ensure no GLContext implementations do not assume that they can statically cast a GLSurface to a particular concrete type. E.g. GLContextGLX might actually be working together with a GLSurfaceAdapter derived class that delegates out to the actual GLSurfaceGLX. To that end, I made all the classes implement the likes of GetDisplay as virtuals rather than statics in the same way as we already did with GLSurfaceEGL. - Add a Resize method to GLSurfaceEGL to allow resizing of a shared pbuffer surface. - Add a method to get the D3D share handle for a PbufferGLSurfaceEGL Review URL: http://codereview.chromium.org/8390011 TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/8395027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/gl/gl_surface_wgl.h')
-rw-r--r--ui/gfx/gl/gl_surface_wgl.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/gfx/gl/gl_surface_wgl.h b/ui/gfx/gl/gl_surface_wgl.h
index 7a4ed69..bb4b71b 100644
--- a/ui/gfx/gl/gl_surface_wgl.h
+++ b/ui/gfx/gl/gl_surface_wgl.h
@@ -16,11 +16,8 @@ class GLSurfaceWGL : public GLSurface {
GLSurfaceWGL();
virtual ~GLSurfaceWGL();
- // Implement GLSurface.
- virtual void* GetDisplay();
-
static bool InitializeOneOff();
- static HDC GetDisplayDC();
+ static HDC GetDisplay();
private:
DISALLOW_COPY_AND_ASSIGN(GLSurfaceWGL);