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

Issue 473633002: SkTextBlob (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : SkPicturePlayback plumbing #

Patch Set 3 : More const API, minimal docs. #

Total comments: 15

Patch Set 4 : Consolidated blob constructor + comments. #

Total comments: 4

Patch Set 5 : Move bounds to blob and compute upfront. #

Patch Set 6 : Use scalars instead of point in canvas API #

Patch Set 7 : API v2 #

Patch Set 8 : SkRecord plumbing + partial blob bounds logic #

Total comments: 25

Patch Set 9 : Alloc API + review comments #

Total comments: 20

Patch Set 10 : Updated per review. #

Patch Set 11 : GM #

Patch Set 12 : Rebased #

Patch Set 13 : Build warnings fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -11 lines) Patch
A gm/textblob.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +172 lines, -0 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -0 lines 0 comments Download
A include/core/SkTextBlob.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +179 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +44 lines, -0 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkRecorder.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M src/core/SkRecords.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +15 lines, -11 lines 0 comments Download
A src/core/SkTextBlob.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +221 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
f(malita)
Sharing mostly for API review. The implementation is incomplete, although it does work in immediate ...
6 years, 4 months ago (2014-08-13 21:10:46 UTC) #1
mtklein
https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h#newcode29 include/core/SkTextBlob.h:29: static const SkTextChunk* Create(const uint16_t* glyphs, size_t count, const ...
6 years, 4 months ago (2014-08-14 14:00:42 UTC) #2
f(malita)
https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h#newcode29 include/core/SkTextBlob.h:29: static const SkTextChunk* Create(const uint16_t* glyphs, size_t count, const ...
6 years, 4 months ago (2014-08-14 14:29:26 UTC) #3
mtklein
https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h#newcode57 include/core/SkTextBlob.h:57: mutable SkRect fBounds; > If we don't always compute ...
6 years, 4 months ago (2014-08-14 14:38:45 UTC) #4
jbroman
couple minor questions https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h#newcode116 include/core/SkTextBlob.h:116: const SkTextBlob* build(); nit: If SkTextBlobs ...
6 years, 4 months ago (2014-08-14 14:46:02 UTC) #5
reed1
https://codereview.chromium.org/473633002/diff/60001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/473633002/diff/60001/include/core/SkCanvas.h#newcode960 include/core/SkCanvas.h:960: void drawTextBlob(const SkTextBlob* blob, const SkPoint& offset, const SkPaint& ...
6 years, 4 months ago (2014-08-14 15:55:49 UTC) #6
f(malita)
https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h#newcode57 include/core/SkTextBlob.h:57: mutable SkRect fBounds; On 2014/08/14 14:38:45, mtklein wrote: > ...
6 years, 4 months ago (2014-08-14 16:13:36 UTC) #7
mtklein
https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/40001/include/core/SkTextBlob.h#newcode116 include/core/SkTextBlob.h:116: const SkTextBlob* build(); I'm in (perhaps, am?) the the-more-const-the-better ...
6 years, 4 months ago (2014-08-14 16:22:23 UTC) #8
f(malita)
https://codereview.chromium.org/473633002/diff/60001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/473633002/diff/60001/include/core/SkCanvas.h#newcode960 include/core/SkCanvas.h:960: void drawTextBlob(const SkTextBlob* blob, const SkPoint& offset, const SkPaint& ...
6 years, 4 months ago (2014-08-14 16:27:01 UTC) #9
f(malita)
On 2014/08/14 16:27:01, Florin Malita wrote: > https://codereview.chromium.org/473633002/diff/60001/include/core/SkTextBlob.h#newcode99 > include/core/SkTextBlob.h:99: void addChunk(const SkTextChunk* chunk); > ...
6 years, 4 months ago (2014-08-18 19:05:46 UTC) #10
robertphillips
https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h#newcode68 include/core/SkTextBlob.h:68: private: // This is ... ? https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h#newcode91 include/core/SkTextBlob.h:91: Helper ...
6 years, 4 months ago (2014-08-19 15:06:48 UTC) #11
jbroman
a few comments/questions; only looked at SkTextBlob.h https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h#newcode42 include/core/SkTextBlob.h:42: const SkPaint* ...
6 years, 4 months ago (2014-08-19 17:39:16 UTC) #12
jbroman
On 2014/08/19 17:39:16, jbroman wrote: > a few comments/questions; only looked at SkTextBlob.h > > ...
6 years, 4 months ago (2014-08-19 17:41:38 UTC) #13
f(malita)
Updated per review comments + simplified alloc-based API. https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/140001/include/core/SkTextBlob.h#newcode42 include/core/SkTextBlob.h:42: const ...
6 years, 4 months ago (2014-08-20 01:21:58 UTC) #14
reed1
lgtm modulo naming nits https://codereview.chromium.org/473633002/diff/160001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/160001/include/core/SkTextBlob.h#newcode124 include/core/SkTextBlob.h:124: uint16_t* allocRun(const SkPaint& font, size_t ...
6 years, 4 months ago (2014-08-20 01:29:42 UTC) #15
robertphillips
https://codereview.chromium.org/473633002/diff/160001/include/core/SkTextBlob.h File include/core/SkTextBlob.h (right): https://codereview.chromium.org/473633002/diff/160001/include/core/SkTextBlob.h#newcode14 include/core/SkTextBlob.h:14: #include "SkTDArray.h" Do we still need SkTemplates.h ? https://codereview.chromium.org/473633002/diff/160001/include/core/SkTextBlob.h#newcode74 ...
6 years, 4 months ago (2014-08-20 14:52:18 UTC) #16
jbroman
This looks good to me. https://codereview.chromium.org/473633002/diff/160001/src/core/SkTextBlob.cpp File src/core/SkTextBlob.cpp (right): https://codereview.chromium.org/473633002/diff/160001/src/core/SkTextBlob.cpp#newcode135 src/core/SkTextBlob.cpp:135: fPosBuffer.append(count * positioning); nit: ...
6 years, 4 months ago (2014-08-20 15:10:32 UTC) #17
f(malita)
Updated per review. Also changed the allocRun* return value to be a const ref to ...
6 years, 4 months ago (2014-08-20 15:47:48 UTC) #18
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 4 months ago (2014-08-21 15:34:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/473633002/220001
6 years, 4 months ago (2014-08-21 15:35:21 UTC) #20
f(malita)
The CQ bit was unchecked by fmalita@chromium.org
6 years, 4 months ago (2014-08-21 15:40:38 UTC) #21
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 4 months ago (2014-08-21 15:44:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/473633002/240001
6 years, 4 months ago (2014-08-21 15:45:33 UTC) #23
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 15:53:31 UTC) #24
Message was sent while issue was closed.
Committed patchset #13 (240001) as 00d5c2c6523321d25b32905ff4822f083a4173ee

Powered by Google App Engine
This is Rietveld 408576698