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

Unified Diff: src/gpu/GrGpu.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
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 5c25927418ac1d12d39c9f7de2d3f0012e92c0d5..d20a817e7fa840b1155c5c2b02bcdfdbc12a8ef1 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -444,23 +444,6 @@ protected:
unsigned int* ref,
unsigned int* mask);
- struct GeometrySrcState {
- GeometrySrcState() : fVertexBuffer(NULL), fIndexBuffer(NULL), fVertexSize(0) {}
- const GrVertexBuffer* fVertexBuffer;
- const GrIndexBuffer* fIndexBuffer;
- size_t fVertexSize;
- };
-
- // accessors for derived classes
- const GeometrySrcState& getGeomSrc() const { return fGeoSrcState; }
-
- // it is preferable to call this rather than getGeomSrc()->fVertexSize because of the assert.
- size_t getVertexSize() const {
- // the vertex layout is only valid if a vertex source has been specified.
- SkASSERT(this->getGeomSrc().fVertexBuffer);
- return this->getGeomSrc().fVertexSize;
- }
-
const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers; }
GrContext::GPUStats fGPUStats;
@@ -554,7 +537,6 @@ private:
}
}
- GeometrySrcState fGeoSrcState;
ResetTimestamp fResetTimestamp;
uint32_t fResetBits;
// these are mutable so they can be created on-demand
« src/gpu/GrDrawTarget.h ('K') | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698