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

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

Issue 2174203002: OnDrawHardware() implementation with async messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added flag to branch old and new implementation Created 4 years, 4 months 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 (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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void RemoveCompositorFrameConsumer( 136 void RemoveCompositorFrameConsumer(
137 CompositorFrameConsumer* compositor_frame_consumer) override; 137 CompositorFrameConsumer* compositor_frame_consumer) override;
138 138
139 void SetActiveCompositorID(const CompositorID& compositor_id); 139 void SetActiveCompositorID(const CompositorID& compositor_id);
140 140
141 // Visible for testing. 141 // Visible for testing.
142 content::SynchronousCompositor* GetActiveCompositorForTesting() const { 142 content::SynchronousCompositor* GetActiveCompositorForTesting() const {
143 return compositor_; 143 return compositor_;
144 } 144 }
145 145
146 void OnDrawHardwareProcessFrame(
boliu 2016/08/11 19:23:39 move this up, next to DidOverscroll, where all the
ojars 2016/08/23 02:15:42 Done.
147 content::SynchronousCompositor::Frame frame) override;
148
146 private: 149 private:
147 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip); 150 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip);
148 bool CanOnDraw(); 151 bool CanOnDraw();
149 bool CompositeSW(SkCanvas* canvas); 152 bool CompositeSW(SkCanvas* canvas);
150 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 153 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
151 RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip, 154 RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip,
152 const gfx::SizeF& scrollable_size_dip); 155 const gfx::SizeF& scrollable_size_dip);
153 156
154 void ReturnUnusedResource(std::unique_ptr<ChildFrame> frame); 157 void ReturnUnusedResource(std::unique_ptr<ChildFrame> frame);
155 void ReturnResourceFromParent( 158 void ReturnResourceFromParent(
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 gfx::Vector2dF overscroll_rounding_error_; 223 gfx::Vector2dF overscroll_rounding_error_;
221 224
222 ParentCompositorDrawConstraints external_draw_constraints_; 225 ParentCompositorDrawConstraints external_draw_constraints_;
223 226
224 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 227 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
225 }; 228 };
226 229
227 } // namespace android_webview 230 } // namespace android_webview
228 231
229 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 232 #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') | android_webview/browser/browser_view_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698