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

Unified Diff: android_webview/native/aw_picture.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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 | « android_webview/native/aw_picture.h ('k') | android_webview/native/aw_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_picture.cc
diff --git a/android_webview/native/aw_picture.cc b/android_webview/native/aw_picture.cc
index 6c98d3db582ff78ccb237a64af059405dd1ad050..bb6e0f5ac4187a5064e3bb0fc0a200db52e223cc 100644
--- a/android_webview/native/aw_picture.cc
+++ b/android_webview/native/aw_picture.cc
@@ -34,9 +34,10 @@ void AwPicture::Draw(JNIEnv* env,
const JavaParamRef<jobject>& obj,
const JavaParamRef<jobject>& canvas) {
const SkIRect bounds = picture_->cullRect().roundOut();
- scoped_ptr<SoftwareCanvasHolder> canvas_holder = SoftwareCanvasHolder::Create(
- canvas, gfx::Vector2d(), gfx::Size(bounds.width(), bounds.height()),
- false);
+ std::unique_ptr<SoftwareCanvasHolder> canvas_holder =
+ SoftwareCanvasHolder::Create(canvas, gfx::Vector2d(),
+ gfx::Size(bounds.width(), bounds.height()),
+ false);
if (!canvas_holder || !canvas_holder->GetCanvas()) {
LOG(ERROR) << "Couldn't draw picture";
return;
« no previous file with comments | « android_webview/native/aw_picture.h ('k') | android_webview/native/aw_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698