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

Issue 2276583003: SkScalerContextRec::computeMatrices to return status. (Closed)

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

Description

SkScalerContextRec::computeMatrices to return status. When computing the matricies for a scaler context, there is a special case when the matrix is determined to be singular. No port properly handles zero sized text, so we detect this case and return a 'normal' text size and a zero matrix for all computed transformations. This CL causes computeMatricies to return 'false' in this case. This is used in the constructor of SkScalerContext_Mac in order to avoid calling CGAffineTransformInvert on non-invertible transformations. CGAffineTransformInvert documents that if the transform is non-invertible it will return the passed transform unchanged. It does so, but then also prints a message to stdout. Since the information is already available to avoid this chatty behavior, use it to keep things quiet. BUG=skia:3231, chromium:630169 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2276583003 Committed: https://skia.googlesource.com/skia/+/1f0e78ddf94f6259e8bbfb403b55c8eeedac390c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M src/core/SkScalerContext.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkScalerContext.cpp View 3 chunks +4 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
bungeman-skia
4 years, 4 months ago (2016-08-23 19:43:13 UTC) #7
mtklein
lgtm thank you!
4 years, 4 months ago (2016-08-23 20:18:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2276583003/1
4 years, 4 months ago (2016-08-23 20:18:08 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 20:19:04 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/1f0e78ddf94f6259e8bbfb403b55c8eeedac390c

Powered by Google App Engine
This is Rietveld 408576698