diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrFragmentProcessor.h | 4 | ||||
-rw-r--r-- | include/gpu/GrRenderTargetContext.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h index 2ed187d19e..202e7fa214 100644 --- a/include/gpu/GrFragmentProcessor.h +++ b/include/gpu/GrFragmentProcessor.h @@ -100,8 +100,8 @@ public: /** * True if the processor's output is a modulation of its input color or alpha with a computed - * color or alpha in the 0..1 range. If true and the blend mode allows it we may fold coverage - * into the first color fragment processor's input. + * premultiplied color or alpha in the 0..1 range. If true and the blend mode allows it we may + * fold coverage into the first color fragment processor's input. */ bool modulatesInput() const { return SkToBool(fFlags & kModulatesInput_OptimizationFlag); } diff --git a/include/gpu/GrRenderTargetContext.h b/include/gpu/GrRenderTargetContext.h index 11b1c531e0..466424e16c 100644 --- a/include/gpu/GrRenderTargetContext.h +++ b/include/gpu/GrRenderTargetContext.h @@ -432,6 +432,8 @@ private: friend class GrMSAAPathRenderer; // for access to addDrawOp friend class GrStencilAndCoverPathRenderer; // for access to addDrawOp friend class GrTessellatingPathRenderer; // for access to addDrawOp + // for a unit test + friend void test_draw_op(GrRenderTargetContext*, sk_sp<GrFragmentProcessor>, GrTexture*); void internalClear(const GrFixedClip&, const GrColor, bool canIgnoreClip); |