| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void SwapReturnedResourcesOnUI( | 56 void SwapReturnedResourcesOnUI( |
| 57 ReturnedResourcesMap* returned_resource_map) override; | 57 ReturnedResourcesMap* returned_resource_map) override; |
| 58 bool ReturnedResourcesEmptyOnUI() const override; | 58 bool ReturnedResourcesEmptyOnUI() const override; |
| 59 std::unique_ptr<ChildFrame> PassUncommittedFrameOnUI() override; | 59 std::unique_ptr<ChildFrame> PassUncommittedFrameOnUI() override; |
| 60 bool HasFrameOnUI() const override; | 60 bool HasFrameOnUI() const override; |
| 61 void DeleteHardwareRendererOnUI() override; | 61 void DeleteHardwareRendererOnUI() override; |
| 62 | 62 |
| 63 // RT thread methods. | 63 // RT thread methods. |
| 64 gfx::Vector2d GetScrollOffsetOnRT(); | 64 gfx::Vector2d GetScrollOffsetOnRT(); |
| 65 std::unique_ptr<ChildFrame> PassFrameOnRT(); | 65 std::unique_ptr<ChildFrame> PassFrameOnRT(); |
| 66 scoped_refptr<content::SynchronousCompositor::FrameFuture> |
| 67 PassFrameFutureOnRT(); |
| 66 void DrawGL(AwDrawGLInfo* draw_info); | 68 void DrawGL(AwDrawGLInfo* draw_info); |
| 67 void PostExternalDrawConstraintsToChildCompositorOnRT( | 69 void PostExternalDrawConstraintsToChildCompositorOnRT( |
| 68 const ParentCompositorDrawConstraints& parent_draw_constraints); | 70 const ParentCompositorDrawConstraints& parent_draw_constraints); |
| 69 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources, | 71 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources, |
| 70 const CompositorID& compositor_id, | 72 const CompositorID& compositor_id, |
| 71 uint32_t compositor_frame_sink_id); | 73 uint32_t compositor_frame_sink_id); |
| 72 | 74 |
| 73 private: | 75 private: |
| 74 friend class internal::RequestInvokeGLTracker; | 76 friend class internal::RequestInvokeGLTracker; |
| 75 class InsideHardwareReleaseReset { | 77 class InsideHardwareReleaseReset { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 base::Closure request_draw_gl_closure_; | 124 base::Closure request_draw_gl_closure_; |
| 123 | 125 |
| 124 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; | 126 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; |
| 125 | 127 |
| 126 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); | 128 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace android_webview | 131 } // namespace android_webview |
| 130 | 132 |
| 131 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ | 133 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ |
| OLD | NEW |