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

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: Deleted erroneously added files Created 5 years, 1 month 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..0fbbdc2e0d944f401af2ae0a48118961e58f95fd 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -81,8 +81,9 @@ void GpuVideoDecodeAcceleratorHost::OnChannelError() {
PostNotifyError(PLATFORM_FAILURE);
}
-bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
- Client* client) {
+bool GpuVideoDecodeAcceleratorHost::Initialize(
+ const media::VideoDecodeAccelerator::InitParams& params,
+ Client* client) {
DCHECK(CalledOnValidThread());
client_ = client;
@@ -93,7 +94,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(), params,
route_id, &succeeded));
if (!succeeded) {

Powered by Google App Engine
This is Rietveld 408576698