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

Unified Diff: content/common/gpu/media/gpu_video_encode_accelerator.cc

Issue 1154153003: Relanding 1143663007: VideoFrame: Separate Pixel Format from Storage Type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NV12 support in CrOS 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/media/gpu_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_encode_accelerator.cc b/content/common/gpu/media/gpu_video_encode_accelerator.cc
index e1bf5137b6e05e47cbd2d47a5beb677353ac1e9d..0c3e887b5bbccb8b7a5b66cfdeb2e080bb9e11d3 100644
--- a/content/common/gpu/media/gpu_video_encode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.cc
@@ -269,7 +269,7 @@ void GpuVideoEncodeAccelerator::OnEncode(int32 frame_id,
uint8* shm_memory = reinterpret_cast<uint8*>(shm->memory()) + aligned_offset;
scoped_refptr<media::VideoFrame> frame =
- media::VideoFrame::WrapExternalPackedMemory(
+ media::VideoFrame::WrapExternalSharedMemory(
input_format_,
input_coded_size_,
gfx::Rect(input_visible_size_),

Powered by Google App Engine
This is Rietveld 408576698