diff options
author | robertphillips <robertphillips@google.com> | 2016-03-02 08:43:13 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-02 08:43:13 -0800 |
commit | 86c60758e9e4f9e203d7462cb22b2a245a0f51bd (patch) | |
tree | 0cc77d90e91bf61a381878afbdce7022b89524ff /gm | |
parent | 46b301d2222b60dd5ab495b917dea163e8be94ef (diff) |
Begin weaning GrClipMaskManager off of GrDrawTarget (take 2)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1754563003
Review URL: https://codereview.chromium.org/1754563003
Diffstat (limited to 'gm')
-rw-r--r-- | gm/beziereffects.cpp | 8 | ||||
-rw-r--r-- | gm/bigrrectaaeffect.cpp | 4 | ||||
-rw-r--r-- | gm/constcolorprocessor.cpp | 4 | ||||
-rw-r--r-- | gm/convexpolyeffect.cpp | 6 | ||||
-rw-r--r-- | gm/rrects.cpp | 5 | ||||
-rw-r--r-- | gm/texturedomaineffect.cpp | 4 | ||||
-rw-r--r-- | gm/yuvtorgbeffect.cpp | 4 |
7 files changed, 18 insertions, 17 deletions
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index 2511dec6e0..5d26be8060 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp @@ -12,7 +12,7 @@ #if SK_SUPPORT_GPU -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "GrContext.h" #include "GrPathUtils.h" #include "GrTest.h" @@ -226,7 +226,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch( BezierCubicOrConicTestBatch::Create(gp, geometry, klmEqs, klmSigns[c])); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); } ++col; if (numCols == col) { @@ -367,7 +367,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch( BezierCubicOrConicTestBatch::Create(gp, geometry, klmEqs, 1.f)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); } ++col; if (numCols == col) { @@ -603,7 +603,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch(BezierQuadTestBatch::Create(gp, geometry, DevToUV)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); } ++col; if (numCols == col) { diff --git a/gm/bigrrectaaeffect.cpp b/gm/bigrrectaaeffect.cpp index fde636071b..3a7a155b25 100644 --- a/gm/bigrrectaaeffect.cpp +++ b/gm/bigrrectaaeffect.cpp @@ -8,7 +8,7 @@ #include "gm.h" #if SK_SUPPORT_GPU #include "GrContext.h" -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "GrPipelineBuilder.h" #include "SkDevice.h" #include "SkRRect.h" @@ -99,7 +99,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch( GrRectBatchFactory::CreateNonAAFill(0xff000000, SkMatrix::I(), bounds, nullptr, nullptr)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); } canvas->restore(); x = x + fTestOffsetX; diff --git a/gm/constcolorprocessor.cpp b/gm/constcolorprocessor.cpp index a9cd4b5dc5..177a8c9e4f 100644 --- a/gm/constcolorprocessor.cpp +++ b/gm/constcolorprocessor.cpp @@ -13,7 +13,7 @@ #if SK_SUPPORT_GPU #include "GrContext.h" -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "GrPipelineBuilder.h" #include "SkGrPriv.h" #include "SkGradientShader.h" @@ -118,7 +118,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch( GrRectBatchFactory::CreateNonAAFill(grPaint.getColor(), viewMatrix, renderRect, nullptr, nullptr)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); // Draw labels for the input to the processor and the processor to the right of // the test rect. The input label appears above the processor label. diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp index 4071159d48..57ee30731d 100644 --- a/gm/convexpolyeffect.cpp +++ b/gm/convexpolyeffect.cpp @@ -14,7 +14,7 @@ #include "GrContext.h" #include "GrDefaultGeoProcFactory.h" -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "GrPathUtils.h" #include "GrTest.h" #include "SkColorPriv.h" @@ -205,7 +205,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch(ConvexPolyTestBatch::Create(gp, geometry)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); x += SkScalarCeilToScalar(path->getBounds().width() + 10.f); } @@ -252,7 +252,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch(ConvexPolyTestBatch::Create(gp, geometry)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); x += SkScalarCeilToScalar(rect.width() + 10.f); } diff --git a/gm/rrects.cpp b/gm/rrects.cpp index 63d6c9e6db..e698e6bd34 100644 --- a/gm/rrects.cpp +++ b/gm/rrects.cpp @@ -8,7 +8,7 @@ #include "gm.h" #if SK_SUPPORT_GPU #include "GrContext.h" -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "batches/GrDrawBatch.h" #include "batches/GrRectBatchFactory.h" #include "effects/GrRRectEffect.h" @@ -137,7 +137,8 @@ protected: SkAutoTUnref<GrDrawBatch> batch( GrRectBatchFactory::CreateNonAAFill(0xff000000, SkMatrix::I(), bounds, nullptr, nullptr)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, + batch); } else { drew = false; } diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index 53316f7234..72e40feb49 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -12,7 +12,7 @@ #if SK_SUPPORT_GPU -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "GrContext.h" #include "SkBitmap.h" #include "SkGr.h" @@ -135,7 +135,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch( GrRectBatchFactory::CreateNonAAFill(GrColor_WHITE, viewMatrix, renderRect, nullptr, nullptr)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); x += renderRect.width() + kTestPad; } y += renderRect.height() + kTestPad; diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp index bf4094cf4f..4aafb7a0bc 100644 --- a/gm/yuvtorgbeffect.cpp +++ b/gm/yuvtorgbeffect.cpp @@ -13,7 +13,7 @@ #if SK_SUPPORT_GPU #include "GrContext.h" -#include "GrDrawContext.h" +#include "GrDrawContextPriv.h" #include "GrPipelineBuilder.h" #include "SkBitmap.h" #include "SkGr.h" @@ -132,7 +132,7 @@ protected: SkAutoTUnref<GrDrawBatch> batch( GrRectBatchFactory::CreateNonAAFill(GrColor_WHITE, viewMatrix, renderRect, nullptr, nullptr)); - drawContext->internal_drawBatch(pipelineBuilder, batch); + drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); } x += renderRect.width() + kTestPad; } |