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

Issue 922273002: YUV scale fix (Closed)

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

Description

YUV scale fix There was a scaling mistake visible in some JPEG images because the ratio between Y, U and V planes were assumed to be the same ratios as the ratio between texture sizes, which was wrong because texture have a minimum size of 16 and are rounded up to the next POT. Since the ratios between Y and UV planes are generally 1, 2 or 4, rounding up to the next POT would generally preserve this ratio, so that this bug was not very visible, apart from very small jpeg images of 8 or less pixels in either width or height. BUG=457954 Committed: https://skia.googlesource.com/skia/+/e6eddf7dd85add7da41f22f2643bdd573ad1f1cf Committed: https://skia.googlesource.com/skia/+/4ccce7ea618fd9557a6d5cfa29c1fd6b015c7580

Patch Set 1 #

Total comments: 1

Patch Set 2 : Modified test for smaller size and added assert #

Patch Set 3 : Attempted Win fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -25 lines) Patch
M gm/yuvtorgbeffect.cpp View 1 2 5 chunks +20 lines, -11 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.cpp View 1 5 chunks +31 lines, -12 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
sugoi1
5 years, 10 months ago (2015-02-13 16:15:51 UTC) #2
bsalomon
shouldn't we have a test that would have failed with the old code? https://codereview.chromium.org/922273002/diff/1/src/gpu/effects/GrYUVtoRGBEffect.cpp File ...
5 years, 10 months ago (2015-02-13 18:26:09 UTC) #3
sugoi1
On 2015/02/13 18:26:09, bsalomon wrote: > shouldn't we have a test that would have failed ...
5 years, 10 months ago (2015-02-13 18:51:51 UTC) #4
bsalomon
On 2015/02/13 18:51:51, sugoi1 wrote: > On 2015/02/13 18:26:09, bsalomon wrote: > > shouldn't we ...
5 years, 10 months ago (2015-02-13 19:03:47 UTC) #5
sugoi1
On 2015/02/13 19:03:47, bsalomon wrote: > Can the GM be updated to draw a second ...
5 years, 10 months ago (2015-02-13 19:34:01 UTC) #6
bsalomon
lgtm
5 years, 10 months ago (2015-02-13 19:35:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/922273002/20001
5 years, 10 months ago (2015-02-13 19:36:56 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/e6eddf7dd85add7da41f22f2643bdd573ad1f1cf
5 years, 10 months ago (2015-02-13 19:47:16 UTC) #10
jvanverth1
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/926123002/ by jvanverth@google.com. ...
5 years, 10 months ago (2015-02-13 20:02:01 UTC) #11
sugoi1
On 2015/02/13 20:02:01, jvanverth1 wrote: > A revert of this CL (patchset #2 id:20001) has ...
5 years, 10 months ago (2015-02-13 21:50:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/922273002/40001
5 years, 10 months ago (2015-02-13 21:51:06 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 21:57:13 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/4ccce7ea618fd9557a6d5cfa29c1fd6b015c7580

Powered by Google App Engine
This is Rietveld 408576698