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

Unified Diff: ui/ozone/platform/drm/gpu/drm_console_buffer.h

Issue 1942973002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trybots missed one missing include? Created 4 years, 8 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/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/drm_console_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/drm_console_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698