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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1131553002: Isolate GrBufferAllocPools inside GrBatchTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 5 years, 7 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/GrDefaultPathRenderer.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 cadf3e34230dec6fbb0f6e7722b0ae899db84976..1b88153c28dd09b2f240f52827180de115690f3a 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -30,11 +30,9 @@
class GrClip;
class GrDrawTargetCaps;
-class GrIndexBufferAllocPool;
class GrPath;
class GrPathRange;
class GrPipeline;
-class GrVertexBufferAllocPool;
class GrDrawTarget : public SkRefCnt {
public:
@@ -47,14 +45,14 @@ public:
// The context may not be fully constructed and should not be used during GrDrawTarget
// construction.
- GrDrawTarget(GrContext* context, GrVertexBufferAllocPool*, GrIndexBufferAllocPool*);
+ GrDrawTarget(GrContext* context);
virtual ~GrDrawTarget() {}
/**
* Empties the draw buffer of any queued up draws.
*/
- void reset();
+ void reset() { this->onReset(); }
/**
* This plays any queued up draws to its GrGpu target. It also resets this object (i.e. flushing
@@ -240,9 +238,6 @@ protected:
return fContext->getGpu();
}
- GrVertexBufferAllocPool* getVertexAllocPool() { return fVertexPool; }
- GrIndexBufferAllocPool* getIndexAllocPool() { return fIndexPool; }
-
const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers; }
// Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required
@@ -334,8 +329,6 @@ private:
int fGpuTraceMarkerCount;
GrTraceMarkerSet fActiveTraceMarkers;
GrTraceMarkerSet fStoredTraceMarkers;
- GrVertexBufferAllocPool* fVertexPool;
- GrIndexBufferAllocPool* fIndexPool;
bool fFlushing;
typedef SkRefCnt INHERITED;
@@ -346,10 +339,8 @@ private:
*/
class GrClipTarget : public GrDrawTarget {
public:
- GrClipTarget(GrContext* context,
- GrVertexBufferAllocPool* vpool,
- GrIndexBufferAllocPool* ipool)
- : INHERITED(context, vpool, ipool) {
+ GrClipTarget(GrContext* context)
+ : INHERITED(context) {
fClipMaskManager.setClipTarget(this);
}
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698