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

Side by Side Diff: android_webview/browser/browser_view_renderer.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
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void UpdateMemoryPolicy(); 165 void UpdateMemoryPolicy();
166 166
167 content::SynchronousCompositor* FindCompositor( 167 content::SynchronousCompositor* FindCompositor(
168 const CompositorID& compositor_id) const; 168 const CompositorID& compositor_id) const;
169 // For debug tracing or logging. Return the string representation of this 169 // For debug tracing or logging. Return the string representation of this
170 // view renderer's state. 170 // view renderer's state.
171 std::string ToString() const; 171 std::string ToString() const;
172 172
173 BrowserViewRendererClient* const client_; 173 BrowserViewRendererClient* const client_;
174 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 174 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
175 const bool async_on_draw_hardware_; 175 const bool sync_on_draw_hardware_;
176 CompositorFrameConsumer* current_compositor_frame_consumer_; 176 CompositorFrameConsumer* current_compositor_frame_consumer_;
177 std::set<CompositorFrameConsumer*> compositor_frame_consumers_; 177 std::set<CompositorFrameConsumer*> compositor_frame_consumers_;
178 178
179 // The current compositor that's owned by the current RVH. 179 // The current compositor that's owned by the current RVH.
180 content::SynchronousCompositor* compositor_; 180 content::SynchronousCompositor* compositor_;
181 // The process id and routing id of the most recent RVH according to 181 // The process id and routing id of the most recent RVH according to
182 // RVHChanged. 182 // RVHChanged.
183 CompositorID compositor_id_; 183 CompositorID compositor_id_;
184 // A map from compositor's per-WebView unique ID to the compositor's raw 184 // A map from compositor's per-WebView unique ID to the compositor's raw
185 // pointer. A raw pointer here is fine because the entry will be erased when 185 // pointer. A raw pointer here is fine because the entry will be erased when
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 gfx::Vector2dF overscroll_rounding_error_; 229 gfx::Vector2dF overscroll_rounding_error_;
230 230
231 ParentCompositorDrawConstraints external_draw_constraints_; 231 ParentCompositorDrawConstraints external_draw_constraints_;
232 232
233 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 233 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
234 }; 234 };
235 235
236 } // namespace android_webview 236 } // namespace android_webview
237 237
238 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 238 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698