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

Unified Diff: media/base/android/stream_texture_wrapper.h

Issue 2556983002: Fix SetStreamTextureSize crash (Closed)
Patch Set: Addressed comments Created 4 years 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 | « content/renderer/media/android/stream_texture_wrapper_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/stream_texture_wrapper.h
diff --git a/media/base/android/stream_texture_wrapper.h b/media/base/android/stream_texture_wrapper.h
index 0d9dc2f8243d38fe944eb91a04bbd2cbf1e36557..ee092cd1b2cf1bdb175658425a01f908fce13666 100644
--- a/media/base/android/stream_texture_wrapper.h
+++ b/media/base/android/stream_texture_wrapper.h
@@ -15,6 +15,8 @@ namespace media {
// and registration for later retrieval (in the Browser process).
class MEDIA_EXPORT StreamTextureWrapper {
public:
+ using StreamTextureWrapperInitCB = base::Callback<void(bool)>;
+
StreamTextureWrapper() {}
// Initialize the underlying StreamTexture.
@@ -23,7 +25,7 @@ class MEDIA_EXPORT StreamTextureWrapper {
const base::Closure& received_frame_cb,
const gfx::Size& natural_size,
scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner,
- const base::Closure& init_cb) = 0;
+ const StreamTextureWrapperInitCB& init_cb) = 0;
// Called whenever the video's natural size changes.
// See StreamTextureWrapperImpl.
« no previous file with comments | « content/renderer/media/android/stream_texture_wrapper_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698