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

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

Issue 877353002: media: VideoFrame: add offset for shared memory buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify shm pointer computation Created 5 years, 10 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.cc
diff --git a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
index 026040f455e640d6f82ec09cec765f8c6692d851..2082dade72b0d88cba2301da1ae1d3cd5e7a7ae6 100644
--- a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
@@ -184,7 +184,8 @@ void GpuVideoEncodeAcceleratorHost::Encode(
}
Send(new AcceleratedVideoEncoderMsg_Encode(
- encoder_route_id_, next_frame_id_, handle, frame_size, force_keyframe));
+ encoder_route_id_, next_frame_id_, handle, frame->shared_memory_offset(),
+ frame_size, force_keyframe));
frame_map_[next_frame_id_] = frame;
// Mask against 30 bits, to avoid (undefined) wraparound on signed integer.
« no previous file with comments | « content/browser/renderer_host/media/video_capture_controller_unittest.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698