Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: src/gpu/GrInOrderDrawBuffer.h

Issue 400713003: Add a GrPathRange class (Closed) Base URL: https://skia.googlesource.com/skia.git@clupload-ispath
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrInOrderDrawBuffer.h
diff --git a/src/gpu/GrInOrderDrawBuffer.h b/src/gpu/GrInOrderDrawBuffer.h
index 3025c067f7a244119d7a0a785bf6034c71cb4484..c996d8c2f53b7af273e29fa3c9828670b14ad77f 100644
--- a/src/gpu/GrInOrderDrawBuffer.h
+++ b/src/gpu/GrInOrderDrawBuffer.h
@@ -19,6 +19,7 @@
class GrGpu;
class GrIndexBufferAllocPool;
+class GrPathRange;
class GrVertexBufferAllocPool;
/**
@@ -119,11 +120,12 @@ private:
DrawPaths();
~DrawPaths();
- int fPathCount;
- const GrPath** fPaths;
- SkMatrix* fTransforms;
+ SkRefPtr<const GrPathRange> fPathRange;
+ uint32_t* fIndices;
+ size_t fCount;
+ float* fTransforms;
+ GrTransformFormat fTransformsFormat;
SkPath::FillType fFill;
- SkStrokeRec::Style fStroke;
GrDeviceCoordTexture fDstCopy;
};
@@ -160,9 +162,10 @@ private:
virtual void onStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
virtual void onDrawPath(const GrPath*, SkPath::FillType,
const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE;
- virtual void onDrawPaths(int, const GrPath**, const SkMatrix*,
- SkPath::FillType, SkStrokeRec::Style,
- const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE;
+ virtual void onDrawPaths(const GrPathRange*,
+ const uint32_t indices[], int count,
+ const float transforms[], GrTransformFormat,
+ SkPath::FillType, const GrDeviceCoordTexture*) SK_OVERRIDE;
virtual bool onReserveVertexSpace(size_t vertexSize,
int vertexCount,

Powered by Google App Engine
This is Rietveld 408576698