From c7fe0f708ccbf12bf2ad1374ff307940d2c93880 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 11 May 2018 10:14:21 -0400 Subject: Make GrCaps and GrShaderCaps private. Moves getCaps() from GrContext to GrContextPriv and removes unused refCaps(). Change-Id: Ic6a8951b656c0d1b2773eae73bff8e88af819866 Reviewed-on: https://skia-review.googlesource.com/127389 Commit-Queue: Brian Salomon Reviewed-by: Greg Daniel --- gm/beziereffects.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gm/beziereffects.cpp') diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index 57caa46410..226ce315ec 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp @@ -136,7 +136,7 @@ protected: return; } - if (!context->caps()->shaderCaps()->floatIs32Bits()) { + if (!context->contextPriv().caps()->shaderCaps()->floatIs32Bits()) { SkPaint paint; sk_tool_utils::set_portable_typeface(&paint); paint.setAntiAlias(true); @@ -224,9 +224,9 @@ protected: bool flipKL = (c == loopIndex && cnt != 3); - sk_sp gp = GrCubicEffect::Make(color, SkMatrix::I(), klm, - flipKL, edgeType, - *context->caps()); + sk_sp gp = + GrCubicEffect::Make(color, SkMatrix::I(), klm, flipKL, edgeType, + *context->contextPriv().caps()); if (!gp) { break; } @@ -358,8 +358,8 @@ protected: for(int edgeType = 0; edgeType < kGrClipEdgeTypeCnt; ++edgeType) { sk_sp gp; GrClipEdgeType et = (GrClipEdgeType)edgeType; - gp = GrConicEffect::Make(color, SkMatrix::I(), et, - *context->caps(), SkMatrix::I(), false); + gp = GrConicEffect::Make(color, SkMatrix::I(), et, *context->contextPriv().caps(), + SkMatrix::I(), false); if (!gp) { continue; } @@ -566,8 +566,8 @@ protected: for(int edgeType = 0; edgeType < kGrClipEdgeTypeCnt; ++edgeType) { sk_sp gp; GrClipEdgeType et = (GrClipEdgeType)edgeType; - gp = GrQuadEffect::Make(color, SkMatrix::I(), et, - *context->caps(), SkMatrix::I(), false); + gp = GrQuadEffect::Make(color, SkMatrix::I(), et, *context->contextPriv().caps(), + SkMatrix::I(), false); if (!gp) { continue; } -- cgit v1.2.3