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

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

Issue 2480523006: Enable texture copy for webiew (Closed)
Patch Set: Created 4 years, 1 month 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 a7e2bae48fbdd2558967f0323b5030dd64bdf85a..f85a5fbc407a5be12b56b757a716b4de8c968231 100644
--- a/content/renderer/media/android/stream_texture_wrapper_impl.h
+++ b/content/renderer/media/android/stream_texture_wrapper_impl.h
@@ -43,6 +43,7 @@ class CONTENT_EXPORT StreamTextureWrapperImpl
: public media::StreamTextureWrapper {
public:
static media::ScopedStreamTextureWrapper Create(
+ bool enable_texture_copy,
liberato (no reviews please) 2016/11/07 22:35:31 please add a line to document this.
tguilbert 2016/11/07 23:25:01 Done.
scoped_refptr<StreamTextureFactory> factory,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
@@ -80,6 +81,7 @@ class CONTENT_EXPORT StreamTextureWrapperImpl
private:
StreamTextureWrapperImpl(
+ bool enable_texture_copy,
scoped_refptr<StreamTextureFactory> factory,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
~StreamTextureWrapperImpl() override;
@@ -95,6 +97,8 @@ class CONTENT_EXPORT StreamTextureWrapperImpl
void SetCurrentFrameInternal(
const scoped_refptr<media::VideoFrame>& video_frame);
+ bool enable_texture_copy_;
+
// Client GL texture ID allocated to the StreamTexture.
unsigned texture_id_;

Powered by Google App Engine
This is Rietveld 408576698