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

Issue 1982643004: Implement touch control (Closed)

Created:
4 years, 7 months ago by liyuqian
Modified:
4 years, 7 months ago
Reviewers:
jvanverth1, djsollen
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 8

Patch Set 2 : Revision #

Total comments: 2

Patch Set 3 : Improvement #

Patch Set 4 : Dedup #

Total comments: 2

Patch Set 5 : Mutex #

Patch Set 6 : 1-- #

Total comments: 8

Patch Set 7 : SkMutex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -19 lines) Patch
M gyp/viewer.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java View 1 2 chunks +10 lines, -1 line 0 comments Download
M tools/viewer/Viewer.h View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M tools/viewer/Viewer.cpp View 1 2 3 4 5 6 7 chunks +33 lines, -9 lines 0 comments Download
M tools/viewer/sk_app/Window.h View 1 2 3 4 4 chunks +12 lines, -2 lines 0 comments Download
M tools/viewer/sk_app/Window.cpp View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/android/Window_android.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M tools/viewer/sk_app/android/surface_glue_android.h View 1 2 3 4 5 6 4 chunks +13 lines, -2 lines 0 comments Download
M tools/viewer/sk_app/android/surface_glue_android.cpp View 1 2 3 4 5 6 6 chunks +40 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
liyuqian
This is the first draft of the touch control. Please check if I handle the ...
4 years, 7 months ago (2016-05-16 16:22:05 UTC) #4
djsollen
https://codereview.chromium.org/1982643004/diff/1/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java File platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java (right): https://codereview.chromium.org/1982643004/diff/1/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java#newcode106 platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java:106: switch (action) { why can't you do this in ...
4 years, 7 months ago (2016-05-16 18:16:00 UTC) #5
liyuqian
See the revision and comments below. https://codereview.chromium.org/1982643004/diff/1/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java File platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java (right): https://codereview.chromium.org/1982643004/diff/1/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java#newcode106 platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java:106: switch (action) { ...
4 years, 7 months ago (2016-05-16 18:32:38 UTC) #6
jvanverth1
The setup here looks consistent with its use in SampleApp, though I'm not an expert ...
4 years, 7 months ago (2016-05-16 18:48:58 UTC) #7
djsollen
lgtm with nit https://codereview.chromium.org/1982643004/diff/20001/tools/viewer/Viewer.cpp File tools/viewer/Viewer.cpp (right): https://codereview.chromium.org/1982643004/diff/20001/tools/viewer/Viewer.cpp#newcode263 tools/viewer/Viewer.cpp:263: updateMatrix(); shouldn't this update happen as ...
4 years, 7 months ago (2016-05-16 19:09:03 UTC) #8
liyuqian
updateMatrix is now computeMatrix. I also added fContentJustInvalidated to avoid duplicate content invalidation. https://codereview.chromium.org/1982643004/diff/20001/tools/viewer/Viewer.cpp File ...
4 years, 7 months ago (2016-05-16 20:34:55 UTC) #9
liyuqian
Now the deduplication of invalidation events is simpler and more robust. The fIsContentInvalided keeps track ...
4 years, 7 months ago (2016-05-16 20:58:16 UTC) #10
djsollen
https://codereview.chromium.org/1982643004/diff/60001/tools/viewer/Viewer.cpp File tools/viewer/Viewer.cpp (left): https://codereview.chromium.org/1982643004/diff/60001/tools/viewer/Viewer.cpp#oldcode105 tools/viewer/Viewer.cpp:105: }); It seems more natural to me to implement ...
4 years, 7 months ago (2016-05-17 12:40:26 UTC) #11
liyuqian
I've now moved the SkTouchGesture inside viewer.cpp, and used the mutex to guarantee atomic read/write ...
4 years, 7 months ago (2016-05-17 18:25:00 UTC) #12
djsollen
https://codereview.chromium.org/1982643004/diff/100001/tools/viewer/Viewer.cpp File tools/viewer/Viewer.cpp (right): https://codereview.chromium.org/1982643004/diff/100001/tools/viewer/Viewer.cpp#newcode33 tools/viewer/Viewer.cpp:33: Viewer* vv = reinterpret_cast<Viewer*>(userData); Viewer* viewer = https://codereview.chromium.org/1982643004/diff/100001/tools/viewer/sk_app/android/surface_glue_android.cpp File ...
4 years, 7 months ago (2016-05-17 18:48:03 UTC) #13
liyuqian
Changed to SkMutex https://codereview.chromium.org/1982643004/diff/100001/tools/viewer/Viewer.cpp File tools/viewer/Viewer.cpp (right): https://codereview.chromium.org/1982643004/diff/100001/tools/viewer/Viewer.cpp#newcode33 tools/viewer/Viewer.cpp:33: Viewer* vv = reinterpret_cast<Viewer*>(userData); On 2016/05/17 ...
4 years, 7 months ago (2016-05-17 19:06:35 UTC) #14
djsollen
lgtm
4 years, 7 months ago (2016-05-17 19:16:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982643004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982643004/120001
4 years, 7 months ago (2016-05-17 19:18:22 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 19:44:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/d3cdbcad65673596ae37e65fec842d8d4d81c5a7

Powered by Google App Engine
This is Rietveld 408576698