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

Issue 1531323002: SkMatrix::preScale() is too conservative (Closed)

Created:
5 years ago by f(malita)
Modified:
5 years ago
Reviewers:
caryclark, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkMatrix::preScale() is too conservative SkMatrix::preScale() always sets the kScale bit, which means something like m = SkMatrix::MakeScale(2, 2); m.preScale(0.5, 0.5); leaves m.getType() == kScale_Mask, and can throw off the bitmap proc heuristics. We could detect the inverse case and clear the scale bit instead. R=reed@google.com,caryclark@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1531323002 Committed: https://skia.googlesource.com/skia/+/a379da41b7b0408c834db967c0034fd7f611aa83

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : comment + guard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M src/core/SkMatrix.cpp View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
f(malita)
I ran into this while trying to figure why picture shaders are always bilerp-filtered even ...
5 years ago (2015-12-17 18:08:01 UTC) #3
caryclark
lgtm In general, I wonder if matrix should have a dirty bit so it can ...
5 years ago (2015-12-17 18:14:40 UTC) #4
f(malita)
On 2015/12/17 18:14:40, caryclark wrote: > lgtm > > In general, I wonder if matrix ...
5 years ago (2015-12-17 18:19:32 UTC) #5
reed1
can't we always clear the scale bit if both scales are 1?
5 years ago (2015-12-17 18:23:37 UTC) #6
f(malita)
On 2015/12/17 18:23:37, reed1 wrote: > can't we always clear the scale bit if both ...
5 years ago (2015-12-17 18:26:05 UTC) #7
f(malita)
On 2015/12/17 18:26:05, f(malita) wrote: > On 2015/12/17 18:23:37, reed1 wrote: > > can't we ...
5 years ago (2015-12-17 18:30:07 UTC) #8
reed1
lgtm
5 years ago (2015-12-17 19:07:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531323002/40001
5 years ago (2015-12-17 20:53:53 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-17 22:12:33 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/a379da41b7b0408c834db967c0034fd7f611aa83

Powered by Google App Engine
This is Rietveld 408576698