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

Unified Diff: content/renderer/pepper/pepper_graphics_2d_host.h

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/renderer/pepper/pepper_graphics_2d_host.h
diff --git a/content/renderer/pepper/pepper_graphics_2d_host.h b/content/renderer/pepper/pepper_graphics_2d_host.h
index 29e55e9417093b5a8320b45d0f5ffe7e8ce83e21..03b97e7eb8f4c9676043c57cbc70f32319a3db13 100644
--- a/content/renderer/pepper/pepper_graphics_2d_host.h
+++ b/content/renderer/pepper/pepper_graphics_2d_host.h
@@ -77,7 +77,7 @@ class CONTENT_EXPORT PepperGraphics2DHost
bool PrepareTextureMailbox(
cc::TextureMailbox* mailbox,
- scoped_ptr<cc::SingleReleaseCallback>* release_callback);
+ std::unique_ptr<cc::SingleReleaseCallback>* release_callback);
void AttachedToNewLayer();
// Notifications about the view's progress painting. See PluginInstance.
@@ -163,7 +163,7 @@ class CONTENT_EXPORT PepperGraphics2DHost
gfx::Rect* op_rect,
gfx::Point* delta);
- void ReleaseCallback(scoped_ptr<cc::SharedBitmap> bitmap,
+ void ReleaseCallback(std::unique_ptr<cc::SharedBitmap> bitmap,
const gfx::Size& bitmap_size,
const gpu::SyncToken& sync_token,
bool lost_resource);
@@ -206,7 +206,7 @@ class CONTENT_EXPORT PepperGraphics2DHost
// This is a bitmap that was recently released by the compositor and may be
// used to transfer bytes to the compositor again.
- scoped_ptr<cc::SharedBitmap> cached_bitmap_;
+ std::unique_ptr<cc::SharedBitmap> cached_bitmap_;
gfx::Size cached_bitmap_size_;
friend class PepperGraphics2DHostTest;
« no previous file with comments | « content/renderer/pepper/pepper_file_chooser_host.cc ('k') | content/renderer/pepper/pepper_graphics_2d_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698