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

Issue 1952323004: Initial commit of our new Android app to demo Skia. (Closed)

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

Description

Initial commit of our new Android app to demo Skia. Currently, there's only a simple Activity with a title bar and a surface view that connects with Skia viewer native application. Before integrating user action events, I want to make sure that the design and implementation so far are good. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1952323004 Committed: https://skia.googlesource.com/skia/+/796c5bb4655a511553970e111c96d90963fb9ae4

Patch Set 1 #

Patch Set 2 : Google format #

Patch Set 3 : Style #

Total comments: 31

Patch Set 4 : Clean #

Patch Set 5 : Viewer #

Patch Set 6 : Clang #

Total comments: 14

Patch Set 7 : Revision #

Patch Set 8 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -168 lines) Patch
M platform_tools/android/apps/viewer/src/main/AndroidManifest.xml View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java View 1 2 3 4 1 chunk +39 lines, -13 lines 0 comments Download
A platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A platform_tools/android/apps/viewer/src/main/res/layout/activity_main.xml View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/VulkanWindowContext.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tools/viewer/sk_app/android/Window_android.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -15 lines 0 comments Download
M tools/viewer/sk_app/android/Window_android.cpp View 1 2 3 4 5 6 7 2 chunks +11 lines, -132 lines 0 comments Download
A tools/viewer/sk_app/android/surface_glue_android.h View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A tools/viewer/sk_app/android/surface_glue_android.cpp View 1 2 3 4 5 6 1 chunk +174 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
liyuqian
4 years, 7 months ago (2016-05-06 16:22:21 UTC) #4
jvanverth1
I defer to Derek for most of this. Just a couple of things I noticed: ...
4 years, 7 months ago (2016-05-06 17:02:07 UTC) #5
djsollen
https://codereview.chromium.org/1952323004/diff/40001/platform_tools/android/apps/viewer/build.gradle File platform_tools/android/apps/viewer/build.gradle (right): https://codereview.chromium.org/1952323004/diff/40001/platform_tools/android/apps/viewer/build.gradle#newcode25 platform_tools/android/apps/viewer/build.gradle:25: compile 'com.android.support:appcompat-v7:19.+' why do we need the support library? ...
4 years, 7 months ago (2016-05-06 18:45:26 UTC) #6
djsollen
https://codereview.chromium.org/1952323004/diff/40001/tools/viewer/sk_app/android/surface_glue_android.h File tools/viewer/sk_app/android/surface_glue_android.h (right): https://codereview.chromium.org/1952323004/diff/40001/tools/viewer/sk_app/android/surface_glue_android.h#newcode30 tools/viewer/sk_app/android/surface_glue_android.h:30: void* pthread_main(void* arg); On 2016/05/06 18:45:26, djsollen wrote: > ...
4 years, 7 months ago (2016-05-06 18:58:53 UTC) #7
liyuqian
Cleaned up a lot of things according to your helpful comments :) https://codereview.chromium.org/1952323004/diff/40001/platform_tools/android/apps/viewer/build.gradle File platform_tools/android/apps/viewer/build.gradle ...
4 years, 7 months ago (2016-05-06 20:42:30 UTC) #8
djsollen
looking good. Just a few more cleanups and we'll need to add the basic input ...
4 years, 7 months ago (2016-05-09 13:17:14 UTC) #9
djsollen
https://codereview.chromium.org/1952323004/diff/40001/tools/viewer/sk_app/android/surface_glue_android.cpp File tools/viewer/sk_app/android/surface_glue_android.cpp (right): https://codereview.chromium.org/1952323004/diff/40001/tools/viewer/sk_app/android/surface_glue_android.cpp#newcode16 tools/viewer/sk_app/android/surface_glue_android.cpp:16: #include <android_native_app_glue.h> On 2016/05/06 20:42:30, liyuqian wrote: > On ...
4 years, 7 months ago (2016-05-09 13:29:44 UTC) #10
liyuqian
Revised except Window_android::init (please see the replied comment). https://codereview.chromium.org/1952323004/diff/40001/tools/viewer/sk_app/android/surface_glue_android.cpp File tools/viewer/sk_app/android/surface_glue_android.cpp (right): https://codereview.chromium.org/1952323004/diff/40001/tools/viewer/sk_app/android/surface_glue_android.cpp#newcode16 tools/viewer/sk_app/android/surface_glue_android.cpp:16: #include ...
4 years, 7 months ago (2016-05-09 14:27:28 UTC) #11
djsollen
lgtm, but you'll need to have a follow on CL to add back in event ...
4 years, 7 months ago (2016-05-09 14:36:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952323004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952323004/120001
4 years, 7 months ago (2016-05-09 14:50:34 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8423) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
4 years, 7 months ago (2016-05-09 14:52:05 UTC) #16
liyuqian
I've merged 1950983007 into this CL. I wonder whether we should write a build trybot ...
4 years, 7 months ago (2016-05-09 15:20:29 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952323004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952323004/140001
4 years, 7 months ago (2016-05-09 15:24:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952323004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952323004/140001
4 years, 7 months ago (2016-05-09 15:32:44 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 15:49:34 UTC) #28
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/796c5bb4655a511553970e111c96d90963fb9ae4

Powered by Google App Engine
This is Rietveld 408576698