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

Issue 14577008: Disable vsync on input for webview (Closed)

Created:
7 years, 7 months ago by boliu
Modified:
7 years, 7 months ago
Reviewers:
joth, Sami
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Disable vsync on input for webview Add param to ContentViewCore initialize to decide if input can trigger vsync. The logic for Chrome on Android is moved to ContentView. For webview, disable vsync on input. BUG=237604 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199116

Patch Set 1 #

Patch Set 2 : Real patch with test #

Total comments: 2

Patch Set 3 : Add bool param to CVC.initialize. Rebased. #

Patch Set 4 : Named constant #

Total comments: 2

Patch Set 5 : sed #

Total comments: 2

Patch Set 6 : ContentViewGestureHandler.mInputEventsDeliveredAtVSync is final. Add note in AwContents #

Total comments: 2

Patch Set 7 : Factor out creating CVC in awcontents. Fixed a bug?! #

Total comments: 1

Patch Set 8 : Fix test on ics #

Messages

Total messages: 16 (0 generated)
boliu
joth: Could you test this locally first?
7 years, 7 months ago (2013-05-03 22:03:04 UTC) #1
boliu
On 2013/05/03 22:03:04, boliu wrote: > joth: Could you test this locally first? Err...and upon ...
7 years, 7 months ago (2013-05-07 08:32:00 UTC) #2
boliu
New patch out. Android bot backed up, and just bricked my device, so no testing ...
7 years, 7 months ago (2013-05-07 09:28:25 UTC) #3
boliu
On 2013/05/07 09:28:25, boliu wrote: > New patch out. Android bot backed up, and just ...
7 years, 7 months ago (2013-05-07 10:17:49 UTC) #4
Sami
https://codereview.chromium.org/14577008/diff/4001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java File content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java (right): https://codereview.chromium.org/14577008/diff/4001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java#newcode211 content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java:211: boolean triggerVsyncOnLastGesture) { Mind making this use named constants ...
7 years, 7 months ago (2013-05-07 10:23:00 UTC) #5
boliu
PTAL. Named constants a bit verbose, but I guess that's the point.
7 years, 7 months ago (2013-05-08 14:19:56 UTC) #6
Sami
Thanks, lgtm. Can't resist squabbling over the naming tho :) https://codereview.chromium.org/14577008/diff/14001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/14577008/diff/14001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode80 ...
7 years, 7 months ago (2013-05-08 14:35:08 UTC) #7
boliu
Rename done
7 years, 7 months ago (2013-05-08 15:02:57 UTC) #8
Sami
Awesome, lgtm.
7 years, 7 months ago (2013-05-08 15:08:37 UTC) #9
joth
basically, lgtm https://codereview.chromium.org/14577008/diff/17001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/14577008/diff/17001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode333 android_webview/java/src/org/chromium/android_webview/AwContents.java:333: ContentViewCore.INPUT_EVENTS_DELIVERED_IMMEDIATELY); this probably warrants a comment, as ...
7 years, 7 months ago (2013-05-08 15:20:11 UTC) #10
boliu
ContentViewGestureHandler.mInputEventsDeliveredAtVSync is now final to reflect it should never change. Added note in AwContents
7 years, 7 months ago (2013-05-08 15:42:05 UTC) #11
joth
https://codereview.chromium.org/14577008/diff/18006/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/14577008/diff/18006/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode331 android_webview/java/src/org/chromium/android_webview/AwContents.java:331: // See note above about INPUT_EVENTS_DELIVERED_IMMEDIATELY. See note _below_ ...
7 years, 7 months ago (2013-05-08 15:55:16 UTC) #12
boliu
Done! https://codereview.chromium.org/14577008/diff/21002/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/14577008/diff/21002/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode596 android_webview/java/src/org/chromium/android_webview/AwContents.java:596: new AwPinchGestureStateListener(), mContentsClient.getContentViewClient(), Found a bug that this ...
7 years, 7 months ago (2013-05-08 16:45:14 UTC) #13
boliu
FYI, had to fix the test for ics devices.
7 years, 7 months ago (2013-05-08 19:59:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/14577008/27001
7 years, 7 months ago (2013-05-08 20:00:08 UTC) #15
commit-bot: I haz the power
7 years, 7 months ago (2013-05-09 05:01:16 UTC) #16
Message was sent while issue was closed.
Change committed as 199116

Powered by Google App Engine
This is Rietveld 408576698