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

Unified Diff: include/gpu/GrContext.h

Issue 1407883004: Remove GrPipelineBuilder from getPathRenderer call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Hide GrContext::drawingManager entry point Created 5 years, 2 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 | « gyp/gpu.gypi ('k') | include/gpu/GrPathRendererChain.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 1e160c6d4053cfb60ec3c9e522fa6fcc5e0fe1a4..e051c7c76f830c71401eef91252826c9a1f79a0c 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -11,7 +11,6 @@
#include "GrClip.h"
#include "GrColor.h"
#include "GrPaint.h"
-#include "GrPathRendererChain.h"
#include "GrRenderTarget.h"
#include "GrTextureProvider.h"
#include "SkMatrix.h"
@@ -32,7 +31,6 @@ class GrIndexBuffer;
class GrLayerCache;
class GrOvalRenderer;
class GrPath;
-class GrPathRenderer;
class GrPipelineBuilder;
class GrResourceEntry;
class GrResourceCache;
@@ -43,7 +41,6 @@ class GrTextContext;
class GrTextureParams;
class GrVertexBuffer;
class GrStrokeInfo;
-class GrSoftwarePathRenderer;
class SkTraceMemoryDump;
class SK_API GrContext : public SkRefCnt {
@@ -333,15 +330,6 @@ public:
// Called by tests that draw directly to the context via GrDrawTarget
void getTestTarget(GrTestTarget*);
- GrPathRenderer* getPathRenderer(
- const GrPipelineBuilder&,
- const SkMatrix& viewMatrix,
- const SkPath& path,
- const GrStrokeInfo& stroke,
- bool allowSW,
- GrPathRendererChain::DrawType drawType = GrPathRendererChain::kColor_DrawType,
- GrPathRendererChain::StencilSupport* stencilSupport = NULL);
-
/** Prints cache stats to the string if GR_CACHE_STATS == 1. */
void dumpCacheStats(SkString*) const;
void printCacheStats() const;
@@ -376,9 +364,6 @@ private:
SkAutoTDelete<GrLayerCache> fLayerCache;
SkAutoTDelete<GrTextBlobCache> fTextBlobCache;
- GrPathRendererChain* fPathRendererChain;
- GrSoftwarePathRenderer* fSoftwarePathRenderer;
-
// Set by OverbudgetCB() to request that GrContext flush before exiting a draw.
bool fFlushToReduceCacheSize;
bool fDidTestPMConversions;
@@ -408,6 +393,10 @@ private:
SkAutoTDelete<GrDrawingManager> fDrawingManager;
+ // TODO: have the CMM use drawContexts and rm this friending
+ friend class GrClipMaskManager; // the CMM is friended just so it can call 'drawingManager'
+ GrDrawingManager* drawingManager() { return fDrawingManager; }
+
GrContext(); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext, const GrContextOptions& options);
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrPathRendererChain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698