aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrDrawVerticesOp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ops/GrDrawVerticesOp.h')
-rw-r--r--src/gpu/ops/GrDrawVerticesOp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/ops/GrDrawVerticesOp.h b/src/gpu/ops/GrDrawVerticesOp.h
index 1d788ab15c..4ff19cc4c2 100644
--- a/src/gpu/ops/GrDrawVerticesOp.h
+++ b/src/gpu/ops/GrDrawVerticesOp.h
@@ -45,8 +45,8 @@ public:
SkString dumpInfo() const override {
SkString string;
- string.appendf("PrimType: %d, MeshCount %d, VCount: %d, ICount: %d\n", fPrimitiveType,
- fMeshes.count(), fVertexCount, fIndexCount);
+ string.appendf("PrimType: %d, MeshCount %d, VCount: %d, ICount: %d\n",
+ (int) fPrimitiveType, fMeshes.count(), fVertexCount, fIndexCount);
string.append(DumpPipelineInfo(*this->pipeline()));
string.append(INHERITED::dumpInfo());
return string;
@@ -70,9 +70,9 @@ private:
GrPrimitiveType primitiveType() const { return fPrimitiveType; }
bool combinablePrimitive() const {
- return kTriangles_GrPrimitiveType == fPrimitiveType ||
- kLines_GrPrimitiveType == fPrimitiveType ||
- kPoints_GrPrimitiveType == fPrimitiveType;
+ return GrPrimitiveType::kTriangles == fPrimitiveType ||
+ GrPrimitiveType::kLines == fPrimitiveType ||
+ GrPrimitiveType::kPoints == fPrimitiveType;
}
bool onCombineIfPossible(GrOp* t, const GrCaps&) override;