Index: src/gpu/GrIndexBuffer.h |
diff --git a/src/gpu/GrIndexBuffer.h b/src/gpu/GrIndexBuffer.h |
index e23bc9b19acc5b2329636624fc1207a36a8eb292..113b89d3070557540aa63a5a2173997a5e458f04 100644 |
--- a/src/gpu/GrIndexBuffer.h |
+++ b/src/gpu/GrIndexBuffer.h |
@@ -21,11 +21,11 @@ public: |
* @return the maximum number of quads using full size of index buffer. |
*/ |
int maxQuads() const { |
- return static_cast<int>(this->sizeInBytes() / (sizeof(uint16_t) * 6)); |
+ return static_cast<int>(this->gpuMemorySize() / (sizeof(uint16_t) * 6)); |
} |
protected: |
- GrIndexBuffer(GrGpu* gpu, bool isWrapped, size_t sizeInBytes, bool dynamic, bool cpuBacked) |
- : INHERITED(gpu, isWrapped, sizeInBytes, dynamic, cpuBacked) {} |
+ GrIndexBuffer(GrGpu* gpu, bool isWrapped, size_t gpuMemorySize, bool dynamic, bool cpuBacked) |
+ : INHERITED(gpu, isWrapped, gpuMemorySize, dynamic, cpuBacked) {} |
private: |
typedef GrGeometryBuffer INHERITED; |
}; |