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

Unified Diff: ppapi/proxy/video_encoder_resource.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr 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 | « ppapi/proxy/video_decoder_resource.cc ('k') | ppapi/proxy/video_encoder_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_encoder_resource.h
diff --git a/ppapi/proxy/video_encoder_resource.h b/ppapi/proxy/video_encoder_resource.h
index f040a386499c263627d348676a715b2ac63a45e4..b7106d88e72d088839c89b08d345579d6af08108 100644
--- a/ppapi/proxy/video_encoder_resource.h
+++ b/ppapi/proxy/video_encoder_resource.h
@@ -8,10 +8,10 @@
#include <stdint.h>
#include <deque>
+#include <memory>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "ppapi/proxy/connection.h"
#include "ppapi/proxy/plugin_resource.h"
@@ -44,13 +44,13 @@ class PPAPI_PROXY_EXPORT VideoEncoderResource
private:
struct ShmBuffer {
- ShmBuffer(uint32_t id, scoped_ptr<base::SharedMemory> shm);
+ ShmBuffer(uint32_t id, std::unique_ptr<base::SharedMemory> shm);
~ShmBuffer();
// Index of the buffer in the ScopedVector. Buffers have the same id in
// the plugin and the host.
uint32_t id;
- scoped_ptr<base::SharedMemory> shm;
+ std::unique_ptr<base::SharedMemory> shm;
};
struct BitstreamBuffer {
« no previous file with comments | « ppapi/proxy/video_decoder_resource.cc ('k') | ppapi/proxy/video_encoder_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698