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

Unified Diff: content/renderer/media/android/stream_texture_wrapper_impl.h

Issue 2192823004: Update StreamTextureProxy to accept a base::Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 4 years, 5 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: content/renderer/media/android/stream_texture_wrapper_impl.h
diff --git a/content/renderer/media/android/stream_texture_wrapper_impl.h b/content/renderer/media/android/stream_texture_wrapper_impl.h
index 0c13a6c20da0acb792dcd6f97d762e2758b1dcfa..100aee27240d44443151c10f660f86c7d968e5a2 100644
--- a/content/renderer/media/android/stream_texture_wrapper_impl.h
+++ b/content/renderer/media/android/stream_texture_wrapper_impl.h
@@ -10,8 +10,8 @@
#include "content/common/content_export.h"
#include "content/renderer/media/android/stream_texture_factory.h"
#include "gpu/command_buffer/common/mailbox.h"
+#include "media/base/android/stream_texture_wrapper.h"
#include "media/base/video_frame.h"
-#include "media/blink/stream_texture_wrapper.h"
namespace content {
@@ -63,7 +63,7 @@ class CONTENT_EXPORT StreamTextureWrapperImpl
// - New frames will be signaled on |compositor_task_runner| via |client|'s
// DidReceiveFrame() method.
void Initialize(
- cc::VideoFrameProvider::Client* client,
+ const base::Closure& received_frame_cb,
const gfx::Size& natural_size,
scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner,
const base::Closure& init_cb) override;
@@ -87,7 +87,7 @@ class CONTENT_EXPORT StreamTextureWrapperImpl
// Destroys |this| safely on |main_task_runner_|.
void Destroy() override;
- void InitializeOnMainThread(cc::VideoFrameProvider::Client* client,
+ void InitializeOnMainThread(const base::Closure& received_frame_cb,
const base::Closure& init_cb);
void ReallocateVideoFrame(const gfx::Size& natural_size);

Powered by Google App Engine
This is Rietveld 408576698