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

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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years 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_decode_accelerator_host.cc
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
index a329dcc54dce45b5524dbdef39ed211d297e4e46..621d21077460947feedd6b18d842fb14ee1571c2 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -81,7 +81,7 @@ void GpuVideoDecodeAcceleratorHost::OnChannelError() {
PostNotifyError(PLATFORM_FAILURE);
}
-bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
+bool GpuVideoDecodeAcceleratorHost::Initialize(const Config& config,
Client* client) {
DCHECK(CalledOnValidThread());
client_ = client;
@@ -93,7 +93,7 @@ bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
channel_->AddRoute(route_id, weak_this_factory_.GetWeakPtr());
bool succeeded = false;
- Send(new GpuCommandBufferMsg_CreateVideoDecoder(impl_->route_id(), profile,
+ Send(new GpuCommandBufferMsg_CreateVideoDecoder(impl_->route_id(), config,
route_id, &succeeded));
if (!succeeded) {
« no previous file with comments | « content/common/gpu/client/gpu_video_decode_accelerator_host.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698