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

Unified Diff: android_webview/browser/in_process_view_renderer.cc

Issue 58483002: [Android WebView] Only throttle fallback tick (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/in_process_view_renderer.cc
diff --git a/android_webview/browser/in_process_view_renderer.cc b/android_webview/browser/in_process_view_renderer.cc
index 016aec892749445a0c284663d2a024162ae8e853..88415f796d923eff3379686168d80eab644ec51c 100644
--- a/android_webview/browser/in_process_view_renderer.cc
+++ b/android_webview/browser/in_process_view_renderer.cc
@@ -886,9 +886,7 @@ void InProcessViewRenderer::EnsureContinuousInvalidation(
// This method should be called again when any of these conditions change.
bool need_invalidate =
compositor_needs_continuous_invalidate_ || invalidate_ignore_compositor;
- bool throttle = (is_paused_ && !on_new_picture_enable_) ||
- (attached_to_window_ && !window_visible_);
- if (!need_invalidate || block_invalidates_ || throttle)
+ if (!need_invalidate || block_invalidates_)
return;
if (draw_info) {
@@ -901,6 +899,11 @@ void InProcessViewRenderer::EnsureContinuousInvalidation(
client_->PostInvalidate();
}
+ bool throttle_fallback_tick = (is_paused_ && !on_new_picture_enable_) ||
+ (attached_to_window_ && !window_visible_);
+ if (throttle_fallback_tick)
+ return;
+
block_invalidates_ = compositor_needs_continuous_invalidate_;
// Unretained here is safe because the callback is cancelled when
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698