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

Issue 1279343004: Revise DrawAtlasBatch to get rid of one copy when generating the batch. (Closed)

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

Description

Revise DrawAtlasBatch to get rid of one copy when generating the batch. This doesn't appear to have much affect on perf in SampleApp, but it should avoid some copies and replaces a couple of STArrays with one that just does a memcpy in the copy constructor. Committed: https://skia.googlesource.com/skia/+/5a4d23508c3ca2c6cbca4e725ce65c0227b3b9ac

Patch Set 1 #

Total comments: 19

Patch Set 2 : Re-enable batching for DrawAtlas #

Total comments: 2

Patch Set 3 : Updated for comments #

Total comments: 4

Patch Set 4 : Address nits #

Patch Set 5 : Fix Windows warning #

Patch Set 6 : Picky picky Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -152 lines) Patch
M src/gpu/GrDrawContext.cpp View 2 chunks +2 lines, -58 lines 0 comments Download
M src/gpu/batches/GrDrawAtlasBatch.h View 3 chunks +10 lines, -15 lines 0 comments Download
M src/gpu/batches/GrDrawAtlasBatch.cpp View 1 2 3 4 5 5 chunks +123 lines, -79 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
jvanverth1
https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode156 src/gpu/batches/GrDrawAtlasBatch.cpp:156: return false; Not sure if this should be here ...
5 years, 4 months ago (2015-08-11 14:49:50 UTC) #2
robertphillips
https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode156 src/gpu/batches/GrDrawAtlasBatch.cpp:156: return false; I think we should just let it ...
5 years, 4 months ago (2015-08-11 15:01:07 UTC) #3
jvanverth1
https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode156 src/gpu/batches/GrDrawAtlasBatch.cpp:156: return false; On 2015/08/11 15:01:06, robertphillips wrote: > I ...
5 years, 4 months ago (2015-08-11 15:27:43 UTC) #4
robertphillips
https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode86 src/gpu/batches/GrDrawAtlasBatch.cpp:86: // figure out stride and offsets // Order within ...
5 years, 4 months ago (2015-08-11 15:32:06 UTC) #5
jvanverth1
https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/1/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode86 src/gpu/batches/GrDrawAtlasBatch.cpp:86: // figure out stride and offsets On 2015/08/11 15:32:05, ...
5 years, 4 months ago (2015-08-11 20:22:55 UTC) #6
robertphillips
lgtm + some nits https://codereview.chromium.org/1279343004/diff/40001/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/40001/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode90 src/gpu/batches/GrDrawAtlasBatch.cpp:90: size_t vertexStride = 2*sizeof(SkPoint); SkToBool(colors) ...
5 years, 4 months ago (2015-08-12 12:34:11 UTC) #7
jvanverth1
https://codereview.chromium.org/1279343004/diff/40001/src/gpu/batches/GrDrawAtlasBatch.cpp File src/gpu/batches/GrDrawAtlasBatch.cpp (right): https://codereview.chromium.org/1279343004/diff/40001/src/gpu/batches/GrDrawAtlasBatch.cpp#newcode90 src/gpu/batches/GrDrawAtlasBatch.cpp:90: size_t vertexStride = 2*sizeof(SkPoint); On 2015/08/12 12:34:11, robertphillips wrote: ...
5 years, 4 months ago (2015-08-12 14:08:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1279343004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1279343004/60001
5 years, 4 months ago (2015-08-12 14:08:56 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/2631)
5 years, 4 months ago (2015-08-12 14:12:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1279343004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1279343004/100001
5 years, 4 months ago (2015-08-12 15:07:27 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 15:15:35 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/5a4d23508c3ca2c6cbca4e725ce65c0227b3b9ac

Powered by Google App Engine
This is Rietveld 408576698