| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "android_webview/browser/aw_gl_surface.h" | 5 #include "android_webview/browser/aw_gl_surface.h" |
| 6 | 6 |
| 7 namespace android_webview { | 7 namespace android_webview { |
| 8 | 8 |
| 9 AwGLSurface::AwGLSurface() : fbo_(0) {} | 9 AwGLSurface::AwGLSurface() : fbo_(0) {} |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 gfx::Size AwGLSurface::GetSize() { | 28 gfx::Size AwGLSurface::GetSize() { |
| 29 return gfx::Size(1, 1); | 29 return gfx::Size(1, 1); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void* AwGLSurface::GetHandle() { | 32 void* AwGLSurface::GetHandle() { |
| 33 return NULL; | 33 return NULL; |
| 34 } | 34 } |
| 35 | 35 |
| 36 bool AwGLSurface::RepresentsNonOwnedSurface() { |
| 37 return true; |
| 38 } |
| 39 |
| 36 void* AwGLSurface::GetDisplay() { | 40 void* AwGLSurface::GetDisplay() { |
| 37 return NULL; | 41 return NULL; |
| 38 } | 42 } |
| 39 | 43 |
| 40 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { | 44 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { |
| 41 fbo_ = fbo; | 45 fbo_ = fbo; |
| 42 } | 46 } |
| 43 | 47 |
| 44 void AwGLSurface::ResetBackingFrameBufferObject() { | 48 void AwGLSurface::ResetBackingFrameBufferObject() { |
| 45 fbo_ = 0; | 49 fbo_ = 0; |
| 46 } | 50 } |
| 47 | 51 |
| 48 } // namespace android_webview | 52 } // namespace android_webview |
| OLD | NEW |