Index: ui/gfx/gl/gl_surface.cc |
=================================================================== |
--- ui/gfx/gl/gl_surface.cc (revision 106500) |
+++ ui/gfx/gl/gl_surface.cc (working copy) |
@@ -4,6 +4,7 @@ |
#include "ui/gfx/gl/gl_surface.h" |
+#include "base/logging.h" |
#include "base/threading/thread_local.h" |
#include "ui/gfx/gl/gl_context.h" |
@@ -24,6 +25,11 @@ |
return true; |
} |
+bool GLSurface::Resize(const gfx::Size& size) { |
+ NOTIMPLEMENTED(); |
+ return false; |
+} |
+ |
unsigned int GLSurface::GetBackingFrameBufferObject() { |
return 0; |
} |
@@ -35,6 +41,26 @@ |
void GLSurface::SetVisible(bool visible) { |
} |
+void* GLSurface::GetShareHandle() { |
+ NOTIMPLEMENTED(); |
+ return NULL; |
+} |
+ |
+void* GLSurface::GetDisplay() { |
+ NOTIMPLEMENTED(); |
+ return NULL; |
+} |
+ |
+void* GLSurface::GetConfig() { |
+ NOTIMPLEMENTED(); |
+ return NULL; |
+} |
+ |
+unsigned GLSurface::GetFormat() { |
+ NOTIMPLEMENTED(); |
+ return 0; |
+} |
+ |
GLSurface* GLSurface::GetCurrent() { |
return current_surface_.Get(); |
} |
@@ -43,4 +69,62 @@ |
current_surface_.Set(surface); |
} |
+GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) { |
+} |
+ |
+GLSurfaceAdapter::~GLSurfaceAdapter() { |
+} |
+ |
+bool GLSurfaceAdapter::Initialize() { |
+ return surface_->Initialize(); |
+} |
+ |
+void GLSurfaceAdapter::Destroy() { |
+ surface_->Destroy(); |
+} |
+ |
+bool GLSurfaceAdapter::Resize(const gfx::Size& size) { |
+ return surface_->Resize(size); |
+} |
+ |
+bool GLSurfaceAdapter::IsOffscreen() { |
+ return surface_->IsOffscreen(); |
+} |
+ |
+bool GLSurfaceAdapter::SwapBuffers() { |
+ return surface_->SwapBuffers(); |
+} |
+ |
+gfx::Size GLSurfaceAdapter::GetSize() { |
+ return surface_->GetSize(); |
+} |
+ |
+void* GLSurfaceAdapter::GetHandle() { |
+ return surface_->GetHandle(); |
+} |
+ |
+unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { |
+ return surface_->GetBackingFrameBufferObject(); |
+} |
+ |
+bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { |
+ return surface_->OnMakeCurrent(context); |
+} |
+ |
+void* GLSurfaceAdapter::GetShareHandle() { |
+ return surface_->GetShareHandle(); |
+} |
+ |
+void* GLSurfaceAdapter::GetDisplay() { |
+ return surface_->GetDisplay(); |
+} |
+ |
+void* GLSurfaceAdapter::GetConfig() { |
+ return surface_->GetConfig(); |
+} |
+ |
+unsigned GLSurfaceAdapter::GetFormat() { |
+ return surface_->GetFormat(); |
+} |
+ |
} // namespace gfx |