| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/gpu/ipc/common/gpu_video_accelerator_util.h" | 5 #include "media/gpu/gpu_video_accelerator_util.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 | 8 |
| 9 // Make sure the enum values of VideoCodecProfile and | 9 // Make sure the enum values of VideoCodecProfile and |
| 10 // gpu::VideoCodecProfile match. | 10 // gpu::VideoCodecProfile match. |
| 11 #define STATIC_ASSERT_ENUM_MATCH(name) \ | 11 #define STATIC_ASSERT_ENUM_MATCH(name) \ |
| 12 static_assert(name == static_cast<VideoCodecProfile>(gpu::name), \ | 12 static_assert(name == static_cast<VideoCodecProfile>(gpu::name), \ |
| 13 #name " value must match in media and gpu.") | 13 #name " value must match in media and gpu.") |
| 14 | 14 |
| 15 STATIC_ASSERT_ENUM_MATCH(VIDEO_CODEC_PROFILE_UNKNOWN); | 15 STATIC_ASSERT_ENUM_MATCH(VIDEO_CODEC_PROFILE_UNKNOWN); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 duplicate = true; | 151 duplicate = true; |
| 152 break; | 152 break; |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 if (!duplicate) | 155 if (!duplicate) |
| 156 media_profiles->push_back(profile); | 156 media_profiles->push_back(profile); |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace media | 160 } // namespace media |
| OLD | NEW |