From d1aa8ff8700cbc083c8c27b7368a8482e65cdb08 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Tue, 4 Nov 2014 07:47:55 -0800 Subject: removing setVertexArraySource from drawtarget BUG=skia: Review URL: https://codereview.chromium.org/699733002 --- src/gpu/GrDrawTarget.h | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/gpu/GrDrawTarget.h') diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 4e922d723d..b1f758a731 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -200,25 +200,6 @@ public: virtual bool geometryHints(int* vertexCount, int* indexCount) const; - /** - * Sets source of vertex data for the next draw. Array must contain - * the vertex data when this is called. - * - * @param vertexArray cpu array containing vertex data. - * @param vertexCount the number of vertices in the array. Vertex size is - * queried from the current GrDrawState. - */ - void setVertexSourceToArray(const void* vertexArray, int vertexCount); - - /** - * Sets source of index data for the next indexed draw. Array must contain - * the indices when this is called. - * - * @param indexArray cpu array containing index data. - * @param indexCount the number of indices in the array. - */ - void setIndexSourceToArray(const void* indexArray, int indexCount); - /** * Sets source of vertex data for the next draw. Data does not have to be * in the buffer until drawIndexed, drawNonIndexed, or drawIndexedInstances. @@ -700,7 +681,6 @@ protected: enum GeometrySrcType { kNone_GeometrySrcType, //(src.fIndexBuffer->gpuMemorySize() / sizeof(uint16_t)); @@ -853,12 +832,6 @@ private: // implemented by subclass to handle release of reserved geom space virtual void releaseReservedVertexSpace() = 0; virtual void releaseReservedIndexSpace() = 0; - // subclass must consume array contents when set - virtual void onSetVertexSourceToArray(const void* vertexArray, int vertexCount) = 0; - virtual void onSetIndexSourceToArray(const void* indexArray, int indexCount) = 0; - // subclass is notified that geom source will be set away from an array - virtual void releaseVertexArray() = 0; - virtual void releaseIndexArray() = 0; // subclass overrides to be notified just before geo src state is pushed/popped. virtual void geometrySourceWillPush() = 0; virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) = 0; -- cgit v1.2.3