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

Issue 470233002: always scale to an integer; compensate for fractional image sizes by leaving the fractional scale i… (Closed)

Created:
6 years, 4 months ago by humper
Modified:
6 years, 3 months ago
Reviewers:
reed1
CC:
reviews_skia.org, jbroman
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

always scale to an integer; compensate for fractional image sizes by leaving the fractional scale in the matrix BUG=skia: Committed: https://skia.googlesource.com/skia/+/ce7b1d5fadda5e0fd5a40257d4c8e1b6a0279597

Patch Set 1 #

Patch Set 2 : Disable GM tests that need rebaseline #

Patch Set 3 : use the rounded integral scale size as the cache key #

Patch Set 4 : add blink rebaseline avoid flag #

Patch Set 5 : Change scaled image cache test to reflet new way of storing images. Also git rebaseline #

Patch Set 6 : more git rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -15 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 1 chunk +22 lines, -1 line 0 comments Download
M gyp/skia_for_chromium_defines.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkBitmapProcState.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkBitmapProcState.cpp View 1 2 3 4 5 chunks +33 lines, -13 lines 0 comments Download
M tests/ScaledImageCache.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
humper
PTAL; this approach is more robust than the previous one and appears artifact free in ...
6 years, 4 months ago (2014-08-14 16:16:27 UTC) #1
reed1
do we need the fAdjusted bool? Seems like we use it *after* we have re-sniffed ...
6 years, 4 months ago (2014-08-14 18:59:10 UTC) #2
reed1
do we already have a gm that exercises this path, so we can see before/after?
6 years, 4 months ago (2014-08-14 18:59:41 UTC) #3
reed1
On 2014/08/14 18:59:41, reed1 wrote: > do we already have a gm that exercises this ...
6 years, 4 months ago (2014-08-14 19:00:02 UTC) #4
humper
I think we need something like that flag; if we leave fractional scaling components in ...
6 years, 4 months ago (2014-08-15 11:37:12 UTC) #5
reed1
Hmmm, you're saying that sometimes we need to respect just-translate in the matrix, and sometimes ...
6 years, 4 months ago (2014-08-15 14:40:39 UTC) #6
humper
Sorry this got derailed; I was pretty sick this week. I'm saying that what we ...
6 years, 4 months ago (2014-08-22 16:51:09 UTC) #7
humper
Latest patch uses the rounded integral image size for the cache key, which should result ...
6 years, 4 months ago (2014-08-25 18:42:24 UTC) #8
reed1
who defines the IGNORE_PROPER flag? Should that be defined in skia_for_chromium.gypi? lgtm otherwise
6 years, 4 months ago (2014-08-25 18:48:13 UTC) #9
humper
Yeah, that'll need to get defined for the next roll; then jbroman can undefine it ...
6 years, 4 months ago (2014-08-25 20:24:13 UTC) #10
humper
On 2014/08/25 20:24:13, humper wrote: > Yeah, that'll need to get defined for the next ...
6 years, 4 months ago (2014-08-25 20:27:04 UTC) #11
humper
The CQ bit was checked by humper@google.com
6 years, 4 months ago (2014-08-25 20:27:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/470233002/60001
6 years, 4 months ago (2014-08-25 20:27:26 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on tryserver.skia ...
6 years, 4 months ago (2014-08-25 20:35:06 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-25 20:39:46 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot on tryserver.skia (http://108.170.220.120:10117/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot/builds/355)
6 years, 4 months ago (2014-08-25 20:39:47 UTC) #16
humper
The CQ bit was checked by humper@google.com
6 years, 3 months ago (2014-08-27 14:45:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/470233002/80001
6 years, 3 months ago (2014-08-27 14:45:52 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 14:45:56 UTC) #19
commit-bot: I haz the power
Failed to apply patch for expectations/gm/ignored-tests.txt: While running git apply --index -p1; error: patch failed: ...
6 years, 3 months ago (2014-08-27 14:45:57 UTC) #20
humper
The CQ bit was checked by humper@google.com
6 years, 3 months ago (2014-08-27 14:48:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/470233002/100001
6 years, 3 months ago (2014-08-27 14:48:53 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (100001) as ce7b1d5fadda5e0fd5a40257d4c8e1b6a0279597
6 years, 3 months ago (2014-08-27 14:56:56 UTC) #23
humper
6 years, 3 months ago (2014-08-27 23:57:59 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #6) has been created in
https://codereview.chromium.org/509183002/ by humper@google.com.

The reason for reverting is: Patch seems to have broken image scaling replay
tests on one android platform and chromeos.

http://108.170.220.21:10117/builders/Test-Android-Xoom-Tegra2-Arm7-Release/bu....

Powered by Google App Engine
This is Rietveld 408576698