| Index: src/gpu/GrDrawTarget.h
|
| diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
|
| index 627472f896b71210d99b1fc9237943c49d6a9f53..d43a930d1be36f953fdd375b5996f300928ad552 100644
|
| --- a/src/gpu/GrDrawTarget.h
|
| +++ b/src/gpu/GrDrawTarget.h
|
| @@ -117,9 +117,9 @@ public:
|
| const GrPath*, GrPathRendering::FillType);
|
|
|
| /**
|
| - * Clear the passed in render target. Ignores the GrPipelineBuilder and clip. Clears the whole
|
| + * Clear the passed in drawContext. Ignores the GrPipelineBuilder and clip. Clears the whole
|
| * thing if rect is nullptr, otherwise just the rect. If canIgnoreRect is set then the entire
|
| - * render target can be optionally cleared.
|
| + * drawContext can be optionally cleared.
|
| */
|
| void clear(const SkIRect* rect,
|
| GrColor color,
|
| @@ -144,26 +144,6 @@ public:
|
| const SkIRect& srcRect,
|
| const SkIPoint& dstPoint);
|
|
|
| - /** Provides access to internal functions to GrClipMaskManager without friending all of
|
| - GrDrawTarget to CMM. */
|
| - class CMMAccess {
|
| - public:
|
| - CMMAccess(GrDrawTarget* drawTarget) : fDrawTarget(drawTarget) {}
|
| - private:
|
| - void clearStencilClip(const SkIRect& rect, bool insideClip, GrRenderTarget* rt) const {
|
| - fDrawTarget->clearStencilClip(rect, insideClip, rt);
|
| - }
|
| -
|
| - GrContext* context() const { return fDrawTarget->fContext; }
|
| - GrResourceProvider* resourceProvider() const { return fDrawTarget->fResourceProvider; }
|
| - GrDrawTarget* fDrawTarget;
|
| - friend class GrClipMaskManager;
|
| - };
|
| -
|
| - const CMMAccess cmmAccess() { return CMMAccess(this); }
|
| -
|
| - GrAuditTrail* getAuditTrail() const { return fAuditTrail; }
|
| -
|
| private:
|
| friend class GrDrawingManager; // for resetFlag & TopoSortTraits
|
| friend class GrDrawContextPriv; // for clearStencilClip
|
| @@ -218,14 +198,15 @@ private:
|
| // but couldn't be made. Otherwise, returns true. This method needs to be protected because it
|
| // needs to be accessed by GLPrograms to setup a correct drawstate
|
| bool setupDstReadIfNecessary(const GrPipelineBuilder&,
|
| - const GrClip&,
|
| - const GrPipelineOptimizations& optimizations,
|
| - GrXferProcessor::DstTexture*,
|
| - const SkRect& batchBounds);
|
| + GrRenderTarget*,
|
| + const GrClip&,
|
| + const GrPipelineOptimizations& optimizations,
|
| + GrXferProcessor::DstTexture*,
|
| + const SkRect& batchBounds);
|
|
|
| void addDependency(GrDrawTarget* dependedOn);
|
|
|
| - // Used only by CMM.
|
| + // Used only by drawContextPriv.
|
| void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*);
|
|
|
| SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches;
|
|
|