Index: android_webview/browser/aw_gl_surface.cc |
diff --git a/android_webview/browser/aw_gl_surface.cc b/android_webview/browser/aw_gl_surface.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9264c3971c277dfc330229c801febbf294705677 |
--- /dev/null |
+++ b/android_webview/browser/aw_gl_surface.cc |
@@ -0,0 +1,48 @@ |
+// Copyright (c) 2013 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. |
+ |
+#include "android_webview/browser/aw_gl_surface.h" |
+ |
+namespace android_webview { |
+ |
+AwGLSurface::AwGLSurface() : fbo_(0) {} |
+ |
+AwGLSurface::~AwGLSurface() {} |
+ |
+void AwGLSurface::Destroy() { |
+} |
+ |
+bool AwGLSurface::IsOffscreen() { |
+ return false; |
+} |
+ |
+unsigned int AwGLSurface::GetBackingFrameBufferObject() { |
+ return fbo_; |
+} |
+ |
+bool AwGLSurface::SwapBuffers() { |
+ return true; |
+} |
+ |
+gfx::Size AwGLSurface::GetSize() { |
+ return gfx::Size(); |
+} |
+ |
+void* AwGLSurface::GetHandle() { |
+ return NULL; |
+} |
+ |
+void* AwGLSurface::GetDisplay() { |
+ return NULL; |
+} |
+ |
+void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { |
+ fbo_ = fbo; |
+} |
+ |
+void AwGLSurface::ResetBackingFrameBufferObject() { |
no sievers
2013/08/07 01:52:38
nit: Do we need this? :)
boliu
2013/08/07 02:58:48
I think it should be set back to 0, or maybe -1 in
|
+ fbo_ = 0; |
+} |
+ |
+} // namespace android_webview |