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

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

Issue 659743002: aw: Fallback delegated composite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const Created 6 years, 2 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
« 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 "android_webview/browser/global_tile_manager.h" 8 #include "android_webview/browser/global_tile_manager.h"
9 #include "android_webview/browser/global_tile_manager_client.h" 9 #include "android_webview/browser/global_tile_manager_client.h"
10 #include "android_webview/browser/parent_compositor_draw_constraints.h" 10 #include "android_webview/browser/parent_compositor_draw_constraints.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool skip_reschedule_tick); 153 bool skip_reschedule_tick);
154 bool OnDrawSoftware(jobject java_canvas); 154 bool OnDrawSoftware(jobject java_canvas);
155 bool CompositeSW(SkCanvas* canvas); 155 bool CompositeSW(SkCanvas* canvas);
156 void DidComposite(); 156 void DidComposite();
157 void SkippedCompositeInDraw(); 157 void SkippedCompositeInDraw();
158 scoped_refptr<base::debug::ConvertableToTraceFormat> RootLayerStateAsValue( 158 scoped_refptr<base::debug::ConvertableToTraceFormat> RootLayerStateAsValue(
159 const gfx::Vector2dF& total_scroll_offset_dip, 159 const gfx::Vector2dF& total_scroll_offset_dip,
160 const gfx::SizeF& scrollable_size_dip); 160 const gfx::SizeF& scrollable_size_dip);
161 161
162 bool OnDrawHardware(jobject java_canvas); 162 bool OnDrawHardware(jobject java_canvas);
163 scoped_ptr<cc::CompositorFrame> CompositeHw();
163 void ReturnUnusedResource(scoped_ptr<cc::CompositorFrame> frame); 164 void ReturnUnusedResource(scoped_ptr<cc::CompositorFrame> frame);
164 void ReturnResourceFromParent(); 165 void ReturnResourceFromParent();
165 166
166 // If we call up view invalidate and OnDraw is not called before a deadline, 167 // If we call up view invalidate and OnDraw is not called before a deadline,
167 // then we keep ticking the SynchronousCompositor so it can make progress. 168 // then we keep ticking the SynchronousCompositor so it can make progress.
168 // Do this in a two stage tick due to native MessageLoop favors delayed task, 169 // Do this in a two stage tick due to native MessageLoop favors delayed task,
169 // so ensure delayed task is inserted only after the draw task returns. 170 // so ensure delayed task is inserted only after the draw task returns.
170 void PostFallbackTick(); 171 void PostFallbackTick();
171 void FallbackTickFired(); 172 void FallbackTickFired();
172 173
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 239
239 GlobalTileManager::Key tile_manager_key_; 240 GlobalTileManager::Key tile_manager_key_;
240 content::SynchronousCompositorMemoryPolicy memory_policy_; 241 content::SynchronousCompositorMemoryPolicy memory_policy_;
241 242
242 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 243 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
243 }; 244 };
244 245
245 } // namespace android_webview 246 } // namespace android_webview
246 247
247 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 248 #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