From 2444230e20fa4c8dceb4cd5052f273694350262f Mon Sep 17 00:00:00 2001 From: "boliu@chromium.org" Date: Sat, 3 Aug 2013 08:15:02 +0000 Subject: [Android WebView] Reduce fallback tick to 20ms Applications depending on webview to make progress while in the background depends on this to be as fast as regular draws. At 60fps, draws should be at least 16.6ms apart. Reduce fallback tick to 20ms to be slightly more than the period in draws. BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/21884007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215495 0039d316-1c4b-4281-b951-d872f2087c98 --- android_webview/browser/in_process_view_renderer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android_webview') diff --git a/android_webview/browser/in_process_view_renderer.cc b/android_webview/browser/in_process_view_renderer.cc index 1dac3ca..c8d54a1 100644 --- a/android_webview/browser/in_process_view_renderer.cc +++ b/android_webview/browser/in_process_view_renderer.cc @@ -127,7 +127,7 @@ AwDrawSWFunctionTable* g_sw_draw_functions = NULL; // as a fallback mechanism, which will have an important performance impact. bool g_is_skia_version_compatible = false; -const int64 kFallbackTickTimeoutInMilliseconds = 500; +const int64 kFallbackTickTimeoutInMilliseconds = 20; class ScopedAllowGL { public: -- cgit v1.1