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

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

Issue 944053004: OffscreenPreRaster and its plumbings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 10 months 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
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/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // frame is produced. 48 // frame is produced.
49 bool OnDrawHardware(); 49 bool OnDrawHardware();
50 bool OnDrawSoftware(SkCanvas* canvas); 50 bool OnDrawSoftware(SkCanvas* canvas);
51 51
52 // CapturePicture API methods. 52 // CapturePicture API methods.
53 skia::RefPtr<SkPicture> CapturePicture(int width, int height); 53 skia::RefPtr<SkPicture> CapturePicture(int width, int height);
54 void EnableOnNewPicture(bool enabled); 54 void EnableOnNewPicture(bool enabled);
55 55
56 void ClearView(); 56 void ClearView();
57 57
58 void SetOffscreenPreRaster(bool enabled);
59
58 // View update notifications. 60 // View update notifications.
59 void SetIsPaused(bool paused); 61 void SetIsPaused(bool paused);
60 void SetViewVisibility(bool visible); 62 void SetViewVisibility(bool visible);
61 void SetWindowVisibility(bool visible); 63 void SetWindowVisibility(bool visible);
62 void OnSizeChanged(int width, int height); 64 void OnSizeChanged(int width, int height);
63 void OnAttachedToWindow(int width, int height); 65 void OnAttachedToWindow(int width, int height);
64 void OnDetachedFromWindow(); 66 void OnDetachedFromWindow();
65 67
66 // Sets the scale for logical<->physical pixel conversions. 68 // Sets the scale for logical<->physical pixel conversions.
67 void SetDipScale(float dip_scale); 69 void SetDipScale(float dip_scale);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool is_paused_; 153 bool is_paused_;
152 bool view_visible_; 154 bool view_visible_;
153 bool window_visible_; // Only applicable if |attached_to_window_| is true. 155 bool window_visible_; // Only applicable if |attached_to_window_| is true.
154 bool attached_to_window_; 156 bool attached_to_window_;
155 bool hardware_enabled_; 157 bool hardware_enabled_;
156 float dip_scale_; 158 float dip_scale_;
157 float page_scale_factor_; 159 float page_scale_factor_;
158 bool on_new_picture_enable_; 160 bool on_new_picture_enable_;
159 bool clear_view_; 161 bool clear_view_;
160 162
163 bool offscreen_pre_raster_;
164
161 gfx::Vector2d last_on_draw_scroll_offset_; 165 gfx::Vector2d last_on_draw_scroll_offset_;
162 gfx::Rect last_on_draw_global_visible_rect_; 166 gfx::Rect last_on_draw_global_visible_rect_;
163 167
164 // The draw constraints from the parent compositor. These are only used for 168 // The draw constraints from the parent compositor. These are only used for
165 // tiling priority. 169 // tiling priority.
166 ParentCompositorDrawConstraints parent_draw_constraints_; 170 ParentCompositorDrawConstraints parent_draw_constraints_;
167 171
168 // When true, we should continuously invalidate and keep drawing, for example 172 // When true, we should continuously invalidate and keep drawing, for example
169 // to drive animation. This value is set by the compositor and should always 173 // to drive animation. This value is set by the compositor and should always
170 // reflect the expectation of the compositor and not be reused for other 174 // reflect the expectation of the compositor and not be reused for other
(...skipping 21 matching lines...) Expand all
192 // visible skew (especially noticeable when scrolling up and down in the same 196 // visible skew (especially noticeable when scrolling up and down in the same
193 // spot over a period of time). 197 // spot over a period of time).
194 gfx::Vector2dF overscroll_rounding_error_; 198 gfx::Vector2dF overscroll_rounding_error_;
195 199
196 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 200 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
197 }; 201 };
198 202
199 } // namespace android_webview 203 } // namespace android_webview
200 204
201 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 205 #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') | android_webview/native/aw_settings.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698