| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 std::unique_ptr<HardwareRenderer> hardware_renderer_; | 105 std::unique_ptr<HardwareRenderer> hardware_renderer_; |
| 106 | 106 |
| 107 // This is accessed by both UI and RT now. TODO(hush): move to RT only. | 107 // This is accessed by both UI and RT now. TODO(hush): move to RT only. |
| 108 GLViewRendererManager::Key renderer_manager_key_; | 108 GLViewRendererManager::Key renderer_manager_key_; |
| 109 | 109 |
| 110 // Accessed by both UI and RT thread. | 110 // Accessed by both UI and RT thread. |
| 111 mutable base::Lock lock_; | 111 mutable base::Lock lock_; |
| 112 bool hardware_renderer_has_frame_; | 112 bool hardware_renderer_has_frame_; |
| 113 gfx::Vector2d scroll_offset_; | 113 gfx::Vector2d scroll_offset_; |
| 114 ChildFrameQueue child_frames_; | 114 ChildFrameQueue child_frames_; |
| 115 const bool async_on_draw_hardware_; | 115 const bool sync_on_draw_hardware_; |
| 116 bool inside_hardware_release_; | 116 bool inside_hardware_release_; |
| 117 ParentCompositorDrawConstraints parent_draw_constraints_; | 117 ParentCompositorDrawConstraints parent_draw_constraints_; |
| 118 ReturnedResourcesMap returned_resources_map_; | 118 ReturnedResourcesMap returned_resources_map_; |
| 119 base::Closure request_draw_gl_closure_; | 119 base::Closure request_draw_gl_closure_; |
| 120 | 120 |
| 121 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; | 121 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); | 123 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace android_webview | 126 } // namespace android_webview |
| 127 | 127 |
| 128 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ | 128 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ |
| OLD | NEW |