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

Issue 1671193002: Make SkPicture/SkImageGenerator default to SkCodec (Closed)

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

Description

Make SkPicture/SkImageGenerator default to SkCodec Remove reference to SkImageDecoder from SkPicture. Make the default InstallPixelRefProc passed to CreateFromStream use SkImageGenerator::NewFromEncoded instead. Make SkImageGenerator::NewFromEncoded create an SkCodecImageGenerator. Remove the old version that used SkImageDecoder. Remove all versions of lazy_decode_bitmap/LazyDecodeBitmap. The default now behaves lazily. Update all clients to use the default. Move SkImageDecoderGenerator into KtxTest.cpp, and use it directly. BUG=skia:4691 BUG=skia:4290 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1671193002 Committed: https://skia.googlesource.com/skia/+/026388a01864c74208ad57d1ba4f711602d101c6

Patch Set 1 #

Patch Set 2 : Move SkImageDecoderGenerator into KtxTest.cpp #

Patch Set 3 : Rebase #

Patch Set 4 : Add references to bugs #

Total comments: 2

Patch Set 5 : Hide DefaultInstall; add a test #

Total comments: 3

Patch Set 6 : Add comment regarding serialized images #

Patch Set 7 : Move ImageGenerator impl into ktx code to share with nanobench #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -211 lines) Patch
M bench/ETCBitmapBench.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
M gyp/codec.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/images.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M gyp/tools.gyp View 1 2 5 chunks +0 lines, -18 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 1 chunk +13 lines, -2 lines 0 comments Download
M public.bzl View 1 chunk +0 lines, -2 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M src/images/SkImageDecoder_ktx.cpp View 1 2 3 4 5 6 2 chunks +99 lines, -0 lines 0 comments Download
M src/ports/SkImageGenerator_skia.cpp View 1 chunk +2 lines, -94 lines 0 comments Download
M tests/KtxTest.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 chunks +32 lines, -2 lines 0 comments Download
M tools/BUILD.public.expected View 1 chunk +0 lines, -2 lines 0 comments Download
D tools/LazyDecodeBitmap.h View 1 chunk +0 lines, -24 lines 0 comments Download
D tools/LazyDecodeBitmap.cpp View 1 chunk +0 lines, -44 lines 0 comments Download
M tools/dump_record.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M tools/gpuveto.cpp View 2 chunks +1 line, -4 lines 0 comments Download
M tools/lua/lua_pictures.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M tools/pinspect.cpp View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
scroggo
We may have to hold this up until we fix skbug.com/4888. Otherwise, we won't be ...
4 years, 10 months ago (2016-02-05 20:36:11 UTC) #3
msarett
Great! Will this work when I land the YUV CL? Last time I tried something ...
4 years, 10 months ago (2016-02-05 20:42:33 UTC) #4
scroggo
On 2016/02/05 20:42:33, msarett wrote: > Great! > > Will this work when I land ...
4 years, 10 months ago (2016-02-05 21:19:24 UTC) #6
scroggo
On 2016/02/05 21:19:24, scroggo wrote: > On 2016/02/05 20:42:33, msarett wrote: > > Great! > ...
4 years, 10 months ago (2016-02-09 13:22:09 UTC) #7
msarett
lgtm
4 years, 10 months ago (2016-02-09 13:22:48 UTC) #8
scroggo
Adding reed@ for API review on SkPicture.h
4 years, 10 months ago (2016-02-09 13:25:07 UTC) #10
reed1
https://codereview.chromium.org/1671193002/diff/60001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/1671193002/diff/60001/include/core/SkPicture.h#newcode62 include/core/SkPicture.h:62: static SkPicture* CreateFromStream(SkStream*, InstallPixelRefProc proc = &DefaultInstall); Do we ...
4 years, 10 months ago (2016-02-09 15:29:53 UTC) #11
scroggo
https://codereview.chromium.org/1671193002/diff/60001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/1671193002/diff/60001/include/core/SkPicture.h#newcode62 include/core/SkPicture.h:62: static SkPicture* CreateFromStream(SkStream*, InstallPixelRefProc proc = &DefaultInstall); On 2016/02/09 ...
4 years, 10 months ago (2016-02-09 16:12:18 UTC) #12
reed1
lgtm https://codereview.chromium.org/1671193002/diff/80001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/1671193002/diff/80001/include/core/SkPicture.h#newcode60 include/core/SkPicture.h:60: * Recreate a picture that was serialized into ...
4 years, 10 months ago (2016-02-09 20:46:26 UTC) #13
scroggo
https://codereview.chromium.org/1671193002/diff/80001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/1671193002/diff/80001/include/core/SkPicture.h#newcode60 include/core/SkPicture.h:60: * Recreate a picture that was serialized into a ...
4 years, 10 months ago (2016-02-09 21:07:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671193002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671193002/100001
4 years, 10 months ago (2016-02-09 21:07:26 UTC) #17
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/5989)
4 years, 10 months ago (2016-02-09 21:21:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671193002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671193002/120001
4 years, 10 months ago (2016-02-10 18:49:46 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://skia.googlesource.com/skia/+/026388a01864c74208ad57d1ba4f711602d101c6
4 years, 10 months ago (2016-02-10 19:15:42 UTC) #24
kjlubick
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1685963004/ by kjlubick@google.com. ...
4 years, 10 months ago (2016-02-10 19:24:55 UTC) #25
scroggo
On 2016/02/10 19:24:55, kjlubick wrote: > A revert of this CL (patchset #7 id:120001) has ...
4 years, 10 months ago (2016-02-10 20:23:04 UTC) #26
scroggo
4 years, 10 months ago (2016-02-18 17:33:34 UTC) #28

Powered by Google App Engine
This is Rietveld 408576698