OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |