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 |
11 AwGLSurface::~AwGLSurface() {} | 11 AwGLSurface::~AwGLSurface() {} |
12 | 12 |
13 void AwGLSurface::Destroy() { | 13 void AwGLSurface::Destroy() { |
14 } | 14 } |
15 | 15 |
16 bool AwGLSurface::IsOffscreen() { | 16 bool AwGLSurface::IsOffscreen() { |
17 return false; | 17 return false; |
18 } | 18 } |
19 | 19 |
20 unsigned int AwGLSurface::GetBackingFrameBufferObject() { | 20 unsigned int AwGLSurface::GetBackingFrameBufferObject() { |
21 return fbo_; | 21 return fbo_; |
22 } | 22 } |
23 | 23 |
24 bool AwGLSurface::SwapBuffers() { | 24 gfx::SwapResult AwGLSurface::SwapBuffers() { |
25 return true; | 25 return gfx::SwapResult::SWAP_ACK; |
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 void* AwGLSurface::GetDisplay() { | 36 void* AwGLSurface::GetDisplay() { |
37 return NULL; | 37 return NULL; |
38 } | 38 } |
39 | 39 |
40 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { | 40 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { |
41 fbo_ = fbo; | 41 fbo_ = fbo; |
42 } | 42 } |
43 | 43 |
44 void AwGLSurface::ResetBackingFrameBufferObject() { | 44 void AwGLSurface::ResetBackingFrameBufferObject() { |
45 fbo_ = 0; | 45 fbo_ = 0; |
46 } | 46 } |
47 | 47 |
48 } // namespace android_webview | 48 } // namespace android_webview |
OLD | NEW |