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

Issue 2035823002: Make GrClipMaskManager stateless and push GrPipelineBuilder construction downstack (Closed)

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

Description

Make GrClipMaskManager stateless and push GrPipelineBuilder construction downstack This will be followed up with a CL to remove the GrRenderTarget from the GrPipelineBuilder. Split out of: https://codereview.chromium.org/1988923002/ (Declassify GrClipMaskManager and Remove GrRenderTarget and GrDrawTarget from GrPipelineBuilder) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2035823002 Committed: https://skia.googlesource.com/skia/+/976f5f0dc5e907d1ca50685fad117bd15d7fc87b

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : Fix Release build (for finicky compilers) #

Total comments: 10

Patch Set 4 : Address code review comments #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+607 lines, -428 lines) Patch
M include/gpu/GrClip.h View 5 chunks +6 lines, -6 lines 0 comments Download
M include/gpu/GrDrawContext.h View 1 2 4 chunks +21 lines, -2 lines 0 comments Download
M src/gpu/GrClip.cpp View 3 chunks +9 lines, -8 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 3 chunks +24 lines, -39 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 22 chunks +79 lines, -115 lines 2 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 21 chunks +71 lines, -29 lines 1 comment Download
M src/gpu/GrDrawContextPriv.h View 2 chunks +16 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 6 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 7 chunks +11 lines, -9 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 1 2 3 7 chunks +29 lines, -31 lines 0 comments Download
M src/gpu/GrPipelineBuilder.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/gpu/GrSWMaskHelper.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 5 chunks +12 lines, -6 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.h View 1 chunk +17 lines, -1 line 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 4 chunks +48 lines, -32 lines 0 comments Download
M src/gpu/GrUserStencilSettings.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/batches/GrAAConvexPathRenderer.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.cpp View 2 chunks +7 lines, -2 lines 0 comments Download
M src/gpu/batches/GrAAHairLinePathRenderer.cpp View 1 chunk +11 lines, -4 lines 0 comments Download
M src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp View 2 chunks +7 lines, -2 lines 0 comments Download
M src/gpu/batches/GrDashLinePathRenderer.cpp View 3 chunks +9 lines, -3 lines 0 comments Download
M src/gpu/batches/GrDefaultPathRenderer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/batches/GrDefaultPathRenderer.cpp View 1 7 chunks +48 lines, -28 lines 1 comment Download
M src/gpu/batches/GrMSAAPathRenderer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/batches/GrMSAAPathRenderer.cpp View 8 chunks +51 lines, -31 lines 1 comment Download
M src/gpu/batches/GrPLSPathRenderer.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M src/gpu/batches/GrStencilAndCoverPathRenderer.cpp View 1 5 chunks +61 lines, -26 lines 1 comment Download
M src/gpu/batches/GrTessellatingPathRenderer.cpp View 1 3 chunks +11 lines, -7 lines 0 comments Download
M src/gpu/text/GrAtlasTextBlob.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/TessellatingPathRendererTests.cpp View 2 chunks +24 lines, -25 lines 0 comments Download
M tools/gpu/GrTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
robertphillips
4 years, 6 months ago (2016-06-02 17:28:36 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2035823002/20001
4 years, 6 months ago (2016-06-02 17:28:56 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/8829)
4 years, 6 months ago (2016-06-02 17:31:26 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035823002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2035823002/40001
4 years, 6 months ago (2016-06-02 17:53:24 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-02 18:18:05 UTC) #13
bsalomon
https://codereview.chromium.org/2035823002/diff/40001/include/gpu/GrDrawContext.h File include/gpu/GrDrawContext.h (right): https://codereview.chromium.org/2035823002/diff/40001/include/gpu/GrDrawContext.h#newcode304 include/gpu/GrDrawContext.h:304: friend class GrSWMaskHelper; // for access to drawBatch Maybe ...
4 years, 6 months ago (2016-06-03 14:27:16 UTC) #14
robertphillips
https://codereview.chromium.org/2035823002/diff/40001/include/gpu/GrDrawContext.h File include/gpu/GrDrawContext.h (right): https://codereview.chromium.org/2035823002/diff/40001/include/gpu/GrDrawContext.h#newcode304 include/gpu/GrDrawContext.h:304: friend class GrSWMaskHelper; // for access to drawBatch On ...
4 years, 6 months ago (2016-06-03 15:46:16 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035823002/60001
4 years, 6 months ago (2016-06-03 17:23:54 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 17:43:24 UTC) #19
bsalomon
lgtm https://codereview.chromium.org/2035823002/diff/40001/include/gpu/GrDrawContext.h File include/gpu/GrDrawContext.h (right): https://codereview.chromium.org/2035823002/diff/40001/include/gpu/GrDrawContext.h#newcode304 include/gpu/GrDrawContext.h:304: friend class GrSWMaskHelper; // for access to drawBatch ...
4 years, 6 months ago (2016-06-03 17:57:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035823002/60001
4 years, 6 months ago (2016-06-03 17:58:02 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/976f5f0dc5e907d1ca50685fad117bd15d7fc87b
4 years, 6 months ago (2016-06-03 17:59:24 UTC) #24
bungeman-skia
Leak should be fixed with https://codereview.chromium.org/2037193002/ . https://codereview.chromium.org/2035823002/diff/60001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2035823002/diff/60001/src/gpu/GrDrawContext.cpp#newcode412 src/gpu/GrDrawContext.cpp:412: paint.setXPFactory(GrDisableColorXPFactory::Create()); bug: ...
4 years, 6 months ago (2016-06-03 21:11:12 UTC) #26
bungeman-skia
4 years, 6 months ago (2016-06-03 23:57:03 UTC) #27
Message was sent while issue was closed.
Rest of the leaks of this sort should be fixed with
https://codereview.chromium.org/2037243002/ .

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/GrClipMaskManag...
File src/gpu/GrClipMaskManager.cpp (right):

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/GrClipMaskManag...
src/gpu/GrClipMaskManager.cpp:686:
paint.setXPFactory(GrDisableColorXPFactory::Create());
leak

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/GrClipMaskManag...
src/gpu/GrClipMaskManager.cpp:727:
paint.setXPFactory(GrDisableColorXPFactory::Create());
leak

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/batches/GrDefau...
File src/gpu/batches/GrDefaultPathRenderer.cpp (right):

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/batches/GrDefau...
src/gpu/batches/GrDefaultPathRenderer.cpp:632:
paint.setXPFactory(GrDisableColorXPFactory::Create());
leak

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/batches/GrMSAAP...
File src/gpu/batches/GrMSAAPathRenderer.cpp (right):

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/batches/GrMSAAP...
src/gpu/batches/GrMSAAPathRenderer.cpp:754:
paint.setXPFactory(GrDisableColorXPFactory::Create());
leak

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/batches/GrStenc...
File src/gpu/batches/GrStencilAndCoverPathRenderer.cpp (right):

https://codereview.chromium.org/2035823002/diff/60001/src/gpu/batches/GrStenc...
src/gpu/batches/GrStencilAndCoverPathRenderer.cpp:74:
paint.setXPFactory(GrDisableColorXPFactory::Create());
leak

Powered by Google App Engine
This is Rietveld 408576698