Chromium Code Reviews| 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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/gl/gl_export.h" | |
| 9 #include "ui/gl/gl_surface.h" | 10 #include "ui/gl/gl_surface.h" |
| 10 | 11 |
| 11 namespace android_webview { | 12 namespace android_webview { |
| 12 | 13 |
| 13 // This surface is used to represent the underlying surface provided by the App | 14 // This surface is used to represent the underlying surface provided by the App |
| 14 // inside a hardware draw. Note that offscreen contexts will not be using this | 15 // inside a hardware draw. Note that offscreen contexts will not be using this |
| 15 // GLSurface. | 16 // GLSurface. |
| 16 class GL_EXPORT AwGLSurface : public gfx::GLSurface { | 17 class GL_EXPORT AwGLSurface : public gfx::GLSurface { |
|
piman
2016/05/11 23:14:57
huh... I don't think this should be GL_EXPORT, it'
kylechar
2016/05/12 14:47:30
Yeah, this doesn't seem right at all looking at it
| |
| 17 public: | 18 public: |
| 18 AwGLSurface(); | 19 AwGLSurface(); |
| 19 | 20 |
| 20 // Implement GLSurface. | 21 // Implement GLSurface. |
| 21 void Destroy() override; | 22 void Destroy() override; |
| 22 bool IsOffscreen() override; | 23 bool IsOffscreen() override; |
| 23 unsigned int GetBackingFrameBufferObject() override; | 24 unsigned int GetBackingFrameBufferObject() override; |
| 24 gfx::SwapResult SwapBuffers() override; | 25 gfx::SwapResult SwapBuffers() override; |
| 25 gfx::Size GetSize() override; | 26 gfx::Size GetSize() override; |
| 26 void* GetHandle() override; | 27 void* GetHandle() override; |
| 27 void* GetDisplay() override; | 28 void* GetDisplay() override; |
| 28 | 29 |
| 29 void SetBackingFrameBufferObject(unsigned int fbo); | 30 void SetBackingFrameBufferObject(unsigned int fbo); |
| 30 | 31 |
| 31 protected: | 32 protected: |
| 32 ~AwGLSurface() override; | 33 ~AwGLSurface() override; |
| 33 | 34 |
| 34 private: | 35 private: |
| 35 unsigned int fbo_; | 36 unsigned int fbo_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(AwGLSurface); | 38 DISALLOW_COPY_AND_ASSIGN(AwGLSurface); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace android_webview | 41 } // namespace android_webview |
| 41 | 42 |
| 42 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ | 43 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ |
| OLD | NEW |