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

Issue 263833013: [Android] Ensure MotionEvents are always recycled (Closed)

Created:
6 years, 7 months ago by jdduke (slow)
Modified:
6 years, 7 months ago
Reviewers:
Ted C
CC:
chromium-reviews, darin-cc_chromium.org, jam, Yusuf
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Ensure MotionEvents are always recycled There were several cases in ContentViewCore where a MotionEvent was obtained (copied) for offsetting purposes, but was not recycled because of early function exit. Fix this by recycling the event in the finally clause. Also avoid copying touch events if the current touch offset is zero. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267980

Patch Set 1 #

Total comments: 1

Patch Set 2 : Silly fix #

Total comments: 2

Patch Set 3 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -41 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 chunks +56 lines, -41 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jdduke (slow)
tedchoc@: PTAL, thanks.
6 years, 7 months ago (2014-05-02 20:02:12 UTC) #1
jdduke (slow)
https://codereview.chromium.org/263833013/diff/1/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/263833013/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1109 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1109: if (mCurrentTouchOffsetX != 0 && mCurrentTouchOffsetY != 0) { ...
6 years, 7 months ago (2014-05-02 20:04:42 UTC) #2
Ted C
lgtm https://codereview.chromium.org/263833013/diff/20001/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/263833013/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1106 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1106: if (mNativeContentViewCore == 0) return false; I would ...
6 years, 7 months ago (2014-05-02 20:08:31 UTC) #3
jdduke (slow)
https://codereview.chromium.org/263833013/diff/20001/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/263833013/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1106 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1106: if (mNativeContentViewCore == 0) return false; On 2014/05/02 20:08:32, ...
6 years, 7 months ago (2014-05-02 20:19:33 UTC) #4
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 20:19:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/263833013/40001
6 years, 7 months ago (2014-05-02 20:19:51 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 20:40:49 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 20:40:50 UTC) #8
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 21:22:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/263833013/40001
6 years, 7 months ago (2014-05-02 21:23:01 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-03 00:04:23 UTC) #11
Message was sent while issue was closed.
Change committed as 267980

Powered by Google App Engine
This is Rietveld 408576698