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

Unified Diff: remoting/client/plugin/pepper_video_renderer_3d.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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: remoting/client/plugin/pepper_video_renderer_3d.h
diff --git a/remoting/client/plugin/pepper_video_renderer_3d.h b/remoting/client/plugin/pepper_video_renderer_3d.h
index 529f946a3e798095bf3539c80b327804692d5e30..d621ffac6f2d92877d54f3d04868e304fe99f883 100644
--- a/remoting/client/plugin/pepper_video_renderer_3d.h
+++ b/remoting/client/plugin/pepper_video_renderer_3d.h
@@ -8,11 +8,11 @@
#include <stdint.h>
#include <deque>
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "ppapi/cpp/graphics_3d.h"
#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/video_decoder.h"
@@ -47,7 +47,7 @@ class PepperVideoRenderer3D : public PepperVideoRenderer,
protocol::FrameConsumer* GetFrameConsumer() override;
// protocol::VideoStub interface.
- void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
+ void ProcessVideoPacket(std::unique_ptr<VideoPacket> packet,
const base::Closure& done) override;
private:
@@ -111,12 +111,12 @@ class PepperVideoRenderer3D : public PepperVideoRenderer,
// The current picture shown on the screen or being rendered. Must be deleted
// before |video_decoder_|.
- scoped_ptr<Picture> current_picture_;
+ std::unique_ptr<Picture> current_picture_;
// The next picture to be rendered. PaintIfNeeded() will copy it to
// |current_picture_| and render it after that. Must be deleted
// before |video_decoder_|.
- scoped_ptr<Picture> next_picture_;
+ std::unique_ptr<Picture> next_picture_;
// Set to true if the screen has been resized and needs to be repainted.
bool force_repaint_ = false;
« no previous file with comments | « remoting/client/plugin/pepper_video_renderer_2d.cc ('k') | remoting/client/plugin/pepper_video_renderer_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698