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

Issue 302333002: Initial KTX file decoder (Closed)

Created:
6 years, 6 months ago by krajcevski
Modified:
6 years, 6 months ago
CC:
skia-review_googlegroups.com, tfarina
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Remove ktx file from patch set #

Patch Set 3 : Added some cleanup and validation checks #

Patch Set 4 : Fix gm #

Total comments: 10

Patch Set 5 : Address code review comments #

Total comments: 59

Patch Set 6 : Address code review changes #

Total comments: 2

Patch Set 7 : Fix includes and SkTArray #

Total comments: 7

Patch Set 8 : Move KTX files to third_party #

Patch Set 9 : Use SkData for reference counting #

Total comments: 4

Patch Set 10 : Add comment #

Patch Set 11 : More code comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+676 lines, -26 lines) Patch
M gm/etc1bitmap.cpp View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -6 lines 0 comments Download
M gyp/gpu.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M gyp/images.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
A + gyp/ktx.gyp View 1 2 3 4 5 6 7 1 chunk +8 lines, -4 lines 0 comments Download
M include/core/SkImageDecoder.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -14 lines 0 comments Download
M src/images/SkForceLinking.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/images/SkImageDecoder.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
A src/images/SkImageDecoder_ktx.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +179 lines, -0 lines 0 comments Download
M src/images/SkStreamHelpers.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M src/images/SkStreamHelpers.cpp View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -0 lines 0 comments Download
M tests/ImageDecodingTest.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/ktx/ktx.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +129 lines, -0 lines 0 comments Download
A third_party/ktx/ktx.cpp View 1 2 3 4 5 6 7 1 chunk +242 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
krajcevski
6 years, 6 months ago (2014-06-02 19:34:53 UTC) #1
robertphillips
Will have to look at this more later https://codereview.chromium.org/302333002/diff/50001/gm/etc1bitmap.cpp File gm/etc1bitmap.cpp (right): https://codereview.chromium.org/302333002/diff/50001/gm/etc1bitmap.cpp#newcode28 gm/etc1bitmap.cpp:28: SkString ...
6 years, 6 months ago (2014-06-02 19:56:02 UTC) #2
krajcevski
+ halcanary
6 years, 6 months ago (2014-06-02 19:57:47 UTC) #3
krajcevski
https://codereview.chromium.org/302333002/diff/50001/gm/etc1bitmap.cpp File gm/etc1bitmap.cpp (right): https://codereview.chromium.org/302333002/diff/50001/gm/etc1bitmap.cpp#newcode28 gm/etc1bitmap.cpp:28: SkString str = SkString("etc1bitmap_"); On 2014/06/02 19:56:03, robertphillips wrote: ...
6 years, 6 months ago (2014-06-02 20:01:57 UTC) #4
tfarina
https://codereview.chromium.org/302333002/diff/70001/src/utils/SkKTXFile.h File src/utils/SkKTXFile.h (right): https://codereview.chromium.org/302333002/diff/70001/src/utils/SkKTXFile.h#newcode19 src/utils/SkKTXFile.h:19: class SkKTXFile { could you add a high-level class ...
6 years, 6 months ago (2014-06-03 03:52:45 UTC) #5
robertphillips
https://codereview.chromium.org/302333002/diff/70001/gm/etc1bitmap.cpp File gm/etc1bitmap.cpp (right): https://codereview.chromium.org/302333002/diff/70001/gm/etc1bitmap.cpp#newcode17 gm/etc1bitmap.cpp:17: /** Update comment ? (either a PKM or KTX ...
6 years, 6 months ago (2014-06-03 13:27:40 UTC) #6
reed1
Can everything KTX be more isolated, as we do for JPEG, PNG? Does any of ...
6 years, 6 months ago (2014-06-03 13:40:43 UTC) #7
hal.canary
https://codereview.chromium.org/302333002/diff/70001/src/utils/SkKTXFile.h File src/utils/SkKTXFile.h (right): https://codereview.chromium.org/302333002/diff/70001/src/utils/SkKTXFile.h#newcode19 src/utils/SkKTXFile.h:19: class SkKTXFile { On 2014/06/03 03:52:46, tfarina wrote: > ...
6 years, 6 months ago (2014-06-03 13:48:00 UTC) #8
krajcevski
>Can everything KTX be more isolated, as we do for JPEG, PNG? >Does any of ...
6 years, 6 months ago (2014-06-03 14:46:27 UTC) #9
krajcevski
https://codereview.chromium.org/302333002/diff/70001/src/utils/SkKTXFile.cpp File src/utils/SkKTXFile.cpp (right): https://codereview.chromium.org/302333002/diff/70001/src/utils/SkKTXFile.cpp#newcode11 src/utils/SkKTXFile.cpp:11: On 2014/06/03 13:27:41, robertphillips wrote: > Hmmm - we ...
6 years, 6 months ago (2014-06-03 14:58:35 UTC) #10
robertphillips
lgtm + some nits. https://codereview.chromium.org/302333002/diff/110001/src/utils/SkKTXFile.cpp File src/utils/SkKTXFile.cpp (right): https://codereview.chromium.org/302333002/diff/110001/src/utils/SkKTXFile.cpp#newcode19 src/utils/SkKTXFile.cpp:19: // magic code used by ...
6 years, 6 months ago (2014-06-03 15:28:01 UTC) #11
krajcevski
I've moved the ktx files over to third_party to match the ETC1 files. https://codereview.chromium.org/302333002/diff/110001/src/utils/SkKTXFile.cpp File ...
6 years, 6 months ago (2014-06-03 15:41:46 UTC) #12
hal.canary
https://codereview.chromium.org/302333002/diff/70001/include/core/SkImageDecoder.h File include/core/SkImageDecoder.h (right): https://codereview.chromium.org/302333002/diff/70001/include/core/SkImageDecoder.h#newcode43 include/core/SkImageDecoder.h:43: kLastKnownFormat = kWEBP_Format, kLastKnownFormat = kkKTX_Format https://codereview.chromium.org/302333002/diff/70001/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp ...
6 years, 6 months ago (2014-06-03 15:41:58 UTC) #13
krajcevski
https://codereview.chromium.org/302333002/diff/70001/include/core/SkImageDecoder.h File include/core/SkImageDecoder.h (right): https://codereview.chromium.org/302333002/diff/70001/include/core/SkImageDecoder.h#newcode43 include/core/SkImageDecoder.h:43: kLastKnownFormat = kWEBP_Format, On 2014/06/03 15:41:58, Hal Canary wrote: ...
6 years, 6 months ago (2014-06-03 18:56:28 UTC) #14
hal.canary
lgtm https://codereview.chromium.org/302333002/diff/150001/src/images/SkImageDecoder_ktx.cpp File src/images/SkImageDecoder_ktx.cpp (right): https://codereview.chromium.org/302333002/diff/150001/src/images/SkImageDecoder_ktx.cpp#newcode50 src/images/SkImageDecoder_ktx.cpp:50: SkAutoDataUnref data(CopyStreamToData(stream)); // TODO: We should implement SkStream::copyToData() ...
6 years, 6 months ago (2014-06-03 19:22:48 UTC) #15
krajcevski
https://codereview.chromium.org/302333002/diff/150001/src/images/SkImageDecoder_ktx.cpp File src/images/SkImageDecoder_ktx.cpp (right): https://codereview.chromium.org/302333002/diff/150001/src/images/SkImageDecoder_ktx.cpp#newcode50 src/images/SkImageDecoder_ktx.cpp:50: SkAutoDataUnref data(CopyStreamToData(stream)); On 2014/06/03 19:22:48, Hal Canary wrote: > ...
6 years, 6 months ago (2014-06-03 19:46:52 UTC) #16
bsalomon
api lgtm
6 years, 6 months ago (2014-06-03 19:47:59 UTC) #17
krajcevski
The CQ bit was checked by krajcevski@google.com
6 years, 6 months ago (2014-06-03 19:48:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/krajcevski@google.com/302333002/190001
6 years, 6 months ago (2014-06-03 19:48:32 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 20:04:48 UTC) #20
Message was sent while issue was closed.
Change committed as 99ffe24200d8940ceba20f6fbf8c460f994d3cd1

Powered by Google App Engine
This is Rietveld 408576698