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

Unified Diff: android_webview/browser/in_process_view_renderer.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/in_process_view_renderer.h ('k') | 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 39614d38ce1393af606cafa4e60e686e277382c2..0db333781e91ab048d3aa48cf81d8a385d7db97b 100644
--- a/android_webview/browser/in_process_view_renderer.cc
+++ b/android_webview/browser/in_process_view_renderer.cc
@@ -212,7 +212,6 @@ InProcessViewRenderer::InProcessViewRenderer(
page_scale_factor_(1.0),
on_new_picture_enable_(false),
compositor_needs_continuous_invalidate_(false),
- need_fast_invalidate_(false),
block_invalidates_(false),
width_(0),
height_(0),
@@ -640,7 +639,6 @@ void InProcessViewRenderer::SetContinuousInvalidate(bool invalidate) {
"invalidate",
invalidate);
compositor_needs_continuous_invalidate_ = invalidate;
- need_fast_invalidate_ = compositor_needs_continuous_invalidate_;
EnsureContinuousInvalidation(NULL, false);
}
@@ -747,17 +745,11 @@ void InProcessViewRenderer::EnsureContinuousInvalidation(
// ticked. This can happen if this is reached because
// invalidate_ignore_compositor is true.
if (compositor_needs_continuous_invalidate_) {
- int64 delay_in_ms = kFallbackTickTimeoutInMilliseconds;
- if (need_fast_invalidate_) {
- TRACE_EVENT_INSTANT0(
- "android_webview", "FastFallbackTick", TRACE_EVENT_SCOPE_THREAD);
- delay_in_ms = 0;
- need_fast_invalidate_ = false;
- }
base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
fallback_tick_.callback(),
- base::TimeDelta::FromMilliseconds(delay_in_ms));
+ base::TimeDelta::FromMilliseconds(
+ kFallbackTickTimeoutInMilliseconds));
}
}
}
« no previous file with comments | « android_webview/browser/in_process_view_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698