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

Unified Diff: content/renderer/media/gpu/rtc_video_encoder.cc

Issue 2395913003: Cleanup of passing GpuMemoryBuffer backed video frames (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/gpu/rtc_video_encoder.cc
diff --git a/content/renderer/media/gpu/rtc_video_encoder.cc b/content/renderer/media/gpu/rtc_video_encoder.cc
index 7ab7e1c6bdabfc170e81db0f4a172699b5e40521..34b920d9740e8be9b87271bb77a4893575bb2718 100644
--- a/content/renderer/media/gpu/rtc_video_encoder.cc
+++ b/content/renderer/media/gpu/rtc_video_encoder.cc
@@ -565,7 +565,8 @@ void RTCVideoEncoder::Impl::EncodeOneFrame() {
if (next_frame->video_frame_buffer()->native_handle()) {
frame = static_cast<media::VideoFrame*>(
next_frame->video_frame_buffer()->native_handle());
- requires_copy = RequiresSizeChange(frame);
+ requires_copy = RequiresSizeChange(frame) ||
+ frame->storage_type() != media::VideoFrame::STORAGE_SHMEM;
} else {
requires_copy = true;
}
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698