Make GrPaints move their GrProcessor ownership into GrPipelineBuilder.
authorBrian Salomon <bsalomon@google.com>
Wed, 11 Jan 2017 18:42:54 +0000 (13:42 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 11 Jan 2017 19:56:48 +0000 (19:56 +0000)
commit82f44319159bb98dcacdbbec7ea643dde5ed024b
treedcd8c8a5caaac2675fcfdf48c5af67f946200c24
parentab273facbfe496a3d5dd798e6b4b57c41eed7f16
Make GrPaints move their GrProcessor ownership into GrPipelineBuilder.

This makes GrPaints usable only once. In some places we must make copies in order to issue draws with the same paint state.

Change-Id: Ie816e5185ce93a064111cad64c6880e1e21184c2
Reviewed-on: https://skia-review.googlesource.com/6844
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
74 files changed:
gm/beziereffects.cpp
gm/bigrrectaaeffect.cpp
gm/constcolorprocessor.cpp
gm/convexpolyeffect.cpp
gm/rrects.cpp
gm/texdata.cpp
gm/texturedomaineffect.cpp
gm/windowrectangles.cpp
gm/yuvtorgbeffect.cpp
include/core/SkMaskFilter.h
include/gpu/GrPaint.h
include/gpu/GrRenderTargetContext.h
src/core/SkGpuBlurUtils.cpp
src/core/SkImageFilter.cpp
src/core/SkMaskFilter.cpp
src/effects/SkAlphaThresholdFilter.cpp
src/effects/SkArithmeticImageFilter.cpp
src/effects/SkBlurMaskFilter.cpp
src/effects/SkDisplacementMapEffect.cpp
src/effects/SkLightingImageFilter.cpp
src/effects/SkMorphologyImageFilter.cpp
src/effects/SkShadowMaskFilter.cpp
src/effects/SkXfermodeImageFilter.cpp
src/gpu/GrBlurUtils.cpp
src/gpu/GrBlurUtils.h
src/gpu/GrContext.cpp
src/gpu/GrPaint.cpp
src/gpu/GrPathRenderer.h
src/gpu/GrPathRenderingRenderTargetContext.cpp
src/gpu/GrPathRenderingRenderTargetContext.h
src/gpu/GrPipelineBuilder.cpp
src/gpu/GrPipelineBuilder.h
src/gpu/GrReducedClip.cpp
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrRenderTargetContextPriv.h
src/gpu/GrSWMaskHelper.cpp
src/gpu/GrSWMaskHelper.h
src/gpu/GrSoftwarePathRenderer.cpp
src/gpu/GrSoftwarePathRenderer.h
src/gpu/GrTextureProducer.cpp
src/gpu/GrTextureToYUVPlanes.cpp
src/gpu/GrYUVProvider.cpp
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice_drawTexture.cpp
src/gpu/effects/GrConfigConversionEffect.cpp
src/gpu/ops/GrAAConvexPathRenderer.cpp
src/gpu/ops/GrAADistanceFieldPathRenderer.cpp
src/gpu/ops/GrAAHairLinePathRenderer.cpp
src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp
src/gpu/ops/GrDashLinePathRenderer.cpp
src/gpu/ops/GrDefaultPathRenderer.cpp
src/gpu/ops/GrDefaultPathRenderer.h
src/gpu/ops/GrMSAAPathRenderer.cpp
src/gpu/ops/GrMSAAPathRenderer.h
src/gpu/ops/GrPLSPathRenderer.cpp
src/gpu/ops/GrStencilAndCoverPathRenderer.cpp
src/gpu/ops/GrTessellatingPathRenderer.cpp
src/gpu/text/GrAtlasTextBlob.cpp
src/gpu/text/GrAtlasTextBlob.h
src/gpu/text/GrAtlasTextContext.cpp
src/gpu/text/GrAtlasTextContext.h
src/gpu/text/GrStencilAndCoverTextContext.cpp
src/gpu/text/GrStencilAndCoverTextContext.h
src/image/SkImage_Gpu.cpp
tests/DFPathRendererTest.cpp
tests/GLProgramsTest.cpp
tests/ImageStorageTest.cpp
tests/IntTextureTest.cpp
tests/PrimitiveProcessorTest.cpp
tests/ProcessorTest.cpp
tests/RectangleTextureTest.cpp
tests/SRGBMipMapTest.cpp
tests/TessellatingPathRendererTests.cpp
tools/gpu/GrTest.cpp