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

Issue 1150243003: Simplify path allocation, clean up resources correctly (Closed)

Created:
5 years, 7 months ago by Kimmo Kinnunen
Modified:
4 years, 11 months ago
Reviewers:
Chris Dalton, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Simplify path allocation, clean up resources correctly Simplify path id allocation in NVPR backend. Instead of using an AVL tree of path id ranges for the first 65535 ids, use just a simple stategy of overallocation and "bump index". Fixes the bug where previously overallocated ids were not deleted. The advantage is that the implementation is simple and all allocations go through overallocation, not just the first 65535 of the 1-range allocations. Removes the logic where paths were cleared with setting path data to null instead of deleting the whole path. Now deleted paths are just deleted normally. These operations should have equivalent performance on command buffer. Deleting the path should enable the driver to do more maintainance. Removes the GLNameAllocator, as it was only used for paths. In order for it to be used for other IDs, it probably would need to be re-written to support cleanup and arbitrary ranges. Also, the interface would probably need to be changed to not requiring the block to be allocated before it could be managed by the structure. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1150243003 Committed: https://skia.googlesource.com/skia/+/702501ddca7cf9b7b941ad286a0c9aa37fda86ef

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -672 lines) Patch
M gyp/gpu.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
D src/gpu/gl/GrGLNameAllocator.h View 1 1 chunk +0 lines, -86 lines 0 comments Download
D src/gpu/gl/GrGLNameAllocator.cpp View 1 1 chunk +0 lines, -370 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 1 4 chunks +53 lines, -44 lines 0 comments Download
D tests/NameAllocatorTest.cpp View 1 chunk +0 lines, -169 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Kimmo Kinnunen
How about this bikeshedding?
5 years, 7 months ago (2015-05-26 07:58:32 UTC) #2
bsalomon
On 2015/05/26 07:58:32, Kimmo Kinnunen wrote: > How about this bikeshedding? I'm ok with it, ...
5 years, 7 months ago (2015-05-27 02:14:21 UTC) #3
Chris Dalton
This seems fine to me for ES contexts. Are you seeing that clearing the path ...
5 years, 7 months ago (2015-05-27 04:24:49 UTC) #4
Kimmo Kinnunen
On 2015/05/27 04:24:49, Chris Dalton wrote: > This seems fine to me for ES contexts. ...
5 years, 6 months ago (2015-06-01 06:20:40 UTC) #5
Chris Dalton
The patch lgtm On 2015/06/01 06:20:40, Kimmo Kinnunen wrote: > It is not possible due ...
5 years, 6 months ago (2015-06-02 03:45:06 UTC) #6
bsalomon
On 2015/06/02 03:45:06, Chris Dalton wrote: > The patch lgtm > > On 2015/06/01 06:20:40, ...
5 years, 6 months ago (2015-06-02 13:45:36 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150243003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1150243003/20001
4 years, 11 months ago (2016-01-14 07:04:43 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-14 07:15:52 UTC) #12
Kimmo Kinnunen
This was left out when I worked on command buffer. I'll integrate this now, before ...
4 years, 11 months ago (2016-01-14 07:25:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150243003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1150243003/40001
4 years, 11 months ago (2016-01-14 07:25:42 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 07:36:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/702501ddca7cf9b7b941ad286a0c9aa37fda86ef

Powered by Google App Engine
This is Rietveld 408576698