| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HARDWARE_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "android_webview/browser/compositor_id.h" | 10 #include "android_webview/browser/compositor_id.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace android_webview { | 25 namespace android_webview { |
| 26 | 26 |
| 27 class ChildFrame; | 27 class ChildFrame; |
| 28 class RenderThreadManager; | 28 class RenderThreadManager; |
| 29 class ScopedAppGLStateRestore; | 29 class ScopedAppGLStateRestore; |
| 30 class SurfacesInstance; | 30 class SurfacesInstance; |
| 31 | 31 |
| 32 class HardwareRenderer : public cc::SurfaceFactoryClient { | 32 class HardwareRenderer : public cc::SurfaceFactoryClient { |
| 33 public: | 33 public: |
| 34 explicit HardwareRenderer(RenderThreadManager* state); | 34 HardwareRenderer(RenderThreadManager* state, int framebuffer_binding_ext); |
| 35 ~HardwareRenderer() override; | 35 ~HardwareRenderer() override; |
| 36 | 36 |
| 37 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state); | 37 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state); |
| 38 void CommitFrame(); | 38 void CommitFrame(); |
| 39 | 39 |
| 40 void SetBackingFrameBufferObject(int framebuffer_binding_ext); | 40 void SetBackingFrameBufferObject(int framebuffer_binding_ext); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // cc::SurfaceFactoryClient implementation. | 43 // cc::SurfaceFactoryClient implementation. |
| 44 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 44 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // output_surface_id, and resources for old output surfaces are dropped. | 77 // output_surface_id, and resources for old output surfaces are dropped. |
| 78 uint32_t last_committed_output_surface_id_; | 78 uint32_t last_committed_output_surface_id_; |
| 79 uint32_t last_submitted_output_surface_id_; | 79 uint32_t last_submitted_output_surface_id_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace android_webview | 84 } // namespace android_webview |
| 85 | 85 |
| 86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |