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

Unified Diff: ui/ozone/platform/drm/gpu/drm_surface.cc

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 7 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_surface.h ('k') | ui/ozone/platform/drm/gpu/drm_surface_unittest.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_surface.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_surface.cc b/ui/ozone/platform/drm/gpu/drm_surface.cc
index 074ac5eb13ef76b3d3594bf9ce32edb6f72b5de3..907747f099a9314b4564475c61e783320d0ebfeb 100644
--- a/ui/ozone/platform/drm/gpu/drm_surface.cc
+++ b/ui/ozone/platform/drm/gpu/drm_surface.cc
@@ -43,14 +43,14 @@ DrmSurface::DrmSurface(DrmWindow* window_delegate)
DrmSurface::~DrmSurface() {
}
-skia::RefPtr<SkSurface> DrmSurface::GetSurface() {
+sk_sp<SkSurface> DrmSurface::GetSurface() {
return surface_;
}
void DrmSurface::ResizeCanvas(const gfx::Size& viewport_size) {
SkImageInfo info = SkImageInfo::MakeN32(
viewport_size.width(), viewport_size.height(), kOpaque_SkAlphaType);
- surface_ = skia::AdoptRef(SkSurface::NewRaster(info));
+ surface_ = SkSurface::MakeRaster(info);
HardwareDisplayController* controller = window_delegate_->GetController();
if (!controller)
@@ -70,7 +70,7 @@ void DrmSurface::PresentCanvas(const gfx::Rect& damage) {
// Create a snapshot of the requested drawing. If we get here again before
// presenting, just add the additional damage.
pending_image_damage_.Union(damage);
- pending_image_ = skia::AdoptRef(surface_->newImageSnapshot());
+ pending_image_ = surface_->makeImageSnapshot();
if (!pending_pageflip_)
SchedulePageFlip();
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_surface.h ('k') | ui/ozone/platform/drm/gpu/drm_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698