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

Unified Diff: include/gpu/GrDrawContext.h

Issue 1754563003: Begin weaning GrClipMaskManager off of GrDrawTarget (take 2) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix fAuditTrail uses Created 4 years, 10 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 | « include/gpu/GrClip.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrDrawContext.h
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index bde2f4a9d4b11cd23bb0abf13e02017e0ad1e039..1643cc9678156ad3f0ce1674b6847a5231c08efa 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -11,6 +11,7 @@
#include "GrColor.h"
#include "GrRenderTarget.h"
#include "SkRefCnt.h"
+#include "SkRegion.h"
#include "SkSurfaceProps.h"
#include "../private/GrSingleOwner.h"
@@ -19,6 +20,7 @@ class GrAuditTrail;
class GrClip;
class GrContext;
class GrDrawBatch;
+class GrDrawContextPriv;
class GrDrawPathBatchBase;
class GrDrawingManager;
class GrDrawTarget;
@@ -277,9 +279,9 @@ public:
GrRenderTarget* accessRenderTarget() { return fRenderTarget; }
- ///////////////////////////////////////////////////////////////////////////////////////////////
- // Functions intended for internal use only.
- void internal_drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch);
+ // Provides access to functions that aren't part of the public API.
+ GrDrawContextPriv drawContextPriv();
+ const GrDrawContextPriv drawContextPriv() const;
protected:
GrDrawContext(GrContext*, GrDrawingManager*, GrRenderTarget*,
@@ -295,6 +297,7 @@ protected:
private:
friend class GrAtlasTextBlob; // for access to drawBatch
friend class GrDrawingManager; // for ctor
+ friend class GrDrawContextPriv;
bool drawFilledDRRect(const GrClip& clip,
const GrPaint& paint,
@@ -302,6 +305,10 @@ private:
const SkRRect& origOuter,
const SkRRect& origInner);
+ GrDrawBatch* getFillRectBatch(const GrPaint& paint,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect);
+
void internalDrawPath(const GrClip& clip,
const GrPaint& paint,
const SkMatrix& viewMatrix,
« no previous file with comments | « include/gpu/GrClip.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698