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

Unified Diff: ui/ozone/platform/headless/headless_surface_factory.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/platform/drm/gpu/mock_drm_device.cc ('k') | ui/ozone/public/surface_ozone_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/headless/headless_surface_factory.cc
diff --git a/ui/ozone/platform/headless/headless_surface_factory.cc b/ui/ozone/platform/headless/headless_surface_factory.cc
index c9bbe5284021e7ba6d57ee9d4d0827c1f084031d..a8b9952501322cf2157d5898e715695cf6ae93ee 100644
--- a/ui/ozone/platform/headless/headless_surface_factory.cc
+++ b/ui/ozone/platform/headless/headless_surface_factory.cc
@@ -39,10 +39,10 @@ class FileSurface : public SurfaceOzoneCanvas {
// SurfaceOzoneCanvas overrides:
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()));
}
- skia::RefPtr<SkSurface> GetSurface() override { return surface_; }
+ sk_sp<SkSurface> GetSurface() override { return surface_; }
void PresentCanvas(const gfx::Rect& damage) override {
if (location_.empty())
return;
@@ -62,7 +62,7 @@ class FileSurface : public SurfaceOzoneCanvas {
private:
base::FilePath location_;
- skia::RefPtr<SkSurface> surface_;
+ sk_sp<SkSurface> surface_;
};
class TestPixmap : public ui::NativePixmap {
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.cc ('k') | ui/ozone/public/surface_ozone_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698