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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 bool hardware_enabled_; | 198 bool hardware_enabled_; |
199 float dip_scale_; | 199 float dip_scale_; |
200 float page_scale_factor_; | 200 float page_scale_factor_; |
201 float min_page_scale_factor_; | 201 float min_page_scale_factor_; |
202 float max_page_scale_factor_; | 202 float max_page_scale_factor_; |
203 bool on_new_picture_enable_; | 203 bool on_new_picture_enable_; |
204 bool clear_view_; | 204 bool clear_view_; |
205 | 205 |
206 bool offscreen_pre_raster_; | 206 bool offscreen_pre_raster_; |
207 | 207 |
| 208 bool first_sync_frame_; |
| 209 |
208 gfx::Vector2d last_on_draw_scroll_offset_; | 210 gfx::Vector2d last_on_draw_scroll_offset_; |
209 gfx::Rect last_on_draw_global_visible_rect_; | 211 gfx::Rect last_on_draw_global_visible_rect_; |
210 | 212 |
211 gfx::Size size_; | 213 gfx::Size size_; |
212 | 214 |
213 gfx::SizeF scrollable_size_dip_; | 215 gfx::SizeF scrollable_size_dip_; |
214 | 216 |
215 // Current scroll offset in CSS pixels. | 217 // Current scroll offset in CSS pixels. |
216 // TODO(miletus): Make scroll_offset_dip_ a gfx::ScrollOffset. | 218 // TODO(miletus): Make scroll_offset_dip_ a gfx::ScrollOffset. |
217 gfx::Vector2dF scroll_offset_dip_; | 219 gfx::Vector2dF scroll_offset_dip_; |
218 | 220 |
219 // Max scroll offset in CSS pixels. | 221 // Max scroll offset in CSS pixels. |
220 // TODO(miletus): Make max_scroll_offset_dip_ a gfx::ScrollOffset. | 222 // TODO(miletus): Make max_scroll_offset_dip_ a gfx::ScrollOffset. |
221 gfx::Vector2dF max_scroll_offset_dip_; | 223 gfx::Vector2dF max_scroll_offset_dip_; |
222 | 224 |
223 // Used to prevent rounding errors from accumulating enough to generate | 225 // Used to prevent rounding errors from accumulating enough to generate |
224 // visible skew (especially noticeable when scrolling up and down in the same | 226 // visible skew (especially noticeable when scrolling up and down in the same |
225 // spot over a period of time). | 227 // spot over a period of time). |
226 // TODO(miletus): Make overscroll_rounding_error_ a gfx::ScrollOffset. | 228 // TODO(miletus): Make overscroll_rounding_error_ a gfx::ScrollOffset. |
227 gfx::Vector2dF overscroll_rounding_error_; | 229 gfx::Vector2dF overscroll_rounding_error_; |
228 | 230 |
229 ParentCompositorDrawConstraints external_draw_constraints_; | 231 ParentCompositorDrawConstraints external_draw_constraints_; |
230 | 232 |
231 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 233 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
232 }; | 234 }; |
233 | 235 |
234 } // namespace android_webview | 236 } // namespace android_webview |
235 | 237 |
236 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 238 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
OLD | NEW |