| 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/shared_renderer_state.h" | 10 #include "android_webview/browser/shared_renderer_state.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 bool block_invalidates_; | 200 bool block_invalidates_; |
| 201 | 201 |
| 202 // Holds a callback to FallbackTickFired while it is pending. | 202 // Holds a callback to FallbackTickFired while it is pending. |
| 203 base::CancelableClosure fallback_tick_; | 203 base::CancelableClosure fallback_tick_; |
| 204 | 204 |
| 205 int width_; | 205 int width_; |
| 206 int height_; | 206 int height_; |
| 207 | 207 |
| 208 DrawGLInput draw_gl_input_; | 208 DrawGLInput draw_gl_input_; |
| 209 | 209 |
| 210 // TODO(boliu): This is a short term solution to support | |
| 211 // SynchronousCompositorClient methods called on non-UI thread. | |
| 212 base::Lock scroll_offset_dip_lock_; | |
| 213 // Current scroll offset in CSS pixels. | 210 // Current scroll offset in CSS pixels. |
| 214 gfx::Vector2dF scroll_offset_dip_; | 211 gfx::Vector2dF scroll_offset_dip_; |
| 215 | 212 |
| 216 // Max scroll offset in CSS pixels. | 213 // Max scroll offset in CSS pixels. |
| 217 gfx::Vector2dF max_scroll_offset_dip_; | 214 gfx::Vector2dF max_scroll_offset_dip_; |
| 218 | 215 |
| 219 // Used to prevent rounding errors from accumulating enough to generate | 216 // Used to prevent rounding errors from accumulating enough to generate |
| 220 // visible skew (especially noticeable when scrolling up and down in the same | 217 // visible skew (especially noticeable when scrolling up and down in the same |
| 221 // spot over a period of time). | 218 // spot over a period of time). |
| 222 gfx::Vector2dF overscroll_rounding_error_; | 219 gfx::Vector2dF overscroll_rounding_error_; |
| 223 | 220 |
| 224 GlobalTileManager::Key tile_manager_key_; | 221 GlobalTileManager::Key tile_manager_key_; |
| 225 | 222 |
| 226 // The following 2 are used to construct a memory policy and set the memory | 223 // The following 2 are used to construct a memory policy and set the memory |
| 227 // policy on the shared_renderer_state_ atomically. | 224 // policy on the shared_renderer_state_ atomically. |
| 228 size_t num_tiles_; | 225 size_t num_tiles_; |
| 229 size_t num_bytes_; | 226 size_t num_bytes_; |
| 230 | 227 |
| 228 // TODO(boliu): This is a short term solution to support |
| 229 // SynchronousCompositorClient methods called on RenderThread. This is only |
| 230 // used on data that must be modified immediately instead of being posted |
| 231 // back to UI. |
| 232 base::Lock render_thread_lock_; |
| 233 |
| 231 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 234 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
| 232 }; | 235 }; |
| 233 | 236 |
| 234 } // namespace android_webview | 237 } // namespace android_webview |
| 235 | 238 |
| 236 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 239 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| OLD | NEW |