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

Issue 596513002: Don't try to scale embedded bitmaps. (Closed)

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

Description

Don't try to scale embedded bitmaps. If a font is bitmap only we need to scale a bitmap to obtain the requested size if there isn't an exact match. If a font has embedded bitmaps then these bitmaps should never be scaled by Skia. Allow FreeType to do the scaling (as requested by the font). BUG=chromium:408059 Committed: https://skia.googlesource.com/skia/+/a85511adc0173bd44ec18dd7f026ef191b2d683e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/ports/SkFontHost_FreeType.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
bungeman-skia
Trying to scale embedded bitmaps by an average of one pixel using incorrectly scaled bounds ...
6 years, 3 months ago (2014-09-22 18:48:23 UTC) #2
mtklein
https://codereview.chromium.org/596513002/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/596513002/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode1306 src/ports/SkFontHost_FreeType.cpp:1306: fScaleY && fFace->size->metrics.y_ppem) First check is now obsolete?
6 years, 3 months ago (2014-09-22 18:50:42 UTC) #3
bungeman-skia
https://codereview.chromium.org/596513002/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/596513002/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode1306 src/ports/SkFontHost_FreeType.cpp:1306: fScaleY && fFace->size->metrics.y_ppem) On 2014/09/22 18:50:42, mtklein wrote: > ...
6 years, 3 months ago (2014-09-22 19:02:52 UTC) #4
mtklein
lgtm http://weknowmemes.com/generator/meme/478869/
6 years, 3 months ago (2014-09-22 19:07:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596513002/20001
6 years, 3 months ago (2014-09-22 19:09:57 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 19:24:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as a85511adc0173bd44ec18dd7f026ef191b2d683e

Powered by Google App Engine
This is Rietveld 408576698