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

Unified Diff: content/common/gpu/client/gpu_video_encode_accelerator_host.h

Issue 1128213005: Passing Native Texture backed Video Frame from Renderer to GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: posciak@ and magjed@ comments. Created 5 years, 7 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/common/gpu/client/gpu_video_encode_accelerator_host.h
diff --git a/content/common/gpu/client/gpu_video_encode_accelerator_host.h b/content/common/gpu/client/gpu_video_encode_accelerator_host.h
index 4d1e79f1e44d012aea975e5f33299e6baebba795..cf7bb7c2dcd2d676afe2772e9611bd1d846dc47a 100644
--- a/content/common/gpu/client/gpu_video_encode_accelerator_host.h
+++ b/content/common/gpu/client/gpu_video_encode_accelerator_host.h
@@ -70,6 +70,13 @@ class GpuVideoEncodeAcceleratorHost
// Only Destroy() should be deleting |this|.
~GpuVideoEncodeAcceleratorHost() override;
+ // Encode implementations for video frames with different storage types.
+ // Return true on successful completion.
+ bool EncodeNativeTexture(const scoped_refptr<media::VideoFrame>& frame,
+ bool force_keyframe);
+ bool EncodeSharedMemory(const scoped_refptr<media::VideoFrame>& frame,
+ bool force_keyframe);
+
// Notify |client_| of an error. Posts a task to avoid re-entrancy.
void PostNotifyError(Error);

Powered by Google App Engine
This is Rietveld 408576698