Index: ui/gfx/skbitmap_operations.cc |
diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc |
index 3b3a7e823f94def6fde65fc469eb1ab65a488b00..2b491366de4c898c57e9bb69c058db234c29ffa7 100644 |
--- a/ui/gfx/skbitmap_operations.cc |
+++ b/ui/gfx/skbitmap_operations.cc |
@@ -10,11 +10,11 @@ |
#include <algorithm> |
#include "base/logging.h" |
-#include "skia/ext/refptr.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkColorFilter.h" |
#include "third_party/skia/include/core/SkColorPriv.h" |
+#include "third_party/skia/include/core/SkRefCnt.h" |
f(malita)
2016/05/04 15:49:58
Nit: I don't think we handle sk_sps explicitly in
tomhudson
2016/05/04 16:51:54
Done. (At one intermediate stage we had sk_sp<SkIm
|
#include "third_party/skia/include/core/SkUnPreMultiply.h" |
#include "third_party/skia/include/effects/SkBlurImageFilter.h" |
#include "ui/gfx/geometry/insets.h" |
@@ -740,9 +740,7 @@ SkBitmap SkBitmapOperations::CreateDropShadow( |
// The blur is halved to produce a shadow that correctly fits within the |
// |shadow_margin|. |
SkScalar sigma = SkDoubleToScalar(shadow.blur() / 2); |
- skia::RefPtr<SkImageFilter> filter = |
- skia::AdoptRef(SkBlurImageFilter::Create(sigma, sigma)); |
- paint.setImageFilter(filter.get()); |
+ paint.setImageFilter(SkBlurImageFilter::Make(sigma, sigma, nullptr)); |
canvas.saveLayer(0, &paint); |
canvas.drawBitmap(shadow_image, |