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

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

Issue 23086003: Revert "[Android WebView] Fast Fallback Tick take 2" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/browser/in_process_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_IN_PROCESS_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "android_webview/browser/browser_view_renderer.h" 10 #include "android_webview/browser/browser_view_renderer.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 float dip_scale_; 119 float dip_scale_;
120 float page_scale_factor_; 120 float page_scale_factor_;
121 bool on_new_picture_enable_; 121 bool on_new_picture_enable_;
122 122
123 // When true, we should continuously invalidate and keep drawing, for example 123 // When true, we should continuously invalidate and keep drawing, for example
124 // to drive animation. This value is set by the compositor and should always 124 // to drive animation. This value is set by the compositor and should always
125 // reflect the expectation of the compositor and not be reused for other 125 // reflect the expectation of the compositor and not be reused for other
126 // states. 126 // states.
127 bool compositor_needs_continuous_invalidate_; 127 bool compositor_needs_continuous_invalidate_;
128 128
129 // If this is true, then the fallback tick is posted with zero delay. This
130 // is to reduce the time in cases when blink main thread is blocked waiting.
131 // This is set when |compositor_needs_continuous_invalidate_| is set.
132 // Eventually, this should correspond to BeginFrame when BeginFrame and
133 // BeginFrameDeadline are separate functions.
134 bool need_fast_invalidate_;
135
136 // Used to block additional invalidates while one is already pending or before 129 // Used to block additional invalidates while one is already pending or before
137 // compositor draw which may switch continuous_invalidate on and off in the 130 // compositor draw which may switch continuous_invalidate on and off in the
138 // process. 131 // process.
139 bool block_invalidates_; 132 bool block_invalidates_;
140 133
141 // Holds a callback to FallbackTickFired while it is pending. 134 // Holds a callback to FallbackTickFired while it is pending.
142 base::CancelableClosure fallback_tick_; 135 base::CancelableClosure fallback_tick_;
143 136
144 int width_; 137 int width_;
145 int height_; 138 int height_;
(...skipping 22 matching lines...) Expand all
168 gfx::Vector2dF overscroll_rounding_error_; 161 gfx::Vector2dF overscroll_rounding_error_;
169 162
170 GLViewRendererManager::Key manager_key_; 163 GLViewRendererManager::Key manager_key_;
171 164
172 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); 165 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer);
173 }; 166 };
174 167
175 } // namespace android_webview 168 } // namespace android_webview
176 169
177 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ 170 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/in_process_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698