diff options
author | 2016-10-27 14:47:55 -0400 | |
---|---|---|
committer | 2016-10-27 19:14:09 +0000 | |
commit | 1105224f9701e57ec5ce0354d6a380b664f5c638 (patch) | |
tree | 2b6f3db0bfd99da5e22adabc0da37d9271c8b543 /gm/croppedrects.cpp | |
parent | 6e74412a9cf1ffa44271a55b42f18e8a0813a0a2 (diff) |
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 <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm/croppedrects.cpp')
-rw-r--r-- | gm/croppedrects.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gm/croppedrects.cpp b/gm/croppedrects.cpp index 5c36c54815..246251919f 100644 --- a/gm/croppedrects.cpp +++ b/gm/croppedrects.cpp @@ -16,8 +16,9 @@ namespace skiagm { constexpr SkRect kSrcImageClip{75, 75, 275, 275}; /* - * The purpose of this test is to exercise all three codepaths in GrDrawContext (drawFilledRect, - * fillRectToRect, fillRectWithLocalMatrix) that pre-crop filled rects based on the clip. + * The purpose of this test is to exercise all three codepaths in GrRenderTargetContext + * (drawFilledRect, fillRectToRect, fillRectWithLocalMatrix) that pre-crop filled rects based on the + * clip. * * The test creates an image of a green square surrounded by red background, then draws this image * in various ways with the red clipped out. The test is successful if there is no visible red @@ -54,7 +55,7 @@ private: canvas->clear(SK_ColorWHITE); { - // GrDrawContext::drawFilledRect. + // GrRenderTargetContext::drawFilledRect. SkAutoCanvasRestore acr(canvas, true); SkPaint paint; paint.setShader(fSrcImageShader); @@ -64,7 +65,7 @@ private: } { - // GrDrawContext::fillRectToRect. + // GrRenderTargetContext::fillRectToRect. SkAutoCanvasRestore acr(canvas, true); SkPaint paint; paint.setFilterQuality(kNone_SkFilterQuality); @@ -78,7 +79,7 @@ private: } { - // GrDrawContext::fillRectWithLocalMatrix. + // GrRenderTargetContext::fillRectWithLocalMatrix. SkAutoCanvasRestore acr(canvas, true); SkPath path; path.moveTo(kSrcImageClip.fLeft - kSrcImageClip.width(), kSrcImageClip.centerY()); |