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

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

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit + fixed compile issue Created 4 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
« no previous file with comments | « content/common/gpu/client/gpu_video_decode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d240a89d157c556b1df59196fd1278a516f92c03..553fa209d44cf062dbdb39da52005024b54dc9a6 100644
--- a/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_encode_accelerator_host.cc
@@ -9,7 +9,7 @@
#include "base/thread_task_runner_handle.h"
#include "content/common/gpu/client/gpu_channel_host.h"
#include "content/common/gpu/media/gpu_video_accelerator_util.h"
-#include "content/common/gpu/media_messages.h"
+#include "content/common/gpu/media/media_messages.h"
#include "media/base/video_frame.h"
#include "media/video/video_encode_accelerator.h"
#include "ui/gfx/gpu_memory_buffer.h"
@@ -93,10 +93,15 @@ bool GpuVideoEncodeAcceleratorHost::Initialize(
int32_t route_id = channel_->GenerateRouteID();
channel_->AddRoute(route_id, weak_this_factory_.GetWeakPtr());
+ CreateVideoEncoderParams params;
+ params.input_format = input_format;
+ params.input_visible_size = input_visible_size;
+ params.output_profile = output_profile;
+ params.initial_bitrate = initial_bitrate;
+ params.encoder_route_id = route_id;
bool succeeded = false;
- Send(new GpuCommandBufferMsg_CreateVideoEncoder(
- impl_->route_id(), input_format, input_visible_size, output_profile,
- initial_bitrate, route_id, &succeeded));
+ Send(new GpuCommandBufferMsg_CreateVideoEncoder(impl_->route_id(), params,
+ &succeeded));
if (!succeeded) {
DLOG(ERROR) << "Send(GpuCommandBufferMsg_CreateVideoEncoder()) failed";
channel_->RemoveRoute(route_id);
« no previous file with comments | « content/common/gpu/client/gpu_video_decode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698