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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 737723003: drawinfo carries bufferinfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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 a41fc43ea4675d36f5a8e4b59a710b0cfccd62eb..4f043697479395e2de8687ecadc5cc6bbef41b35 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -15,6 +15,7 @@
#include "GrIndexBuffer.h"
#include "GrPathRendering.h"
#include "GrTraceMarker.h"
+#include "GrVertexBuffer.h"
#include "SkClipStack.h"
#include "SkMatrix.h"
@@ -29,7 +30,6 @@ class GrClipData;
class GrDrawTargetCaps;
class GrPath;
class GrPathRange;
-class GrVertexBuffer;
class GrDrawTarget : public SkRefCnt {
public:
@@ -559,6 +559,10 @@ public:
fDevBoundsStorage = bounds;
fDevBounds = &fDevBoundsStorage;
}
+ const GrVertexBuffer* vertexBuffer() const { return fVertexBuffer; }
+ const GrIndexBuffer* indexBuffer() const { return fIndexBuffer; }
+ void setVertexBuffer(const GrVertexBuffer* vb) { fVertexBuffer = vb; }
bsalomon 2014/11/18 18:41:24 This has to be ref'ed, right?
+ void setIndexBuffer(const GrIndexBuffer* ib) { fIndexBuffer = ib; }
const SkRect* getDevBounds() const { return fDevBounds; }
// NULL if no copy of the dst is needed for the draw.
@@ -589,6 +593,9 @@ public:
SkRect fDevBoundsStorage;
SkRect* fDevBounds;
+ const GrVertexBuffer* fVertexBuffer;
+ const GrIndexBuffer* fIndexBuffer;
+
GrDeviceCoordTexture fDstCopy;
};
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698