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

Issue 2078483002: Start using GrGpuCommandBuffer in GrDrawTarget. (Closed)

Created:
4 years, 6 months ago by egdaniel
Modified:
4 years, 6 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@memoryWAR
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Start using GrGpuCommandBuffer in GrDrawTarget. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2052263003 Committed: https://skia.googlesource.com/skia/+/9cb6340a62a5d748e4189d50e51fa527c8c80c03

Patch Set 1 #

Total comments: 2

Patch Set 2 : clean up #

Total comments: 28

Patch Set 3 : review nits #

Total comments: 16

Patch Set 4 : Review fixes #

Patch Set 5 : Support clears in CB #

Total comments: 5

Patch Set 6 : Review updates #

Total comments: 8

Patch Set 7 : clean up struct #

Patch Set 8 : nits #

Patch Set 9 : remove errant lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+698 lines, -551 lines) Patch
M gyp/gpu.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrBatchFlushState.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/GrBatchFlushState.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 3 chunks +31 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 5 chunks +10 lines, -47 lines 0 comments Download
M src/gpu/GrGpu.cpp View 8 2 chunks +0 lines, -32 lines 0 comments Download
M src/gpu/GrGpuCommandBuffer.h View 1 2 3 4 5 6 7 2 chunks +66 lines, -8 lines 0 comments Download
A src/gpu/GrGpuCommandBuffer.cpp View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M src/gpu/batches/GrBatch.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/batches/GrClearBatch.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M src/gpu/batches/GrCopySurfaceBatch.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M src/gpu/batches/GrDiscardBatch.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/batches/GrVertexBatch.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 4 5 4 chunks +23 lines, -15 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 4 chunks +15 lines, -11 lines 0 comments Download
M src/gpu/gl/GrGLGpuCommandBuffer.h View 1 2 3 1 chunk +28 lines, -5 lines 0 comments Download
M src/gpu/vk/GrVkCaps.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkCommandBuffer.h View 1 2 3 4 7 chunks +17 lines, -6 lines 0 comments Download
M src/gpu/vk/GrVkCommandBuffer.cpp View 1 2 3 4 5 chunks +40 lines, -16 lines 0 comments Download
M src/gpu/vk/GrVkGpu.h View 1 2 3 4 5 5 chunks +9 lines, -25 lines 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 1 2 3 4 5 4 chunks +16 lines, -309 lines 0 comments Download
M src/gpu/vk/GrVkGpuCommandBuffer.h View 1 2 3 4 5 2 chunks +35 lines, -4 lines 0 comments Download
M src/gpu/vk/GrVkGpuCommandBuffer.cpp View 1 2 3 4 5 6 7 2 chunks +332 lines, -32 lines 0 comments Download
M src/gpu/vk/GrVkPipelineState.cpp View 2 chunks +0 lines, -13 lines 0 comments Download
M src/gpu/vk/GrVkResourceProvider.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/VkClearTests.cpp View 3 chunks +4 lines, -2 lines 0 comments Download
M tests/VkUploadPixelsTests.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gpu/GrTest.cpp View 1 2 3 4 5 3 chunks +3 lines, -16 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (8 generated)
egdaniel
https://codereview.chromium.org/2078483002/diff/1/tests/VkClearTests.cpp File tests/VkClearTests.cpp (right): https://codereview.chromium.org/2078483002/diff/1/tests/VkClearTests.cpp#newcode51 tests/VkClearTests.cpp:51: #if 0 currently these test don't work since doing ...
4 years, 6 months ago (2016-06-16 20:13:35 UTC) #1
egdaniel
4 years, 6 months ago (2016-06-16 20:23:55 UTC) #3
jvanverth1
Lots o' comments https://codereview.chromium.org/2078483002/diff/20001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.chromium.org/2078483002/diff/20001/src/gpu/GrDrawTarget.cpp#newcode219 src/gpu/GrDrawTarget.cpp:219: if (fBatches[i]->renderTarget() != currentRT /* || ...
4 years, 6 months ago (2016-06-17 15:25:16 UTC) #4
egdaniel
https://codereview.chromium.org/2078483002/diff/20001/src/gpu/GrGpuCommandBuffer.cpp File src/gpu/GrGpuCommandBuffer.cpp (right): https://codereview.chromium.org/2078483002/diff/20001/src/gpu/GrGpuCommandBuffer.cpp#newcode15 src/gpu/GrGpuCommandBuffer.cpp:15: this->gpu()->handleDirtyContext(); On 2016/06/17 15:25:15, jvanverth1 wrote: > It'd be ...
4 years, 6 months ago (2016-06-17 15:57:35 UTC) #5
jvanverth1
Looks fine to me, but unless you're really in a hurry I'd feel better if ...
4 years, 6 months ago (2016-06-17 16:49:13 UTC) #6
egdaniel
https://codereview.chromium.org/2078483002/diff/20001/src/gpu/batches/GrCopySurfaceBatch.h File src/gpu/batches/GrCopySurfaceBatch.h (right): https://codereview.chromium.org/2078483002/diff/20001/src/gpu/batches/GrCopySurfaceBatch.h#newcode39 src/gpu/batches/GrCopySurfaceBatch.h:39: GrRenderTarget* renderTarget() const override { return nullptr; } On ...
4 years, 6 months ago (2016-06-17 17:06:49 UTC) #7
egdaniel
https://codereview.chromium.org/2078483002/diff/20001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.chromium.org/2078483002/diff/20001/src/gpu/GrDrawTarget.cpp#newcode219 src/gpu/GrDrawTarget.cpp:219: if (fBatches[i]->renderTarget() != currentRT /* || commandBuffer*/) { On ...
4 years, 6 months ago (2016-06-17 18:49:14 UTC) #8
bsalomon
https://codereview.chromium.org/2078483002/diff/40001/src/gpu/GrGpu.h File src/gpu/GrGpu.h (right): https://codereview.chromium.org/2078483002/diff/40001/src/gpu/GrGpu.h#newcode581 src/gpu/GrGpu.h:581: friend class GrGpuCommandBuffer; why does this need to be ...
4 years, 6 months ago (2016-06-20 16:51:14 UTC) #9
egdaniel
Fixed comments in review. I've also added support clears in the vulkan command buffer. If ...
4 years, 6 months ago (2016-06-22 15:26:57 UTC) #10
bsalomon
https://codereview.chromium.org/2078483002/diff/40001/src/gpu/GrGpu.h File src/gpu/GrGpu.h (right): https://codereview.chromium.org/2078483002/diff/40001/src/gpu/GrGpu.h#newcode581 src/gpu/GrGpu.h:581: friend class GrGpuCommandBuffer; On 2016/06/22 15:26:57, egdaniel wrote: > ...
4 years, 6 months ago (2016-06-22 15:41:15 UTC) #11
egdaniel
Updated. Also note that I will move the NVPR stuff onto command buffer in a ...
4 years, 6 months ago (2016-06-22 21:13:36 UTC) #13
bsalomon
lgtm w/ some inline comments that you can ignore if you like. https://codereview.chromium.org/2078483002/diff/100001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp ...
4 years, 6 months ago (2016-06-23 02:12:55 UTC) #14
egdaniel
https://codereview.chromium.org/2078483002/diff/100001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.chromium.org/2078483002/diff/100001/src/gpu/GrDrawTarget.cpp#newcode230 src/gpu/GrDrawTarget.cpp:230: static const GrGpuCommandBuffer::LoadAndStoreInfo kBasicLoadStoreInfo = On 2016/06/23 02:12:55, bsalomon ...
4 years, 6 months ago (2016-06-23 13:57:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078483002/140001
4 years, 6 months ago (2016-06-23 15:11:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078483002/160001
4 years, 6 months ago (2016-06-23 15:12:53 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 15:37:12 UTC) #24
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/9cb6340a62a5d748e4189d50e51fa527c8c80c03

Powered by Google App Engine
This is Rietveld 408576698