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

Issue 2245993002: [SVGDom] Deferred SampleApp parsing (Closed)

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

Description

[SVGDom] Deferred SampleApp parsing Parse SVG files in onOnceBeforeDraw() rather than ctor, to avoid front-loading a bunch of work when passed a loarge number of SVGs. R=stephana@google.com,robertphillips@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2245993002 Committed: https://skia.googlesource.com/skia/+/851d68aa5692103db67433354c7421863d01dbda

Patch Set 1 #

Total comments: 2

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -12 lines) Patch
M samplecode/SampleApp.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M samplecode/SampleSVGFile.cpp View 1 3 chunks +12 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
f(malita)
4 years, 4 months ago (2016-08-14 14:04:25 UTC) #2
robertphillips
lgtm https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp File samplecode/SampleSVGFile.cpp (right): https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp#newcode25 samplecode/SampleSVGFile.cpp:25: void onOnceBeforeDraw() override { Do you need this ...
4 years, 4 months ago (2016-08-14 20:15:29 UTC) #7
f(malita)
https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp File samplecode/SampleSVGFile.cpp (right): https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp#newcode25 samplecode/SampleSVGFile.cpp:25: void onOnceBeforeDraw() override { On 2016/08/14 20:15:29, robertphillips wrote: ...
4 years, 4 months ago (2016-08-15 13:18:57 UTC) #8
f(malita)
On 2016/08/15 13:18:57, f(malita) wrote: > https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp > File samplecode/SampleSVGFile.cpp (right): > > https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp#newcode25 > ...
4 years, 4 months ago (2016-08-15 14:24:47 UTC) #9
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/2245993002/20001
4 years, 4 months ago (2016-08-15 14:25:03 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/851d68aa5692103db67433354c7421863d01dbda
4 years, 4 months ago (2016-08-15 14:48:51 UTC) #14
robertphillips
4 years, 4 months ago (2016-08-15 14:50:38 UTC) #15
Message was sent while issue was closed.
On 2016/08/15 14:24:47, f(malita) wrote:
> On 2016/08/15 13:18:57, f(malita) wrote:
> >
https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cpp
> > File samplecode/SampleSVGFile.cpp (right):
> > 
> >
>
https://codereview.chromium.org/2245993002/diff/1/samplecode/SampleSVGFile.cp...
> > samplecode/SampleSVGFile.cpp:25: void onOnceBeforeDraw() override {
> > On 2016/08/14 20:15:29, robertphillips wrote:
> > > Do you need this if check? Shouldn't 'fDom' always be null?
> > 
> > I was thinking it may trigger when navigating back to a slide, since I've
> > noticed a bunch of re-parsing when switching back and forth.  I'll
> double-check
> > to make sure it does have an impact, and take out if not.
> 
> Took it out: it doesn't do anything currently, because unfortunately SampleApp
> is caching the factories for SVG/SKP/PDF files - so we get a new instance
every
> time we visit the slide :(

That's what I thought happened :(

Powered by Google App Engine
This is Rietveld 408576698