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

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: Add gpu-process ipc modification Created 5 years, 11 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(),
DaleCurtis 2015/01/30 18:44:59 Who is setting this value? It looks like it's alwa
llandwerlin-old 2015/01/31 22:42:53 For now, it's always zero. The idea is to get this
+ frame_size, force_keyframe));
frame_map_[next_frame_id_] = frame;
// Mask against 30 bits, to avoid (undefined) wraparound on signed integer.

Powered by Google App Engine
This is Rietveld 408576698