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

Issue 304403003: Generate path names on the client side (Closed)

Created:
6 years, 6 months ago by Chris Dalton
Modified:
6 years, 6 months ago
Reviewers:
Mark Kilgard, bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Generate path names on the client side Pre-allocates a range of path names and manages allocations within that range on the client side. This allows us to generate new path objects in a feed-forward manner that doesn't require round trips to the GL server. BUG=skia: Committed: https://skia.googlesource.com/skia/+/511923443facc611b3735b4688342c12071feaa0

Patch Set 1 #

Total comments: 9

Patch Set 2 : Polish #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -2 lines) Patch
M gyp/gpu.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/gpu/gl/GrGLNameAllocator.h View 1 1 chunk +86 lines, -0 lines 0 comments Download
A src/gpu/gl/GrGLNameAllocator.cpp View 1 1 chunk +370 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 chunks +34 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
A tests/NameAllocatorTest.cpp View 1 2 1 chunk +169 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Chris Dalton
No tests yet. Overall the change is complex but helpful.
6 years, 6 months ago (2014-05-29 23:29:42 UTC) #1
Chris Dalton
6 years, 6 months ago (2014-05-29 23:31:05 UTC) #2
bsalomon
Seems like a pretty nice solution to the problem to me. It'd be nice to ...
6 years, 6 months ago (2014-05-30 18:09:11 UTC) #3
Chris Dalton
https://codereview.chromium.org/304403003/diff/1/src/gpu/gl/GrGLNameAllocator.cpp File src/gpu/gl/GrGLNameAllocator.cpp (right): https://codereview.chromium.org/304403003/diff/1/src/gpu/gl/GrGLNameAllocator.cpp#newcode26 src/gpu/gl/GrGLNameAllocator.cpp:26: SparseNameRange* ref() { On 2014/05/30 18:09:11, bsalomon wrote: > ...
6 years, 6 months ago (2014-05-30 21:39:41 UTC) #4
bsalomon
https://codereview.chromium.org/304403003/diff/1/src/gpu/gl/GrGLNameAllocator.cpp File src/gpu/gl/GrGLNameAllocator.cpp (right): https://codereview.chromium.org/304403003/diff/1/src/gpu/gl/GrGLNameAllocator.cpp#newcode26 src/gpu/gl/GrGLNameAllocator.cpp:26: SparseNameRange* ref() { On 2014/05/30 21:39:41, Chris Dalton wrote: ...
6 years, 6 months ago (2014-06-02 15:14:42 UTC) #5
Chris Dalton
And here is the polished set, complete with a new test
6 years, 6 months ago (2014-06-06 01:54:55 UTC) #6
bsalomon
It's looking good. Two small comments. https://codereview.chromium.org/304403003/diff/20001/src/gpu/gl/GrGLNameAllocator.h File src/gpu/gl/GrGLNameAllocator.h (right): https://codereview.chromium.org/304403003/diff/20001/src/gpu/gl/GrGLNameAllocator.h#newcode15 src/gpu/gl/GrGLNameAllocator.h:15: /** Nice dox ...
6 years, 6 months ago (2014-06-09 13:52:22 UTC) #7
Chris Dalton
https://codereview.chromium.org/304403003/diff/20001/tests/NameAllocatorTest.cpp File tests/NameAllocatorTest.cpp (right): https://codereview.chromium.org/304403003/diff/20001/tests/NameAllocatorTest.cpp#newcode100 tests/NameAllocatorTest.cpp:100: const GrGLuint seed = (count + fRandomName) / 2; ...
6 years, 6 months ago (2014-06-09 16:59:39 UTC) #8
bsalomon
https://codereview.chromium.org/304403003/diff/20001/tests/NameAllocatorTest.cpp File tests/NameAllocatorTest.cpp (right): https://codereview.chromium.org/304403003/diff/20001/tests/NameAllocatorTest.cpp#newcode100 tests/NameAllocatorTest.cpp:100: const GrGLuint seed = (count + fRandomName) / 2; ...
6 years, 6 months ago (2014-06-09 17:09:42 UTC) #9
Chris Dalton
This addresses the new comments https://codereview.chromium.org/304403003/diff/20001/tests/NameAllocatorTest.cpp File tests/NameAllocatorTest.cpp (right): https://codereview.chromium.org/304403003/diff/20001/tests/NameAllocatorTest.cpp#newcode15 tests/NameAllocatorTest.cpp:15: class NameLeakTest { On ...
6 years, 6 months ago (2014-06-09 17:27:28 UTC) #10
bsalomon
lgtm
6 years, 6 months ago (2014-06-09 17:44:08 UTC) #11
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 6 months ago (2014-06-09 17:59:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/304403003/40001
6 years, 6 months ago (2014-06-09 18:00:20 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 18:17:02 UTC) #14
Message was sent while issue was closed.
Change committed as 511923443facc611b3735b4688342c12071feaa0

Powered by Google App Engine
This is Rietveld 408576698