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

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

Issue 2627433003: Remove ScopedVector from remoting/. (Closed)
Patch Set: rev Created 3 years, 11 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 | « no previous file | remoting/client/plugin/pepper_video_renderer_2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_video_renderer_2d.h
diff --git a/remoting/client/plugin/pepper_video_renderer_2d.h b/remoting/client/plugin/pepper_video_renderer_2d.h
index 74fa15fb8366c75626934128beaf3a05fbed23d4..4663cdd61c45c4007c357671c79b6254ab57ab20 100644
--- a/remoting/client/plugin/pepper_video_renderer_2d.h
+++ b/remoting/client/plugin/pepper_video_renderer_2d.h
@@ -6,11 +6,12 @@
#define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_
#include <list>
+#include <memory>
+#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "ppapi/cpp/graphics_2d.h"
@@ -84,10 +85,12 @@ class PepperVideoRenderer2D : public PepperVideoRenderer,
webrtc::DesktopSize source_size_;
// Done callbacks for the frames that have been painted but not flushed.
- ScopedVector<base::ScopedClosureRunner> pending_frames_done_callbacks_;
+ std::vector<std::unique_ptr<base::ScopedClosureRunner>>
+ pending_frames_done_callbacks_;
// Done callbacks for the frames that are currently being flushed.
- ScopedVector<base::ScopedClosureRunner> flushing_frames_done_callbacks_;
+ std::vector<std::unique_ptr<base::ScopedClosureRunner>>
+ flushing_frames_done_callbacks_;
// True if there paint operations that need to be flushed.
bool need_flush_ = false;
« no previous file with comments | « no previous file | remoting/client/plugin/pepper_video_renderer_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698