Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index f9f25f15fa3d6607f2fc8c03396ca6bb3aabf42f..e52ee6648f1c7cd433d5142148ffc63f4a2d7ff4 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -711,6 +711,12 @@ protected: |
void setupPipeline(const PipelineInfo& pipelineInfo, GrPipeline* pipeline); |
+ // A subclass can optionally overload this function to be notified before |
+ // vertex and index space is reserved. |
+ virtual void willReserveVertexAndIndexSpace(int vertexCount, |
+ size_t vertexStride, |
+ int indexCount) {} |
+ |
private: |
/** |
* This will be called before allocating a texture as a dst for copySurface. This function |
@@ -731,12 +737,6 @@ private: |
const SkIRect& clippedSrcRect, |
const SkIPoint& clippedDstRect); |
- // A subclass can optionally overload this function to be notified before |
- // vertex and index space is reserved. |
- virtual void willReserveVertexAndIndexSpace(int vertexCount, |
- size_t vertexStride, |
- int indexCount) {} |
- |
// implemented by subclass to allocate space for reserved geom |
virtual bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertices) = 0; |
virtual bool onReserveIndexSpace(int indexCount, void** indices) = 0; |