Index: src/gpu/gl/GrGLPath.cpp |
diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp |
index 46006558b9101939afd10ac715048b5fc423946a..de20c3c6cf7134ad4c8bfd96be631c1e536554d5 100644 |
--- a/src/gpu/gl/GrGLPath.cpp |
+++ b/src/gpu/gl/GrGLPath.cpp |
@@ -333,6 +333,12 @@ GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& origSkPath, const GrStrokeInfo& o |
this->registerWithCache(); |
} |
+bool GrGLPath::canCombineDrawPathBatchWith(const GrPath& o) const { |
+ const GrGLPath* other = static_cast<const GrGLPath*>(&o); |
+ return fShouldStroke == other->fShouldStroke && |
+ fShouldFill == other->fShouldFill; |
+} |
+ |
void GrGLPath::onRelease() { |
if (0 != fPathID && this->shouldFreeResources()) { |
static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fPathID, 1); |