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

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

Issue 653173004: Part 2: WIP Refactor Webview graphics related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 6 years, 1 month 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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