From 1105224f9701e57ec5ce0354d6a380b664f5c638 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 27 Oct 2016 14:47:55 -0400 Subject: Rename GrDrawContext to GrRenderTargetContext This is in preparation for GrTextureContext and GrSurfaceContext BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4030 Change-Id: Ie58c93052e68f3f1f5fe8d15d63760de274a6fbd Reviewed-on: https://skia-review.googlesource.com/4030 Commit-Queue: Brian Osman Reviewed-by: Brian Salomon Reviewed-by: Robert Phillips --- gm/bigrrectaaeffect.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gm/bigrrectaaeffect.cpp') diff --git a/gm/bigrrectaaeffect.cpp b/gm/bigrrectaaeffect.cpp index 8387d5ed16..aa0d02d6d7 100644 --- a/gm/bigrrectaaeffect.cpp +++ b/gm/bigrrectaaeffect.cpp @@ -8,7 +8,7 @@ #include "gm.h" #if SK_SUPPORT_GPU #include "GrContext.h" -#include "GrDrawContextPriv.h" +#include "GrRenderTargetContextPriv.h" #include "SkRRect.h" #include "batches/GrDrawBatch.h" #include "batches/GrRectBatchFactory.h" @@ -48,8 +48,9 @@ protected: SkISize onISize() override { return SkISize::Make(fWidth, fHeight); } void onDraw(SkCanvas* canvas) override { - GrDrawContext* drawContext = canvas->internal_private_accessTopLayerDrawContext(); - if (!drawContext) { + GrRenderTargetContext* renderTargetContext = + canvas->internal_private_accessTopLayerRenderTargetContext(); + if (!renderTargetContext) { skiagm::GM::DrawGpuOnlyMessage(canvas); return; } @@ -89,7 +90,8 @@ protected: SkAutoTUnref batch( GrRectBatchFactory::CreateNonAAFill(0xff000000, SkMatrix::I(), bounds, nullptr, nullptr)); - drawContext->drawContextPriv().testingOnly_drawBatch(grPaint, batch); + renderTargetContext->renderTargetContextPriv().testingOnly_drawBatch(grPaint, + batch); } canvas->restore(); x = x + fTestOffsetX; -- cgit v1.2.3