X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Fsrc%2Fgpu%2FGrIndexBuffer.h;h=113b89d3070557540aa63a5a2173997a5e458f04;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=e23bc9b19acc5b2329636624fc1207a36a8eb292;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/src/gpu/GrIndexBuffer.h b/src/third_party/skia/src/gpu/GrIndexBuffer.h index e23bc9b..113b89d 100644 --- a/src/third_party/skia/src/gpu/GrIndexBuffer.h +++ b/src/third_party/skia/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(this->sizeInBytes() / (sizeof(uint16_t) * 6)); + return static_cast(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; };