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

Unified Diff: remoting/protocol/frame_consumer.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
« no previous file with comments | « remoting/protocol/fake_video_renderer.cc ('k') | remoting/protocol/host_control_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/frame_consumer.h
diff --git a/remoting/protocol/frame_consumer.h b/remoting/protocol/frame_consumer.h
index 7dde4fc82b71d06956ce0e9f56c8ba6cd66578b1..be9c88192a213f75e635985f9021c7fac791c680 100644
--- a/remoting/protocol/frame_consumer.h
+++ b/remoting/protocol/frame_consumer.h
@@ -5,9 +5,10 @@
#ifndef REMOTING_PROTOCOL_FRAME_CONSUMER_H_
#define REMOTING_PROTOCOL_FRAME_CONSUMER_H_
+#include <memory>
+
#include "base/callback_forward.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace webrtc {
class DesktopFrame;
@@ -25,10 +26,10 @@ class FrameConsumer {
FORMAT_RGBA, // Used for Android's Bitmap class.
};
- virtual scoped_ptr<webrtc::DesktopFrame> AllocateFrame(
+ virtual std::unique_ptr<webrtc::DesktopFrame> AllocateFrame(
const webrtc::DesktopSize& size) = 0;
- virtual void DrawFrame(scoped_ptr<webrtc::DesktopFrame> frame,
+ virtual void DrawFrame(std::unique_ptr<webrtc::DesktopFrame> frame,
const base::Closure& done) = 0;
// Returns the preferred pixel encoding for the platform.
« no previous file with comments | « remoting/protocol/fake_video_renderer.cc ('k') | remoting/protocol/host_control_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698