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

Issue 677463002: Set temporary paths volatile so we don't cache them. (Closed)

Created:
6 years, 2 months ago by jvanverth1
Modified:
6 years, 2 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Set temporary paths volatile so we don't cache them. Any path that is generated frame-to-frame should not be rendered by using the DistanceFieldPathRenderer, because generating the initial distance field, uploading it and rendering it takes longer than the SoftwarePathRenderer. BUG=skia:2935 Committed: https://skia.googlesource.com/skia/+/b3eb687f8a89eb1eacd1afb4016401eb392f66ab

Patch Set 1 #

Total comments: 10

Patch Set 2 : Disable GMs that will change #

Patch Set 3 : Clean up #

Patch Set 4 : Mark more temp paths volatile. #

Total comments: 1

Patch Set 5 : Fix ignoredtests #

Patch Set 6 : Fix constructor #

Patch Set 7 : Fix Win8 error; more ignored GMs #

Patch Set 8 : Init fIsVolatile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -6 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M include/core/SkPath.h View 1 2 3 4 5 6 3 chunks +19 lines, -1 line 0 comments Download
M src/core/SkDraw.cpp View 1 2 3 4 chunks +6 lines, -2 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 5 7 6 chunks +7 lines, -1 line 0 comments Download
M src/core/SkStroke.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.cpp View 1 2 5 chunks +18 lines, -2 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 8 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
jvanverth1
Not quite sure if this is the right approach (should the flag be in SkPathRef?), ...
6 years, 2 months ago (2014-10-23 17:12:21 UTC) #2
jvanverth1
On 2014/10/23 17:12:21, jvanverth1 wrote: > Not quite sure if this is the right approach ...
6 years, 2 months ago (2014-10-23 17:23:04 UTC) #3
bsalomon
I think we have some work to do to avoid creating temporary paths. Which code ...
6 years, 2 months ago (2014-10-23 17:54:09 UTC) #4
jvanverth1
On 2014/10/23 17:54:09, bsalomon wrote: > I think we have some work to do to ...
6 years, 2 months ago (2014-10-23 18:01:05 UTC) #5
bsalomon
On 2014/10/23 18:01:05, jvanverth1 wrote: > On 2014/10/23 17:54:09, bsalomon wrote: > > I think ...
6 years, 2 months ago (2014-10-23 18:16:27 UTC) #6
jvanverth1
https://codereview.chromium.org/677463002/diff/1/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/677463002/diff/1/include/core/SkPath.h#newcode195 include/core/SkPath.h:195: default. Temporary paths that are discarded after use should ...
6 years, 2 months ago (2014-10-23 20:06:19 UTC) #7
jvanverth1
Might want to wait to review -- I need to add the mutable/isVolatile assert in ...
6 years, 2 months ago (2014-10-23 20:09:59 UTC) #8
jvanverth1
On 2014/10/23 20:09:59, jvanverth1 wrote: > Might want to wait to review -- I need ...
6 years, 2 months ago (2014-10-23 20:31:12 UTC) #9
bsalomon
https://codereview.chromium.org/677463002/diff/60001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/677463002/diff/60001/src/core/SkPath.cpp#newcode134 src/core/SkPath.cpp:134: this->resetFields(); Don't you need to set volatile=false here now?
6 years, 2 months ago (2014-10-23 20:36:28 UTC) #10
bsalomon
On 2014/10/23 20:36:28, bsalomon wrote: > https://codereview.chromium.org/677463002/diff/60001/src/core/SkPath.cpp > File src/core/SkPath.cpp (right): > > https://codereview.chromium.org/677463002/diff/60001/src/core/SkPath.cpp#newcode134 > ...
6 years, 2 months ago (2014-10-23 21:12:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/677463002/100001
6 years, 2 months ago (2014-10-24 01:14:29 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/222)
6 years, 2 months ago (2014-10-24 01:18:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/677463002/120001
6 years, 2 months ago (2014-10-24 13:39:02 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot/builds/217)
6 years, 2 months ago (2014-10-24 13:46:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/677463002/140001
6 years, 2 months ago (2014-10-24 13:52:02 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 14:12:55 UTC) #22
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as b3eb687f8a89eb1eacd1afb4016401eb392f66ab

Powered by Google App Engine
This is Rietveld 408576698