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

Issue 1854283004: Track GL buffer state based on unique resource ID (Closed)

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

Description

Track GL buffer state based on unique resource ID Reworks GrGLGpu to track GL buffer state based on the unique GrGpuResource ID. This eliminates the need to notify the gpu object whenever a buffer is deleted. This change also allows us to remove the type specifier from GrBuffer. At this point a buffer is just a chunk of memory, and the type given at creation time is just a suggestion to the GL backend about which target to bind to for updates. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854283004 Committed: https://skia.googlesource.com/skia/+/deacc97bc63513b5eacaf21f858727f6e8b98ce5 Committed: https://skia.googlesource.com/skia/+/e2e71c2df4e72e897bbe745752be0444aee5c29f

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments #

Patch Set 3 : rebase #

Patch Set 4 : uglify for msvc #

Patch Set 5 : Rebase on null context fix #

Total comments: 2

Patch Set 6 : undo layer test change #

Patch Set 7 : fix for GR_GL_USE_BUFFER_DATA_NULL_HINT=0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+513 lines, -624 lines) Patch
M include/gpu/GrTypesPriv.h View 1 chunk +11 lines, -0 lines 0 comments Download
M src/gpu/GrBuffer.h View 3 chunks +5 lines, -9 lines 0 comments Download
M src/gpu/GrBufferAllocPool.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpu.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/GrResourceProvider.h View 1 chunk +11 lines, -1 line 0 comments Download
M src/gpu/GrResourceProvider.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/batches/GrTessellatingPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLBuffer.h View 2 chunks +11 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGLBuffer.cpp View 1 2 3 4 5 6 9 chunks +79 lines, -93 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 10 chunks +47 lines, -112 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 29 chunks +305 lines, -334 lines 0 comments Download
M src/gpu/gl/GrGLVertexArray.h View 6 chunks +6 lines, -23 lines 0 comments Download
M src/gpu/gl/GrGLVertexArray.cpp View 6 chunks +11 lines, -22 lines 0 comments Download
M src/gpu/vk/GrVkGpu.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/vk/GrVkIndexBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkTransferBuffer.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M src/gpu/vk/GrVkVertexBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/gpu/GrTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 49 (22 generated)
Chris Dalton
4 years, 8 months ago (2016-04-05 14:52:54 UTC) #3
bsalomon
https://codereview.chromium.org/1854283004/diff/1/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1854283004/diff/1/src/gpu/gl/GrGLGpu.cpp#newcode254 src/gpu/gl/GrGLGpu.cpp:254: fCopyProgramArrayBuffer.reset(); Should we go ahead and declare GrGLGpu final? ...
4 years, 8 months ago (2016-04-05 15:17:28 UTC) #4
Chris Dalton
https://codereview.chromium.org/1854283004/diff/1/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1854283004/diff/1/src/gpu/gl/GrGLGpu.cpp#newcode254 src/gpu/gl/GrGLGpu.cpp:254: fCopyProgramArrayBuffer.reset(); On 2016/04/05 15:17:28, bsalomon wrote: > Should we ...
4 years, 8 months ago (2016-04-05 17:59:15 UTC) #5
bsalomon
lgtm
4 years, 8 months ago (2016-04-06 13:40:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/40001
4 years, 8 months ago (2016-04-06 13:42:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/40001
4 years, 8 months ago (2016-04-06 13:43:09 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/7662)
4 years, 8 months ago (2016-04-06 13:44:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/60001
4 years, 8 months ago (2016-04-06 14:31:56 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/2692)
4 years, 8 months ago (2016-04-06 16:17:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/60001
4 years, 8 months ago (2016-04-06 17:10:49 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/2694)
4 years, 8 months ago (2016-04-06 19:01:23 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/80001
4 years, 8 months ago (2016-04-06 20:05:58 UTC) #24
Chris Dalton
https://codereview.chromium.org/1854283004/diff/80001/tests/GpuLayerCacheTest.cpp File tests/GpuLayerCacheTest.cpp (right): https://codereview.chromium.org/1854283004/diff/80001/tests/GpuLayerCacheTest.cpp#newcode110 tests/GpuLayerCacheTest.cpp:110: DEF_GPUTEST_FOR_NULL_CONTEXT(GpuLayerCache, reporter, ctxInfo) { This technically isn't a problem ...
4 years, 8 months ago (2016-04-06 20:06:22 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 20:33:46 UTC) #27
bsalomon
https://codereview.chromium.org/1854283004/diff/80001/tests/GpuLayerCacheTest.cpp File tests/GpuLayerCacheTest.cpp (right): https://codereview.chromium.org/1854283004/diff/80001/tests/GpuLayerCacheTest.cpp#newcode110 tests/GpuLayerCacheTest.cpp:110: DEF_GPUTEST_FOR_NULL_CONTEXT(GpuLayerCache, reporter, ctxInfo) { On 2016/04/06 20:06:21, Chris Dalton ...
4 years, 8 months ago (2016-04-06 20:58:06 UTC) #28
Chris Dalton
On 2016/04/06 20:58:06, bsalomon wrote: > https://codereview.chromium.org/1854283004/diff/80001/tests/GpuLayerCacheTest.cpp > File tests/GpuLayerCacheTest.cpp (right): > > https://codereview.chromium.org/1854283004/diff/80001/tests/GpuLayerCacheTest.cpp#newcode110 > ...
4 years, 8 months ago (2016-04-06 21:06:41 UTC) #29
Chris Dalton
Re-committing now that the null context is fixed.
4 years, 8 months ago (2016-04-06 21:08:00 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/100001
4 years, 8 months ago (2016-04-06 21:10:59 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/deacc97bc63513b5eacaf21f858727f6e8b98ce5
4 years, 8 months ago (2016-04-06 21:26:37 UTC) #35
mtklein
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1870553002/ by mtklein@google.com. ...
4 years, 8 months ago (2016-04-07 01:24:18 UTC) #36
Chris Dalton
This should fix the chrome issue
4 years, 8 months ago (2016-04-07 02:07:37 UTC) #38
Chris Dalton
On 2016/04/07 02:07:37, Chris Dalton wrote: > This should fix the chrome issue Can I ...
4 years, 8 months ago (2016-04-07 16:38:40 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/120001
4 years, 8 months ago (2016-04-07 19:29:53 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 19:39:57 UTC) #43
Chris Dalton
Re-landing before it ends up needing a rebase.
4 years, 8 months ago (2016-04-08 01:11:54 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854283004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854283004/120001
4 years, 8 months ago (2016-04-08 01:12:13 UTC) #47
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 01:13:43 UTC) #49
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/e2e71c2df4e72e897bbe745752be0444aee5c29f

Powered by Google App Engine
This is Rietveld 408576698