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

Issue 554613004: TextBlob: Start caching a text blob per InlineTextBox. (Closed)

Created:
6 years, 3 months ago by jbroman
Modified:
6 years, 3 months ago
CC:
blink-reviews, jamesr, blink-reviews-rendering, krit, zoltan1, eae+blinkwatch, leviw+renderwatch, danakj, Rik, jchaffraix+rendering, pdr., rwlbuis, Stephen Chennney, rune+blink
Project:
blink
Visibility:
Public.

Description

TextBlob: Start caching a text blob per InlineTextBox. BUG=377845 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182243

Patch Set 1 #

Patch Set 2 : rewrite in light of changed Font::drawText signature #

Total comments: 13

Patch Set 3 : rebase, review comments #

Patch Set 4 : turn off runtime-enabled feature for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -16 lines) Patch
M Source/core/rendering/InlineTextBox.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/InlineTextBox.cpp View 1 2 3 chunks +21 lines, -1 line 0 comments Download
M Source/core/rendering/TextPainter.h View 2 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/rendering/TextPainter.cpp View 1 2 2 chunks +29 lines, -7 lines 0 comments Download
M Source/platform/fonts/Font.h View 1 4 chunks +6 lines, -4 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 1 chunk +36 lines, -0 lines 0 comments Download
M Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp View 1 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 24 (7 generated)
jbroman
I was originally going to plumb this through Font::drawText, but it's non-trivial to get the ...
6 years, 3 months ago (2014-09-11 18:11:42 UTC) #5
jbroman
On 2014/09/11 18:11:42, jbroman wrote: > This is pretty limited at present, but it does ...
6 years, 3 months ago (2014-09-11 18:12:17 UTC) #6
jbroman
Layout test results include 3 expected changes, and the remainder (canvas tests) are unrelated to ...
6 years, 3 months ago (2014-09-11 18:25:31 UTC) #7
f(malita)
Awesome! On 2014/09/11 18:11:42, jbroman wrote: > I was originally going to plumb this through ...
6 years, 3 months ago (2014-09-12 13:21:24 UTC) #8
jbroman
On 2014/09/12 13:21:24, Florin Malita wrote: > Awesome! > > > On 2014/09/11 18:11:42, jbroman ...
6 years, 3 months ago (2014-09-12 19:06:01 UTC) #9
f(malita)
On 2014/09/12 19:06:01, jbroman wrote: > Here are a bunch of record time numbers on ...
6 years, 3 months ago (2014-09-12 20:36:35 UTC) #10
jbroman
these didn't get published before; sending now; will reply to your new comments later https://codereview.chromium.org/554613004/diff/80001/Source/core/rendering/InlineTextBox.h ...
6 years, 3 months ago (2014-09-13 00:06:42 UTC) #11
jbroman
On 2014/09/12 20:36:35, Florin Malita wrote: > On 2014/09/12 19:06:01, jbroman wrote: > > Here ...
6 years, 3 months ago (2014-09-15 14:24:54 UTC) #12
f(malita)
On 2014/09/15 14:24:54, jbroman wrote: > The alternative is using a map hosted somewhere higher ...
6 years, 3 months ago (2014-09-16 00:18:29 UTC) #14
eae
On 2014/09/16 00:18:29, Florin Malita wrote: > On 2014/09/15 14:24:54, jbroman wrote: > > The ...
6 years, 3 months ago (2014-09-16 00:27:06 UTC) #15
reed1
On 2014/09/16 00:27:06, eae wrote: > On 2014/09/16 00:18:29, Florin Malita wrote: > > On ...
6 years, 3 months ago (2014-09-16 12:44:59 UTC) #16
jbroman
Moved to a HashMap on the side. Performance hit seems negligible (mobile Wiki -34%, mobile ...
6 years, 3 months ago (2014-09-17 22:25:38 UTC) #17
f(malita)
LGTM (don't forget to switch the RTEF off before landing :P)
6 years, 3 months ago (2014-09-18 13:20:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554613004/120001
6 years, 3 months ago (2014-09-18 13:26:10 UTC) #21
jbroman
On 2014/09/18 13:20:50, Florin Malita wrote: > LGTM > > (don't forget to switch the ...
6 years, 3 months ago (2014-09-18 13:28:39 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:120001) as 182243
6 years, 3 months ago (2014-09-18 14:35:20 UTC) #23
leviw_travelin_and_unemployed
6 years, 3 months ago (2014-09-19 00:26:14 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/554613004/diff/80001/Source/core/rendering/In...
File Source/core/rendering/InlineTextBox.cpp (right):

https://codereview.chromium.org/554613004/diff/80001/Source/core/rendering/In...
Source/core/rendering/InlineTextBox.cpp:85: void InlineTextBox::markDirty()
On 2014/09/17 22:25:37, jbroman wrote:
> On 2014/09/16 00:18:29, Florin Malita wrote:
> > Do we need to invalidate the cache on markDirty()?
> 
> I don't believe that we can actually paint a dirty InlineTextBox, but I'm not
> certain. I'll invalidate to be safe, and leave a FIXME.

Just to be clear: we should *never* paint a dirty InlineTextBox.

Powered by Google App Engine
This is Rietveld 408576698