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

Unified Diff: ui/ozone/platform/cast/surface_factory_cast.cc

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: software_output_device was indirectly including skia::refptr, switch to sk_sp<> 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/demo/software_renderer.cc ('k') | ui/ozone/platform/drm/gpu/drm_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/surface_factory_cast.cc
diff --git a/ui/ozone/platform/cast/surface_factory_cast.cc b/ui/ozone/platform/cast/surface_factory_cast.cc
index d4db9d716aa0045c24cd28db7b6b5fb6db7a2ac8..72fa4e67901b0709cb81c2d3009b4e81d2ad6606 100644
--- a/ui/ozone/platform/cast/surface_factory_cast.cc
+++ b/ui/ozone/platform/cast/surface_factory_cast.cc
@@ -48,11 +48,11 @@ class DummySurface : public SurfaceOzoneCanvas {
~DummySurface() override {}
// SurfaceOzoneCanvas implementation:
- skia::RefPtr<SkSurface> GetSurface() override { return surface_; }
+ sk_sp<SkSurface> GetSurface() override { return surface_; }
void ResizeCanvas(const gfx::Size& viewport_size) override {
- surface_ = skia::AdoptRef(SkSurface::NewRaster(SkImageInfo::MakeN32Premul(
- viewport_size.width(), viewport_size.height())));
+ surface_ = SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(
+ viewport_size.width(), viewport_size.height()));
}
void PresentCanvas(const gfx::Rect& damage) override {}
@@ -62,7 +62,7 @@ class DummySurface : public SurfaceOzoneCanvas {
}
private:
- skia::RefPtr<SkSurface> surface_;
+ sk_sp<SkSurface> surface_;
DISALLOW_COPY_AND_ASSIGN(DummySurface);
};
« no previous file with comments | « ui/ozone/demo/software_renderer.cc ('k') | ui/ozone/platform/drm/gpu/drm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698