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

Issue 1396323007: API to support native scaling by image-generator (Closed)

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

Description

API to support native scaling by image-generator BUG=skia: Committed: https://skia.googlesource.com/skia/+/7850eb2f357c215b2e2c50bf16d6c6df38c7967f

Patch Set 1 #

Total comments: 25

Patch Set 2 : #

Patch Set 3 : update comment about inexact scaling support #

Patch Set 4 : experiment w/ alternate comments and alternate signature #

Total comments: 10

Patch Set 5 : remove alternate versions #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : now with gm #

Total comments: 8

Patch Set 8 : remove min, fix warning #

Total comments: 7

Patch Set 9 : mark test image as opaque, so jpeg has a chance of encoding it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -10 lines) Patch
M gm/image.cpp View 1 2 3 4 5 6 7 8 3 chunks +139 lines, -10 lines 0 comments Download
M include/core/SkImageGenerator.h View 1 2 3 4 5 6 2 chunks +50 lines, -0 lines 0 comments Download
M src/core/SkImageGenerator.cpp View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M src/core/SkPictureImageGenerator.cpp View 1 2 3 4 5 6 7 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (9 generated)
reed1
just reviewing API contract for now
5 years, 2 months ago (2015-10-13 21:16:25 UTC) #2
msarett
This looks good. I think it is a good match with what we know we ...
5 years, 2 months ago (2015-10-13 21:43:23 UTC) #3
msarett
https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h#newcode174 include/core/SkImageGenerator.h:174: * or the scaledClip is invalid, this returns false ...
5 years, 2 months ago (2015-10-13 21:50:31 UTC) #4
scroggo
It seems this new method does not support color tables? It seems like the new ...
5 years, 2 months ago (2015-10-14 14:11:28 UTC) #5
aleksandar.stojiljkovic
https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h#newcode108 include/core/SkImageGenerator.h:108: bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, I ...
5 years, 2 months ago (2015-10-14 15:32:36 UTC) #6
aleksandar.stojiljkovic
> I'm planning to post a review for that case tomorrow - in order to ...
5 years, 2 months ago (2015-10-15 16:08:25 UTC) #7
reed1
I plan to continue investigating this CL. I'm ok if you want to also explore ...
5 years, 2 months ago (2015-10-15 18:21:28 UTC) #8
aleksandar.stojiljkovic
On 2015/10/15 18:21:28, reed1 wrote: > I plan to continue investigating this CL. I'm ok ...
5 years, 2 months ago (2015-10-16 14:42:21 UTC) #9
reed1
gotcha
5 years, 2 months ago (2015-10-16 14:46:11 UTC) #10
aleksandar.stojiljkovic
https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h#newcode176 include/core/SkImageGenerator.h:176: bool generateScaledPixels(const SkImageInfo& scaledInfo, void* pixels, size_t rowBytes, Related ...
5 years, 1 month ago (2015-10-27 13:42:25 UTC) #12
reed1
https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h#newcode159 include/core/SkImageGenerator.h:159: * the two nearest supported dimensions. If scaling is ...
5 years, 1 month ago (2015-10-28 18:01:52 UTC) #13
msarett
https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/1/include/core/SkImageGenerator.h#newcode159 include/core/SkImageGenerator.h:159: * the two nearest supported dimensions. If scaling is ...
5 years, 1 month ago (2015-10-28 18:27:20 UTC) #14
reed1
5 years, 1 month ago (2015-10-29 19:31:01 UTC) #15
msarett
https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h#newcode170 include/core/SkImageGenerator.h:170: * in sukpportedSizes[1] nit: *supported https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h#newcode177 include/core/SkImageGenerator.h:177: bool computeScaledDimensions(SkScalar ...
5 years, 1 month ago (2015-10-29 19:50:24 UTC) #16
aleksandar.stojiljkovic
https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h#newcode210 include/core/SkImageGenerator.h:210: bool generateScaledPixels(const SkImageInfo& scaledInfo, void* pixels, size_t rowBytes, if ...
5 years, 1 month ago (2015-10-29 20:39:35 UTC) #17
reed1
https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h#newcode170 include/core/SkImageGenerator.h:170: * in sukpportedSizes[1] On 2015/10/29 19:50:24, msarett wrote: > ...
5 years, 1 month ago (2015-11-02 20:52:59 UTC) #18
aleksandar.stojiljkovic
On 2015/11/02 20:52:59, reed1 wrote: > https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h > File include/core/SkImageGenerator.h (right): > > https://codereview.chromium.org/1396323007/diff/60001/include/core/SkImageGenerator.h#newcode170 > ...
5 years, 1 month ago (2015-11-03 16:06:48 UTC) #19
aleksandar.stojiljkovic
5 years, 1 month ago (2015-11-03 16:07:05 UTC) #20
scroggo
https://codereview.chromium.org/1396323007/diff/80001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/80001/include/core/SkImageGenerator.h#newcode172 include/core/SkImageGenerator.h:172: * requested scale, then that 1 native size will ...
5 years, 1 month ago (2015-11-03 16:59:19 UTC) #21
reed1
https://codereview.chromium.org/1396323007/diff/80001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/80001/include/core/SkImageGenerator.h#newcode172 include/core/SkImageGenerator.h:172: * requested scale, then that 1 native size will ...
5 years ago (2015-11-30 20:38:01 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1396323007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1396323007/120001
5 years ago (2015-11-30 20:38:16 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/4576)
5 years ago (2015-11-30 20:43:11 UTC) #26
msarett
This looks good to me. I think that supporting scaling (no subsets yet) will be ...
5 years ago (2015-11-30 21:24:26 UTC) #27
reed1
https://codereview.chromium.org/1396323007/diff/120001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1396323007/diff/120001/include/core/SkImageGenerator.h#newcode168 include/core/SkImageGenerator.h:168: bool computeScaledDimensions(SkScalar scale, SupportedSizes*); On 2015/11/30 21:24:26, msarett wrote: ...
5 years ago (2015-11-30 21:29:20 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1396323007/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1396323007/140001
5 years ago (2015-11-30 21:32:40 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-30 21:52:48 UTC) #32
msarett
https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp#newcode353 gm/image.cpp:353: static SkImageGenerator* gen_jpg(const SkImageInfo& info, GrContext*) { I'm not ...
5 years ago (2015-11-30 23:00:32 UTC) #33
reed1
https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp#newcode353 gm/image.cpp:353: static SkImageGenerator* gen_jpg(const SkImageInfo& info, GrContext*) { On 2015/11/30 ...
5 years ago (2015-12-01 03:31:47 UTC) #34
scroggo
lgtm https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp#newcode377 gm/image.cpp:377: const SkImageInfo info = SkImageInfo::MakeN32Premul(sizes.fSizes[0].width(), Why not draw ...
5 years ago (2015-12-02 15:04:44 UTC) #35
reed1
https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/1396323007/diff/140001/gm/image.cpp#newcode377 gm/image.cpp:377: const SkImageInfo info = SkImageInfo::MakeN32Premul(sizes.fSizes[0].width(), On 2015/12/02 15:04:44, scroggo ...
5 years ago (2015-12-02 21:37:05 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1396323007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1396323007/160001
5 years ago (2015-12-02 22:01:33 UTC) #39
commit-bot: I haz the power
5 years ago (2015-12-02 22:19:50 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/7850eb2f357c215b2e2c50bf16d6c6df38c7967f

Powered by Google App Engine
This is Rietveld 408576698