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

Issue 1151283004: Split drawing functionality out of GrContext and into new GrDrawContext (Closed)

Created:
5 years, 7 months ago by robertphillips
Modified:
5 years, 7 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

Split drawing functionality out of GrContext and into new GrDrawContext This is mainly a mechanical CL. There were some fiddly bits in GrContext.cpp where it no longer had access to the GrDrawTarget (and had to use the new GrDrawContext). I've converted GrAARectRenderer & GrOvalRenderer into static classes so I could stop allocating them. Committed: https://skia.googlesource.com/skia/+/ea4615034498aca2f9ca1753fb9a1ef10508d8cc

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address code review comments #

Total comments: 2

Patch Set 3 : Address code review comments #

Patch Set 4 : update to ToT #

Patch Set 5 : Patch up GrDrawContext.h for its new home in include\gpu #

Patch Set 6 : Fix build on high-maintenance machines #

Patch Set 7 : Fix no-GPU builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1061 lines, -2774 lines) Patch
M gm/texdata.cpp View 4 chunks +5 lines, -3 lines 0 comments Download
M gyp/gpu.gypi View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 8 chunks +55 lines, -190 lines 0 comments Download
A include/gpu/GrDrawContext.h View 1 2 3 4 5 1 chunk +252 lines, -0 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -4 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 4 chunks +26 lines, -6 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 2 chunks +9 lines, -2 lines 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 13 chunks +27 lines, -21 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 5 chunks +21 lines, -13 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 8 chunks +20 lines, -14 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 2 chunks +9 lines, -1 line 0 comments Download
M src/gpu/GrAARectRenderer.h View 2 chunks +35 lines, -38 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 7 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/GrAtlas.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAtlasTextContext.h View 2 chunks +4 lines, -3 lines 0 comments Download
M src/gpu/GrAtlasTextContext.cpp View 1 2 11 chunks +29 lines, -15 lines 0 comments Download
M src/gpu/GrBatchFontCache.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 2 chunks +7 lines, -8 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 22 chunks +100 lines, -1322 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
A + src/gpu/GrDrawContext.cpp View 1 2 3 4 20 chunks +212 lines, -942 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 1 chunk +13 lines, -8 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M src/gpu/GrLayerCache.cpp View 2 chunks +6 lines, -1 line 0 comments Download
M src/gpu/GrOvalRenderer.h View 1 chunk +45 lines, -49 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 10 chunks +15 lines, -15 lines 0 comments Download
M src/gpu/GrRenderTarget.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M src/gpu/GrTextContext.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 4 chunks +3 lines, -6 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 26 chunks +67 lines, -58 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 3 chunks +14 lines, -3 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 3 chunks +24 lines, -18 lines 0 comments Download

Messages

Total messages: 38 (17 generated)
robertphillips
5 years, 7 months ago (2015-05-22 19:57:48 UTC) #2
bsalomon
Seems like a nice step forward. Can see how this will evolve to multiple drawcontexts. ...
5 years, 7 months ago (2015-05-22 20:33:58 UTC) #3
bsalomon
Oops.. I launched a trybot on the wrong CL. I guess we'll find out how ...
5 years, 7 months ago (2015-05-22 20:52:38 UTC) #4
robertphillips
https://codereview.chromium.org/1151283004/diff/1/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/1151283004/diff/1/src/effects/SkBlurMaskFilter.cpp#newcode1167 src/effects/SkBlurMaskFilter.cpp:1167: drawContext->drawNonAARectWithLocalMatrix(rt, clip, *grp, SkMatrix::I(), proxy_rect, inverse); On 2015/05/22 20:33:57, ...
5 years, 7 months ago (2015-05-26 16:12:59 UTC) #5
joshualitt
nit, lgtm https://codereview.chromium.org/1151283004/diff/20001/src/gpu/GrAtlasTextContext.cpp File src/gpu/GrAtlasTextContext.cpp (right): https://codereview.chromium.org/1151283004/diff/20001/src/gpu/GrAtlasTextContext.cpp#newcode430 src/gpu/GrAtlasTextContext.cpp:430: GrDrawContext* drawContext = fContext->drawContext(); Might want to ...
5 years, 7 months ago (2015-05-26 16:25:13 UTC) #6
robertphillips
https://codereview.chromium.org/1151283004/diff/20001/src/gpu/GrAtlasTextContext.cpp File src/gpu/GrAtlasTextContext.cpp (right): https://codereview.chromium.org/1151283004/diff/20001/src/gpu/GrAtlasTextContext.cpp#newcode430 src/gpu/GrAtlasTextContext.cpp:430: GrDrawContext* drawContext = fContext->drawContext(); On 2015/05/26 16:25:13, joshualitt wrote: ...
5 years, 7 months ago (2015-05-26 16:46:22 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151283004/40001
5 years, 7 months ago (2015-05-26 16:46:45 UTC) #10
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/1083) skia_presubmit-Trybot on ...
5 years, 7 months ago (2015-05-26 16:47:50 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151283004/60001
5 years, 7 months ago (2015-05-26 17:17:35 UTC) #15
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/1085)
5 years, 7 months ago (2015-05-26 17:18:43 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151283004/80001
5 years, 7 months ago (2015-05-26 17:41:17 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/1072) Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on ...
5 years, 7 months ago (2015-05-26 17:42:52 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/1151283004/100001
5 years, 7 months ago (2015-05-26 17:57:04 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/1074) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on ...
5 years, 7 months ago (2015-05-26 17:58:32 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151283004/120001
5 years, 7 months ago (2015-05-26 18:06:41 UTC) #30
robertphillips
Brian?
5 years, 7 months ago (2015-05-26 18:10:18 UTC) #31
bsalomon
On 2015/05/26 18:10:18, robertphillips wrote: > Brian? If you think we can put GrPipelineBuilder back ...
5 years, 7 months ago (2015-05-26 18:12:48 UTC) #32
bsalomon
On 2015/05/26 18:10:18, robertphillips wrote: > Brian? If you think we can put GrPipelineBuilder back ...
5 years, 7 months ago (2015-05-26 18:12:52 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-26 18:13:16 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151283004/120001
5 years, 7 months ago (2015-05-26 18:37:01 UTC) #37
commit-bot: I haz the power
5 years, 7 months ago (2015-05-26 18:38:09 UTC) #38
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/ea4615034498aca2f9ca1753fb9a1ef10508d8cc

Powered by Google App Engine
This is Rietveld 408576698