Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: android_webview/browser/render_thread_manager.h

Issue 2457353002: aw: Enable async ondraw (Closed)
Patch Set: fix unit tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « android_webview/browser/browser_view_renderer.cc ('k') | android_webview/browser/render_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698