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

Issue 1373683003: change pixel-serializer to support reencoding existing data

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

Description

change pixel-serializer to support reencoding existing data Trying to evolve this interface so it can - support rich set of backend-encoders (including ones like ETC1 that can cheaply convert to KXT - allow for encoding images as well as bitmaps (e.g. for picture serialization) - perhaps replace SkImageEncoder as an API (assuming we create a factory that returns a serializer given a format) BUG=skia: Committed: https://skia.googlesource.com/skia/+/13f48dc85aa68a60da66aaf39c93d527d11d1278

Patch Set 1 #

Patch Set 2 : removed another use of DEPRECATED discardable pixelref #

Total comments: 1

Patch Set 3 : re-add old virtual until we can update subclasses in chrome #

Patch Set 4 : revert to prev param types, to eash merge w/ chrome #

Patch Set 5 : I hate this warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -62 lines) Patch
M gyp/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkImageEncoder.h View 1 4 chunks +13 lines, -0 lines 0 comments Download
M include/core/SkPixelSerializer.h View 1 2 3 4 2 chunks +23 lines, -19 lines 0 comments Download
A src/core/SkPixelSerializer.cpp View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M src/core/SkWriteBuffer.cpp View 2 chunks +9 lines, -10 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 3 chunks +14 lines, -8 lines 0 comments Download
M src/images/SkImageDecoder_ktx.cpp View 1 1 chunk +21 lines, -15 lines 0 comments Download
M src/images/SkImageEncoder.cpp View 1 1 chunk +10 lines, -0 lines 0 comments Download
M tests/ImageTest.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M tests/KtxTest.cpp View 1 2 chunks +5 lines, -7 lines 0 comments Download
M tools/sk_tool_utils.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 33 (14 generated)
reed1
5 years, 2 months ago (2015-09-26 16:28:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373683003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373683003/1
5 years, 2 months ago (2015-09-26 16:28:28 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-26 16:33:21 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373683003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373683003/20001
5 years, 2 months ago (2015-09-26 17:15:29 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-26 17:20:17 UTC) #10
scroggo
Seems fine to me, once Chromium is fixed. https://codereview.chromium.org/1373683003/diff/20001/include/core/SkPixelSerializer.h File include/core/SkPixelSerializer.h (left): https://codereview.chromium.org/1373683003/diff/20001/include/core/SkPixelSerializer.h#oldcode44 include/core/SkPixelSerializer.h:44: virtual ...
5 years, 2 months ago (2015-09-28 13:34:10 UTC) #11
reed1
Luckily, chrome's two overrides both return true, which is the same default behavior as the ...
5 years, 2 months ago (2015-09-28 14:50:27 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373683003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373683003/40001
5 years, 2 months ago (2015-09-28 14:54:43 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/3446) Build-Ubuntu-GCC-x86_64-Release-Trybot on ...
5 years, 2 months ago (2015-09-28 14:55:34 UTC) #16
reed1
doh, also have changed the param to the other method. Will upload a new patch...
5 years, 2 months ago (2015-09-28 15:01:38 UTC) #17
scroggo
lgtm
5 years, 2 months ago (2015-09-28 15:01:52 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373683003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373683003/60001
5 years, 2 months ago (2015-09-28 15:45:35 UTC) #20
reed1
reverted to prev param types (pixmap --> info/pixels/rowbytes) to ease the merge w/ chrome.
5 years, 2 months ago (2015-09-28 15:45:45 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/3450) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on ...
5 years, 2 months ago (2015-09-28 15:46:33 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373683003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373683003/80001
5 years, 2 months ago (2015-09-28 15:49:19 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-28 15:55:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373683003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373683003/80001
5 years, 2 months ago (2015-09-28 15:58:09 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/13f48dc85aa68a60da66aaf39c93d527d11d1278
5 years, 2 months ago (2015-09-28 15:58:57 UTC) #31
reed1
5 years, 2 months ago (2015-09-28 16:58:22 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1371983003/ by reed@google.com.

The reason for reverting is: Need to somehow get access to encoders in chrome --
link error on the roll since SkImageEncoder is not built as part of chrome..

Powered by Google App Engine
This is Rietveld 408576698