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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
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: webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm b/webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm
index ab45ca48213be124dd6bff2b36d223945dceb752..7d7b416b888843e4028d5068de1362c57fc5f383 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm
@@ -16,10 +16,10 @@
#import <OpenGL/gl3.h>
#endif
#include <string.h>
+#include <memory>
#import "WebRTC/RTCVideoFrame.h"
-#include "webrtc/base/scoped_ptr.h"
// TODO(tkchin): check and log openGL errors. Methods here return BOOLs in
// anticipation of that happening in the future.
@@ -162,7 +162,7 @@ static const GLsizei kNumTextures = 3 * kNumTextureSets;
GLint _vSampler;
// Used to create a non-padded plane for GPU upload when we receive padded
// frames.
- rtc::scoped_ptr<uint8_t[]> _planeBuffer;
+ std::unique_ptr<uint8_t[]> _planeBuffer;
}
@synthesize lastDrawnFrame = _lastDrawnFrame;

Powered by Google App Engine
This is Rietveld 408576698