| 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 19 matching lines...) Expand all Loading... |
| 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 explicit HardwareRenderer(RenderThreadManager* state); |
| 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); | |
| 41 | |
| 42 private: | 40 private: |
| 43 // cc::SurfaceFactoryClient implementation. | 41 // cc::SurfaceFactoryClient implementation. |
| 44 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 42 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 45 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 43 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 46 | 44 |
| 47 void ReturnResourcesInChildFrame(); | 45 void ReturnResourcesInChildFrame(); |
| 48 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, | 46 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, |
| 49 const CompositorID& compositor_id, | 47 const CompositorID& compositor_id, |
| 50 uint32_t compositor_frame_sink_id); | 48 uint32_t compositor_frame_sink_id); |
| 51 | 49 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 78 // dropped. | 76 // dropped. |
| 79 uint32_t last_committed_compositor_frame_sink_id_; | 77 uint32_t last_committed_compositor_frame_sink_id_; |
| 80 uint32_t last_submitted_compositor_frame_sink_id_; | 78 uint32_t last_submitted_compositor_frame_sink_id_; |
| 81 | 79 |
| 82 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 80 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace android_webview | 83 } // namespace android_webview |
| 86 | 84 |
| 87 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 85 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |