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/parent_compositor_draw_constraints.h" | 8 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
9 #include "android_webview/browser/shared_renderer_state.h" | 9 #include "android_webview/browser/shared_renderer_state.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void PostFallbackTick(); | 138 void PostFallbackTick(); |
139 void FallbackTickFired(); | 139 void FallbackTickFired(); |
140 | 140 |
141 // Force invoke the compositor to run produce a 1x1 software frame that is | 141 // Force invoke the compositor to run produce a 1x1 software frame that is |
142 // immediately discarded. This is a hack to force invoke parts of the | 142 // immediately discarded. This is a hack to force invoke parts of the |
143 // compositor that are not directly exposed here. | 143 // compositor that are not directly exposed here. |
144 void ForceFakeCompositeSW(); | 144 void ForceFakeCompositeSW(); |
145 | 145 |
146 gfx::Vector2d max_scroll_offset() const; | 146 gfx::Vector2d max_scroll_offset() const; |
147 | 147 |
148 size_t CalculateDesiredMemoryPolicy(); | 148 void UpdateMemoryPolicy(); |
149 | 149 |
150 // For debug tracing or logging. Return the string representation of this | 150 // For debug tracing or logging. Return the string representation of this |
151 // view renderer's state. | 151 // view renderer's state. |
152 std::string ToString() const; | 152 std::string ToString() const; |
153 | 153 |
154 BrowserViewRendererClient* client_; | 154 BrowserViewRendererClient* client_; |
155 SharedRendererState shared_renderer_state_; | 155 SharedRendererState shared_renderer_state_; |
156 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 156 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
157 | 157 |
158 content::SynchronousCompositor* compositor_; | 158 content::SynchronousCompositor* compositor_; |
(...skipping 29 matching lines...) Expand all Loading... |
188 // visible skew (especially noticeable when scrolling up and down in the same | 188 // visible skew (especially noticeable when scrolling up and down in the same |
189 // spot over a period of time). | 189 // spot over a period of time). |
190 gfx::Vector2dF overscroll_rounding_error_; | 190 gfx::Vector2dF overscroll_rounding_error_; |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 192 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
193 }; | 193 }; |
194 | 194 |
195 } // namespace android_webview | 195 } // namespace android_webview |
196 | 196 |
197 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 197 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
OLD | NEW |