Index: ui/native_theme/native_theme_win.cc |
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc |
index f10db7ec40e0aad838692a004cae4bbe04d5d4b4..eb7b82f30d33390534331b82697136375146ed37 100644 |
--- a/ui/native_theme/native_theme_win.cc |
+++ b/ui/native_theme/native_theme_win.cc |
@@ -22,6 +22,7 @@ |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "third_party/skia/include/core/SkColorPriv.h" |
+#include "third_party/skia/include/core/SkRefCnt.h" |
#include "third_party/skia/include/core/SkShader.h" |
#include "ui/base/material_design/material_design_controller.h" |
#include "ui/display/win/dpi.h" |
@@ -675,7 +676,7 @@ void NativeThemeWin::PaintIndirect(SkCanvas* canvas, |
// keeping a cache of the resulting bitmaps. |
// Create an offscreen canvas that is backed by an HDC. |
- skia::RefPtr<skia::BitmapPlatformDevice> device = skia::AdoptRef( |
+ sk_sp<skia::BitmapPlatformDevice> device( |
skia::BitmapPlatformDevice::Create( |
rect.width(), rect.height(), false, NULL)); |
DCHECK(device); |