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

Issue 654873003: Implicit SkTextBlob bounds (Closed)

Created:
6 years, 2 months ago by f(malita)
Modified:
6 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Implicit SkTextBlob bounds Compute blob bounds when the client doesn't pass explicit run rects to the builder. This allows us to remove a couple of internal workarounds. R=reed@google.com,mtklein@google.com,bungeman@google.com Committed: https://skia.googlesource.com/skia/+/19653d1d004610b4ba07ce563a5701164e120e45

Patch Set 1 #

Patch Set 2 : minor cleanup #

Total comments: 11

Patch Set 3 : review comments #

Patch Set 4 : fetch glyph bounds atomically using getTextWidths() #

Patch Set 5 : we don't need glyph widths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -9 lines) Patch
M expectations/gm/ignored-tests.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkTextBlob.cpp View 1 2 3 4 2 chunks +44 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
f(malita)
6 years, 2 months ago (2014-10-16 16:44:57 UTC) #1
bungeman-skia
lgtm, though I'm not sure how much weight I give that here.
6 years, 2 months ago (2014-10-16 16:58:14 UTC) #3
mtklein
https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp#newcode327 src/core/SkTextBlob.cpp:327: run->glyphCount() * sizeof(uint16_t), So we're always GlyphID encoded in ...
6 years, 2 months ago (2014-10-16 17:03:59 UTC) #4
reed1
https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp#newcode327 src/core/SkTextBlob.cpp:327: run->glyphCount() * sizeof(uint16_t), On 2014/10/16 17:03:59, mtklein wrote: > ...
6 years, 2 months ago (2014-10-16 17:06:17 UTC) #5
mtklein
https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp#newcode342 src/core/SkTextBlob.cpp:342: ? *(glyphOffset + 1) : 0); Wait a sec, ...
6 years, 2 months ago (2014-10-16 17:06:20 UTC) #6
robertphillips
lgtm fwiw
6 years, 2 months ago (2014-10-16 17:13:44 UTC) #7
f(malita)
https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp#newcode327 src/core/SkTextBlob.cpp:327: run->glyphCount() * sizeof(uint16_t), On 2014/10/16 17:06:17, reed1 wrote: > ...
6 years, 2 months ago (2014-10-16 17:21:57 UTC) #8
mtklein
lgtm
6 years, 2 months ago (2014-10-16 17:25:02 UTC) #9
reed1
https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp#newcode327 src/core/SkTextBlob.cpp:327: run->glyphCount() * sizeof(uint16_t), On 2014/10/16 17:21:56, Florin Malita wrote: ...
6 years, 2 months ago (2014-10-16 17:27:18 UTC) #10
f(malita)
https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/654873003/diff/20001/src/core/SkTextBlob.cpp#newcode327 src/core/SkTextBlob.cpp:327: run->glyphCount() * sizeof(uint16_t), On 2014/10/16 17:27:18, reed1 wrote: > ...
6 years, 2 months ago (2014-10-16 17:52:43 UTC) #11
reed1
lgtm
6 years, 2 months ago (2014-10-16 18:15:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/654873003/80001
6 years, 2 months ago (2014-10-16 18:47:20 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 18:53:40 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 19653d1d004610b4ba07ce563a5701164e120e45

Powered by Google App Engine
This is Rietveld 408576698