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

Issue 1581653003: DM test for YUV (Closed)

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

Description

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -5 lines) Patch
M dm/DM.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M dm/DMSrcSink.h View 1 chunk +1 line, -0 lines 0 comments Download
M dm/DMSrcSink.cpp View 5 chunks +48 lines, -4 lines 4 comments Download

Depends on Patchset:

Messages

Total messages: 5 (3 generated)
scroggo
https://codereview.chromium.org/1581653003/diff/1/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1581653003/diff/1/dm/DMSrcSink.cpp#newcode245 dm/DMSrcSink.cpp:245: if (CodecSrc::kGetFromCanvas_DstColorType != fDstColorType || 1.0f != fScale) { ...
4 years, 11 months ago (2016-01-13 21:04:54 UTC) #3
msarett
4 years, 11 months ago (2016-01-15 18:57:35 UTC) #4
This has been merged with https://codereview.chromium.org/1549473003/.

https://codereview.chromium.org/1581653003/diff/1/dm/DMSrcSink.cpp
File dm/DMSrcSink.cpp (right):

https://codereview.chromium.org/1581653003/diff/1/dm/DMSrcSink.cpp#newcode245
dm/DMSrcSink.cpp:245: if (CodecSrc::kGetFromCanvas_DstColorType != fDstColorType
|| 1.0f != fScale) {
On 2016/01/13 21:04:54, scroggo wrote:
> For the DstColorType, can we just limit creating CodecSrc to kGetFromCanvas?
> 

Done.

> For scale, I could imagine we just scale the canvas... maybe that's
interesting
> for comparison?

This test has become a test of SkCodecImageGenerator.  I think it makes sense to
add scaling tests when we add scaling support to SkCodecImageGenerator.

https://codereview.chromium.org/1581653003/diff/1/dm/DMSrcSink.cpp#newcode327
dm/DMSrcSink.cpp:327: return test_yuv(canvas, codec.detach());
On 2016/01/13 21:04:54, scroggo wrote:
> Alternatively, you could let this method delete the codec (test_yuv will be
> called before this method returns, so no need to pass ownership).

Done.

Powered by Google App Engine
This is Rietveld 408576698