Fix SampleAndroidShadows warnings
authorfmalita <fmalita@chromium.org>
Wed, 17 Aug 2016 18:33:29 +0000 (11:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Aug 2016 18:33:29 +0000 (11:33 -0700)
R=jvanverth@google.com,robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2255863002
NOTRY=true

Review-Url: https://codereview.chromium.org/2255863002

samplecode/SampleAndroidShadows.cpp

index 41af384..c7a2f63 100755 (executable)
@@ -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();