| 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_RENDER_THREAD_MANAGER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "android_webview/browser/compositor_frame_consumer.h" | 10 #include "android_webview/browser/compositor_frame_consumer.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void DeleteHardwareRendererOnUI() override; | 58 void DeleteHardwareRendererOnUI() override; |
| 59 | 59 |
| 60 // RT thread methods. | 60 // RT thread methods. |
| 61 gfx::Vector2d GetScrollOffsetOnRT(); | 61 gfx::Vector2d GetScrollOffsetOnRT(); |
| 62 std::unique_ptr<ChildFrame> PassFrameOnRT(); | 62 std::unique_ptr<ChildFrame> PassFrameOnRT(); |
| 63 void DrawGL(AwDrawGLInfo* draw_info); | 63 void DrawGL(AwDrawGLInfo* draw_info); |
| 64 void PostExternalDrawConstraintsToChildCompositorOnRT( | 64 void PostExternalDrawConstraintsToChildCompositorOnRT( |
| 65 const ParentCompositorDrawConstraints& parent_draw_constraints); | 65 const ParentCompositorDrawConstraints& parent_draw_constraints); |
| 66 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources, | 66 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources, |
| 67 const CompositorID& compositor_id, | 67 const CompositorID& compositor_id, |
| 68 uint32_t output_surface_id); | 68 uint32_t compositor_frame_sink_id); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 friend class internal::RequestInvokeGLTracker; | 71 friend class internal::RequestInvokeGLTracker; |
| 72 class InsideHardwareReleaseReset { | 72 class InsideHardwareReleaseReset { |
| 73 public: | 73 public: |
| 74 explicit InsideHardwareReleaseReset( | 74 explicit InsideHardwareReleaseReset( |
| 75 RenderThreadManager* render_thread_manager); | 75 RenderThreadManager* render_thread_manager); |
| 76 ~InsideHardwareReleaseReset(); | 76 ~InsideHardwareReleaseReset(); |
| 77 | 77 |
| 78 private: | 78 private: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 base::Closure request_draw_gl_closure_; | 114 base::Closure request_draw_gl_closure_; |
| 115 | 115 |
| 116 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; | 116 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); | 118 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace android_webview | 121 } // namespace android_webview |
| 122 | 122 |
| 123 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ | 123 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ |
| OLD | NEW |