diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 23:59:20 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 23:59:20 +0000 |
commit | 9fd055dfc23c3ed743a893cf390f56d777316341 (patch) | |
tree | 5941e502d6dbb6544a6ac41df36e3e835c24c386 /ui/gfx/gl/gl_surface_wgl.cc | |
parent | 517717ba972b5948842f0a3fb62c550223f77a68 (diff) | |
download | chromium_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.cc')
-rw-r--r-- | ui/gfx/gl/gl_surface_wgl.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/gfx/gl/gl_surface_wgl.cc b/ui/gfx/gl/gl_surface_wgl.cc index 9c774d4..52772ff 100644 --- a/ui/gfx/gl/gl_surface_wgl.cc +++ b/ui/gfx/gl/gl_surface_wgl.cc @@ -60,10 +60,6 @@ GLSurfaceWGL::GLSurfaceWGL() { GLSurfaceWGL::~GLSurfaceWGL() { } -void* GLSurfaceWGL::GetDisplay() { - return g_display_dc; -} - bool GLSurfaceWGL::InitializeOneOff() { static bool initialized = false; if (initialized) @@ -166,7 +162,7 @@ bool GLSurfaceWGL::InitializeOneOff() { return true; } -HDC GLSurfaceWGL::GetDisplayDC() { +HDC GLSurfaceWGL::GetDisplay() { return g_display_dc; } |