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

Unified Diff: content/browser/compositor/software_output_device_win.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
Index: content/browser/compositor/software_output_device_win.cc
diff --git a/content/browser/compositor/software_output_device_win.cc b/content/browser/compositor/software_output_device_win.cc
index adbbd690c46585666bf86822947fffc49464dbea..3ab7677a5432616240490ccee4ae120ab88f4250 100644
--- a/content/browser/compositor/software_output_device_win.cc
+++ b/content/browser/compositor/software_output_device_win.cc
@@ -122,7 +122,7 @@ void SoftwareOutputDeviceWin::Resize(const gfx::Size& viewport_pixel_size,
viewport_pixel_size_ = viewport_pixel_size;
if (backing_)
backing_->Resized();
- contents_.clear();
+ contents_.reset();
}
SkCanvas* SoftwareOutputDeviceWin::BeginPaint(const gfx::Rect& damage_rect) {
@@ -141,7 +141,7 @@ SkCanvas* SoftwareOutputDeviceWin::BeginPaint(const gfx::Rect& damage_rect) {
}
}
if (can_create_contents) {
- contents_ = skia::AdoptRef(skia::CreatePlatformCanvas(
+ contents_ = sk_sp<SkCanvas>(skia::CreatePlatformCanvas(
viewport_pixel_size_.width(), viewport_pixel_size_.height(), true,
shared_section, skia::CRASH_ON_FAILURE));
}
@@ -196,7 +196,7 @@ void SoftwareOutputDeviceWin::EndPaint() {
void SoftwareOutputDeviceWin::ReleaseContents() {
DCHECK(!contents_ || contents_->unique());
DCHECK(!in_paint_);
- contents_.clear();
+ contents_.reset();
}
} // namespace content
« no previous file with comments | « content/browser/compositor/software_output_device_win.h ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698