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 250ca3b54e52f650cb110ff11f08641ad59412dd..2c432930e27b4ce175c6cbf15eb7b51a58824285 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_console_buffer.h |
+++ b/ui/ozone/platform/drm/gpu/drm_console_buffer.h |
@@ -10,7 +10,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
-#include "skia/ext/refptr.h" |
+#include "third_party/skia/include/core/SkImage.h" |
#include "third_party/skia/include/core/SkSurface.h" |
class SkCanvas; |
@@ -29,9 +29,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(); |