1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "android_webview/browser/aw_gl_surface.h" 6 7 namespace android_webview { 8 AwGLSurface()9AwGLSurface::AwGLSurface() : fbo_(0) {} 10 ~AwGLSurface()11AwGLSurface::~AwGLSurface() {} 12 Destroy()13void AwGLSurface::Destroy() { 14 } 15 IsOffscreen()16bool AwGLSurface::IsOffscreen() { 17 return false; 18 } 19 GetBackingFrameBufferObject()20unsigned int AwGLSurface::GetBackingFrameBufferObject() { 21 return fbo_; 22 } 23 SwapBuffers()24bool AwGLSurface::SwapBuffers() { 25 return true; 26 } 27 GetSize()28gfx::Size AwGLSurface::GetSize() { 29 return gfx::Size(1, 1); 30 } 31 GetHandle()32void* AwGLSurface::GetHandle() { 33 return NULL; 34 } 35 GetDisplay()36void* AwGLSurface::GetDisplay() { 37 return NULL; 38 } 39 SetBackingFrameBufferObject(unsigned int fbo)40void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { 41 fbo_ = fbo; 42 } 43 ResetBackingFrameBufferObject()44void AwGLSurface::ResetBackingFrameBufferObject() { 45 fbo_ = 0; 46 } 47 48 } // namespace android_webview 49