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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // The draw constraints from the parent compositor. These are only used for | 209 // The draw constraints from the parent compositor. These are only used for |
210 // tiling priority. | 210 // tiling priority. |
211 ParentCompositorDrawConstraints parent_draw_constraints_; | 211 ParentCompositorDrawConstraints parent_draw_constraints_; |
212 | 212 |
213 // When true, we should continuously invalidate and keep drawing, for example | 213 // When true, we should continuously invalidate and keep drawing, for example |
214 // to drive animation. This value is set by the compositor and should always | 214 // to drive animation. This value is set by the compositor and should always |
215 // reflect the expectation of the compositor and not be reused for other | 215 // reflect the expectation of the compositor and not be reused for other |
216 // states. | 216 // states. |
217 bool compositor_needs_continuous_invalidate_; | 217 bool compositor_needs_continuous_invalidate_; |
218 | 218 |
| 219 bool invalidate_after_composite_; |
| 220 |
219 // Used to block additional invalidates while one is already pending. | 221 // Used to block additional invalidates while one is already pending. |
220 bool block_invalidates_; | 222 bool block_invalidates_; |
221 | 223 |
222 base::CancelableClosure post_fallback_tick_; | 224 base::CancelableClosure post_fallback_tick_; |
223 base::CancelableClosure fallback_tick_fired_; | 225 base::CancelableClosure fallback_tick_fired_; |
224 bool fallback_tick_pending_; | 226 bool fallback_tick_pending_; |
225 | 227 |
226 int width_; | 228 int width_; |
227 int height_; | 229 int height_; |
228 | 230 |
(...skipping 10 matching lines...) Expand all Loading... |
239 | 241 |
240 GlobalTileManager::Key tile_manager_key_; | 242 GlobalTileManager::Key tile_manager_key_; |
241 content::SynchronousCompositorMemoryPolicy memory_policy_; | 243 content::SynchronousCompositorMemoryPolicy memory_policy_; |
242 | 244 |
243 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 245 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
244 }; | 246 }; |
245 | 247 |
246 } // namespace android_webview | 248 } // namespace android_webview |
247 | 249 |
248 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 250 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
OLD | NEW |