Index: ui/ozone/platform/drm/gpu/drm_console_buffer.h |
diff --git a/ui/ozone/platform/drm/gpu/drm_console_buffer.h b/ui/ozone/platform/drm/gpu/drm_console_buffer.h |
index 27dc03855c218a28efe1cd9d874674f6de147ce3..ed46fffa9eef31e878af675bb68776a893b67c59 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_console_buffer.h |
+++ b/ui/ozone/platform/drm/gpu/drm_console_buffer.h |
@@ -7,7 +7,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
-#include "skia/ext/refptr.h" |
+#include "third_party/skia/include/core/SkRefCnt.h" |
#include "third_party/skia/include/core/SkSurface.h" |
class SkCanvas; |
@@ -26,9 +26,7 @@ class DrmConsoleBuffer { |
~DrmConsoleBuffer(); |
SkCanvas* canvas() { return surface_->getCanvas(); } |
- skia::RefPtr<SkImage> image() { |
- return skia::AdoptRef(surface_->newImageSnapshot()); |
- } |
+ sk_sp<SkImage> image() { return surface_->makeImageSnapshot(); } |
// Memory map the backing pixels and wrap them in |surface_|. |
bool Initialize(); |
@@ -37,7 +35,7 @@ class DrmConsoleBuffer { |
scoped_refptr<DrmDevice> drm_; |
// Wrapper around the native pixel memory. |
- skia::RefPtr<SkSurface> surface_; |
+ sk_sp<SkSurface> surface_; |
// Length of a row of pixels. |
uint32_t stride_ = 0; |