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

Issue 1417583009: Combine native sampling with sampling (Closed)

Created:
5 years, 1 month ago by scroggo_chromium
Modified:
5 years, 1 month 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

Combine native sampling with sampling In SkSampledCodec, allow the native codec to do its scaling first, then sample on top of that. Since the only codec which can do native scaling is JPEG, and we know what it can do, hard-code for JPEG. Check to see if the sampleSize is something JPEG supports, or a multiple of something it supports. If so, use JPEG directly or combine them. BUG=skia:4320 Committed: https://skia.googlesource.com/skia/+/501b7344f116ccc821d437d324aa7883d7ce97bf

Patch Set 1 #

Total comments: 11

Patch Set 2 : Respond to comments in patch set 1 #

Patch Set 3 : Move sampleSize == 1 check into base class, always call getSampledDimensions #

Patch Set 4 : Turn subset decode into full decode #

Total comments: 7

Patch Set 5 : Add more scales to Codec_Dimensions test #

Patch Set 6 : Add more sampleSizes to nanobench #

Patch Set 7 : Work around missing initializer_list on mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -33 lines) Patch
M bench/nanobench.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M dm/DM.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M src/codec/SkAndroidCodec.cpp View 1 2 3 3 chunks +16 lines, -2 lines 0 comments Download
M src/codec/SkSampledCodec.h View 1 chunk +13 lines, -0 lines 0 comments Download
M src/codec/SkSampledCodec.cpp View 1 2 3 4 5 6 4 chunks +72 lines, -28 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
scroggo_chromium
I thought I was going to need to change getScaledSubsetDimensions to call a virtual, but ...
5 years, 1 month ago (2015-10-29 21:17:27 UTC) #2
msarett
As far as testing, I think we should add it everywhere. I definitely think it ...
5 years, 1 month ago (2015-10-29 22:36:33 UTC) #3
scroggo_chromium
PTAL On 2015/10/29 22:36:33, msarett wrote: > As far as testing, I think we should ...
5 years, 1 month ago (2015-11-02 21:22:10 UTC) #4
msarett
> > Also, I'd be in favor of adding 1 or 2 to nanobench now ...
5 years, 1 month ago (2015-11-02 22:31:57 UTC) #5
scroggo
On 2015/11/02 22:31:57, msarett wrote: > > > Also, I'd be in favor of adding ...
5 years, 1 month ago (2015-11-03 15:17:38 UTC) #7
msarett
lgtm https://codereview.chromium.org/1417583009/diff/60001/src/codec/SkSampledCodec.cpp File src/codec/SkSampledCodec.cpp (right): https://codereview.chromium.org/1417583009/diff/60001/src/codec/SkSampledCodec.cpp#newcode169 src/codec/SkSampledCodec.cpp:169: subsetWidth = get_scaled_dimension(subsetPtr->width(), nativeSampleSize); On 2015/11/03 15:17:37, scroggo ...
5 years, 1 month ago (2015-11-03 15:23:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417583009/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417583009/100001
5 years, 1 month ago (2015-11-03 15:35:55 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac10.8-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac10.8-Clang-x86_64-Release-Trybot/builds/6400)
5 years, 1 month ago (2015-11-03 15:37:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417583009/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417583009/120001
5 years, 1 month ago (2015-11-03 15:41:34 UTC) #15
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 15:55:17 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/501b7344f116ccc821d437d324aa7883d7ce97bf

Powered by Google App Engine
This is Rietveld 408576698