Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1988923002: Remove GrRenderTarget from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698