| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // GlobalTileManagerClient overrides. | 138 // GlobalTileManagerClient overrides. |
| 139 virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy() | 139 virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy() |
| 140 const override; | 140 const override; |
| 141 virtual void SetMemoryPolicy( | 141 virtual void SetMemoryPolicy( |
| 142 content::SynchronousCompositorMemoryPolicy new_policy, | 142 content::SynchronousCompositorMemoryPolicy new_policy, |
| 143 bool effective_immediately) override; | 143 bool effective_immediately) override; |
| 144 | 144 |
| 145 void UpdateParentDrawConstraints(); | 145 void UpdateParentDrawConstraints(); |
| 146 void DidSkipCommitFrame(); | 146 void DidSkipCommitFrame(); |
| 147 void InvalidateOnFunctorDestroy(); |
| 147 | 148 |
| 148 private: | 149 private: |
| 149 void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value_dip); | 150 void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value_dip); |
| 150 // Checks the continuous invalidate and block invalidate state, and schedule | 151 // Checks the continuous invalidate and block invalidate state, and schedule |
| 151 // invalidates appropriately. If |force_invalidate| is true, then send a view | 152 // invalidates appropriately. If |force_invalidate| is true, then send a view |
| 152 // invalidate regardless of compositor expectation. If |skip_reschedule_tick| | 153 // invalidate regardless of compositor expectation. If |skip_reschedule_tick| |
| 153 // is true and if there is already a pending fallback tick, don't reschedule | 154 // is true and if there is already a pending fallback tick, don't reschedule |
| 154 // them. | 155 // them. |
| 155 void EnsureContinuousInvalidation(bool force_invalidate, | 156 void EnsureContinuousInvalidation(bool force_invalidate, |
| 156 bool skip_reschedule_tick); | 157 bool skip_reschedule_tick); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 245 |
| 245 GlobalTileManager::Key tile_manager_key_; | 246 GlobalTileManager::Key tile_manager_key_; |
| 246 content::SynchronousCompositorMemoryPolicy memory_policy_; | 247 content::SynchronousCompositorMemoryPolicy memory_policy_; |
| 247 | 248 |
| 248 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 249 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
| 249 }; | 250 }; |
| 250 | 251 |
| 251 } // namespace android_webview | 252 } // namespace android_webview |
| 252 | 253 |
| 253 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 254 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| OLD | NEW |