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

Unified Diff: media/base/video_frame.h

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android 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 | « media/base/vector_math_unittest.cc ('k') | media/base/video_frame_metadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 944a04018ca25c55a6fbd3d12e98b35374e35b77..53ca5661042bc852528f6140e0cb34e878f45a98 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -527,8 +528,9 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
int32_t strides_[kMaxPlanes];
// Array of data pointers to each plane.
- // TODO(mcasas): we don't know on ctor if we own |data_| or not. After
- // refactoring VideoFrame, change to scoped_ptr<uint8_t, AlignedFreeDeleter>.
+ // TODO(mcasas): we don't know on ctor if we own |data_| or not. Change
+ // to std::unique_ptr<uint8_t, AlignedFreeDeleter> after refactoring
+ // VideoFrame.
uint8_t* data_[kMaxPlanes];
// Native texture mailboxes, if this is a IsTexture() frame.
« no previous file with comments | « media/base/vector_math_unittest.cc ('k') | media/base/video_frame_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698