Chromium Code Reviews| Index: src/gpu/SkGpuDevice.cpp |
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
| index 83cdef701a077f71614feb6f202a327d75fdb810..321c96e0b18a81e96916ee471e440431cc1a1eca 100644 |
| --- a/src/gpu/SkGpuDevice.cpp |
| +++ b/src/gpu/SkGpuDevice.cpp |
| @@ -706,6 +706,7 @@ void SkGpuDevice::drawPath(const SkDraw& draw, const SkPath& origSrcPath, |
| if (!pathIsMutable) { |
| result = tmpPath.init(); |
| + result->setIsVolatile(true); |
| pathIsMutable = true; |
| } |
| // should I push prePathMatrix on our MV stack temporarily, instead |
| @@ -740,6 +741,9 @@ void SkGpuDevice::drawPath(const SkDraw& draw, const SkPath& origSrcPath, |
| // avoid possibly allocating a new path in transform if we can |
| SkPath* devPathPtr = pathIsMutable ? pathPtr : tmpPath.init(); |
| + if (pathIsMutable) { |
|
bsalomon
2014/10/23 17:54:09
Maybe we should avoid this early transformation to
jvanverth1
2014/10/23 20:06:18
Filed as Issue 3056
|
| + devPathPtr->setIsVolatile(true); |
| + } |
| // transform the path into device space |
| pathPtr->transform(fContext->getMatrix(), devPathPtr); |