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

Unified Diff: ui/ozone/platform/drm/gpu/mock_drm_device.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.h ('k') | ui/ozone/platform/headless/headless_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/mock_drm_device.cc
diff --git a/ui/ozone/platform/drm/gpu/mock_drm_device.cc b/ui/ozone/platform/drm/gpu/mock_drm_device.cc
index c41f2219fb6f8c24e8a2535c29ec58ab1889bb33..9ab4e237ab27a6d848fa2fb9e983cf521986bc1a 100644
--- a/ui/ozone/platform/drm/gpu/mock_drm_device.cc
+++ b/ui/ozone/platform/drm/gpu/mock_drm_device.cc
@@ -185,8 +185,7 @@ bool MockDrmDevice::CreateDumbBuffer(const SkImageInfo& info,
*handle = allocate_buffer_count_++;
*stride = info.minRowBytes();
void* pixels = new char[info.getSafeSize(*stride)];
- buffers_.push_back(
- skia::AdoptRef(SkSurface::NewRasterDirect(info, pixels, *stride)));
+ buffers_.push_back(SkSurface::MakeRasterDirect(info, pixels, *stride));
buffers_[*handle]->getCanvas()->clear(SK_ColorBLACK);
return true;
@@ -196,7 +195,7 @@ bool MockDrmDevice::DestroyDumbBuffer(uint32_t handle) {
if (handle >= buffers_.size() || !buffers_[handle])
return false;
- buffers_[handle].clear();
+ buffers_[handle].reset();
return true;
}
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.h ('k') | ui/ozone/platform/headless/headless_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698