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

Unified Diff: gpu/ipc/common/gpu_info_struct_traits.cc

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)
Patch Set: fix build break on Android Created 3 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 | « gpu/ipc/common/gpu_info.mojom ('k') | media/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_info_struct_traits.cc
diff --git a/gpu/ipc/common/gpu_info_struct_traits.cc b/gpu/ipc/common/gpu_info_struct_traits.cc
index 65857002607172c57658d39c7e174f6114389c8c..d73b78a6afdda191dfdd3168d1376c551df476c7 100644
--- a/gpu/ipc/common/gpu_info_struct_traits.cc
+++ b/gpu/ipc/common/gpu_info_struct_traits.cc
@@ -106,6 +106,14 @@ EnumTraits<gpu::mojom::VideoCodecProfile, gpu::VideoCodecProfile>::ToMojom(
return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN10;
case gpu::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE:
return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE;
+ case gpu::VideoCodecProfile::DOLBYVISION_PROFILE0:
+ return gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE0;
+ case gpu::VideoCodecProfile::DOLBYVISION_PROFILE4:
+ return gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE4;
+ case gpu::VideoCodecProfile::DOLBYVISION_PROFILE5:
+ return gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE5;
+ case gpu::VideoCodecProfile::DOLBYVISION_PROFILE7:
+ return gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE7;
}
NOTREACHED() << "Invalid VideoCodecProfile:" << video_codec_profile;
return gpu::mojom::VideoCodecProfile::VIDEO_CODEC_PROFILE_UNKNOWN;
@@ -176,6 +184,18 @@ bool EnumTraits<gpu::mojom::VideoCodecProfile, gpu::VideoCodecProfile>::
case gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE:
*out = gpu::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE;
return true;
+ case gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE0:
+ *out = gpu::VideoCodecProfile::DOLBYVISION_PROFILE0;
+ return true;
+ case gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE4:
+ *out = gpu::VideoCodecProfile::DOLBYVISION_PROFILE4;
+ return true;
+ case gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE5:
+ *out = gpu::VideoCodecProfile::DOLBYVISION_PROFILE5;
+ return true;
+ case gpu::mojom::VideoCodecProfile::DOLBYVISION_PROFILE7:
+ *out = gpu::VideoCodecProfile::DOLBYVISION_PROFILE7;
+ return true;
}
NOTREACHED() << "Invalid VideoCodecProfile: " << input;
return false;
« no previous file with comments | « gpu/ipc/common/gpu_info.mojom ('k') | media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698