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

Unified Diff: ui/gfx/skbitmap_operations.cc

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase Created 4 years, 7 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 | « ui/gfx/scoped_sk_region.h ('k') | ui/gfx/skia_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/skbitmap_operations.cc
diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc
index 3b3a7e823f94def6fde65fc469eb1ab65a488b00..1535b7032d390f20ac831ab83fa41938e4cca787 100644
--- a/ui/gfx/skbitmap_operations.cc
+++ b/ui/gfx/skbitmap_operations.cc
@@ -10,7 +10,6 @@
#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"
@@ -740,9 +739,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,
« no previous file with comments | « ui/gfx/scoped_sk_region.h ('k') | ui/gfx/skia_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698