fIndexPool = NULL;
}
-void GrGpu::insertObject(GrGpuObject* object) {
+void GrGpu::insertObject(GrGpuResource* object) {
SkASSERT(NULL != object);
SkASSERT(this == object->getGpu());
fObjectList.addToHead(object);
}
-void GrGpu::removeObject(GrGpuObject* object) {
+void GrGpu::removeObject(GrGpuResource* object) {
SkASSERT(NULL != object);
SkASSERT(this == object->getGpu());
return this->onCreatePath(path, stroke);
}
+GrPathRange* GrGpu::createPathRange(size_t size, const SkStrokeRec& stroke) {
+ SkASSERT(this->caps()->pathRenderingSupport());
+ this->handleDirtyContext();
+ return this->onCreatePathRange(size, stroke);
+}
+
void GrGpu::clear(const SkIRect* rect,
GrColor color,
bool canIgnoreRect,
this->onGpuDrawPath(path, fill);
}
-void GrGpu::onDrawPaths(int pathCount, const GrPath** paths,
- const SkMatrix* transforms, SkPath::FillType fill,
- SkStrokeRec::Style style,
- const GrDeviceCoordTexture* dstCopy) {
+void GrGpu::onDrawPaths(const GrPathRange* pathRange,
+ const uint32_t indices[], int count,
+ const float transforms[], PathTransformType transformsType,
+ SkPath::FillType fill, const GrDeviceCoordTexture* dstCopy) {
this->handleDirtyContext();
drawState()->setDefaultVertexAttribs();
return;
}
- this->onGpuDrawPaths(pathCount, paths, transforms, fill, style);
+ this->onGpuDrawPaths(pathRange, indices, count, transforms, transformsType, fill);
}
void GrGpu::finalizeReservedVertices() {