diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkPath.cpp | 2 | ||||
-rw-r--r-- | src/effects/SkGpuBlurUtils.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 97e34386dc..1326362524 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -180,7 +180,7 @@ bool operator==(const SkPath& a, const SkPath& b) { void SkPath::swap(SkPath& that) { if (this != &that) { - fPathRef.swap(&that.fPathRef); + fPathRef.swap(that.fPathRef); SkTSwap<int>(fLastMoveToIndex, that.fLastMoveToIndex); SkTSwap<uint8_t>(fFillType, that.fFillType); SkTSwap<uint8_t>(fConvexity, that.fConvexity); diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp index fd27cc3600..5690c2893f 100644 --- a/src/effects/SkGpuBlurUtils.cpp +++ b/src/effects/SkGpuBlurUtils.cpp @@ -231,7 +231,7 @@ GrTexture* GaussianBlur(GrContext* context, dstDrawContext->drawNonAARectToRect(dstTexture->asRenderTarget(), clip, paint, SkMatrix::I(), dstRect, srcRect); - srcDrawContext.swap(&dstDrawContext); + srcDrawContext.swap(dstDrawContext); srcRect = dstRect; srcTexture = dstTexture; SkTSwap(dstTexture, tempTexture); @@ -254,7 +254,7 @@ GrTexture* GaussianBlur(GrContext* context, convolve_gaussian_2d(dstDrawContext, dstTexture->asRenderTarget(), clip, srcRect, dstRect, srcTexture, radiusX, radiusY, sigmaX, sigmaY, cropToRect, srcIRect); - srcDrawContext.swap(&dstDrawContext); + srcDrawContext.swap(dstDrawContext); srcRect = dstRect; srcTexture = dstTexture; SkTSwap(dstTexture, tempTexture); @@ -286,7 +286,7 @@ GrTexture* GaussianBlur(GrContext* context, srcTexture, Gr1DKernelEffect::kX_Direction, radiusX, sigmaX, cropToRect); - srcDrawContext.swap(&dstDrawContext); + srcDrawContext.swap(dstDrawContext); srcTexture = dstTexture; srcRect = dstRect; SkTSwap(dstTexture, tempTexture); @@ -319,7 +319,7 @@ GrTexture* GaussianBlur(GrContext* context, dstRect, srcTexture, Gr1DKernelEffect::kY_Direction, radiusY, sigmaY, cropToRect); - srcDrawContext.swap(&dstDrawContext); + srcDrawContext.swap(dstDrawContext); srcTexture = dstTexture; srcRect = dstRect; SkTSwap(dstTexture, tempTexture); @@ -355,7 +355,7 @@ GrTexture* GaussianBlur(GrContext* context, dstDrawContext->drawNonAARectToRect(dstTexture->asRenderTarget(), clip, paint, SkMatrix::I(), dstRect, srcRect); - srcDrawContext.swap(&dstDrawContext); + srcDrawContext.swap(dstDrawContext); srcRect = dstRect; srcTexture = dstTexture; SkTSwap(dstTexture, tempTexture); |