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

Unified Diff: samplecode/SampleAndroidShadows.cpp

Issue 2255863002: Fix SampleAndroidShadows warnings (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleAndroidShadows.cpp
diff --git a/samplecode/SampleAndroidShadows.cpp b/samplecode/SampleAndroidShadows.cpp
index 41af384e2e0e37e1b066b147202d91c1035cdd69..c7a2f63db17ab9982ec7384607be5d453038e2f4 100755
--- a/samplecode/SampleAndroidShadows.cpp
+++ b/samplecode/SampleAndroidShadows.cpp
@@ -182,7 +182,7 @@ protected:
SkScalar fracPart = radius - intPart;
paint.setColor(SkColorSetARGB(1, gray, intPart, (unsigned char)(fracPart*256.f)));
- sk_sp<SkShader> gaussShader = std::move(SkGaussianEdgeShader::Make());
+ sk_sp<SkShader> gaussShader = SkGaussianEdgeShader::Make();
paint.setShader(gaussShader);
canvas->drawRRect(pathRRect, paint);
}
@@ -302,7 +302,7 @@ protected:
SkPaint paint;
paint.setAntiAlias(true);
- sk_sp<SkShader> gaussShader = std::move(SkGaussianEdgeShader::Make());
+ sk_sp<SkShader> gaussShader = SkGaussianEdgeShader::Make();
paint.setShader(gaussShader);
// handle scale of radius due to CTM
SkScalar maxScale = canvas->getTotalMatrix().getMaxScale();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698