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

Unified Diff: content/common/gpu/media/v4l2_video_decode_accelerator.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/media/v4l2_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.cc b/content/common/gpu/media/v4l2_video_decode_accelerator.cc
index f2170807a7a60a8662b7230d033fb3782a7d67fd..48926632a91a2824a53b13533f7a932af0366581 100644
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.cc
@@ -199,8 +199,9 @@ V4L2VideoDecodeAccelerator::~V4L2VideoDecodeAccelerator() {
DCHECK(output_buffer_map_.empty());
}
-bool V4L2VideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile,
- Client* client) {
+bool V4L2VideoDecodeAccelerator::Initialize(
+ const media::VideoDecodeAccelerator::InitParams& params,
+ Client* client) {
DVLOG(3) << "Initialize()";
DCHECK(child_task_runner_->BelongsToCurrentThread());
DCHECK_EQ(decoder_state_, kUninitialized);
@@ -208,7 +209,7 @@ bool V4L2VideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile,
client_ptr_factory_.reset(new base::WeakPtrFactory<Client>(client));
client_ = client_ptr_factory_->GetWeakPtr();
- switch (profile) {
+ switch (params.profile) {
case media::H264PROFILE_BASELINE:
DVLOG(2) << "Initialize(): profile H264PROFILE_BASELINE";
break;
@@ -225,10 +226,10 @@ bool V4L2VideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile,
DVLOG(2) << "Initialize(): profile VP9PROFILE_ANY";
break;
default:
- DLOG(ERROR) << "Initialize(): unsupported profile=" << profile;
+ DLOG(ERROR) << "Initialize(): unsupported profile=" << params.profile;
return false;
};
- video_profile_ = profile;
+ video_profile_ = params.profile;
if (egl_display_ == EGL_NO_DISPLAY) {
LOG(ERROR) << "Initialize(): could not get EGLDisplay";

Powered by Google App Engine
This is Rietveld 408576698