| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/vt_video_decode_accelerator_mac.h" | 5 #include "media/gpu/vt_video_decode_accelerator_mac.h" |
| 6 | 6 |
| 7 #include <CoreVideo/CoreVideo.h> | 7 #include <CoreVideo/CoreVideo.h> |
| 8 #include <OpenGL/CGLIOSurface.h> | 8 #include <OpenGL/CGLIOSurface.h> |
| 9 #include <OpenGL/gl.h> | 9 #include <OpenGL/gl.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 bool VTVideoDecodeAccelerator::Initialize(const Config& config, | 320 bool VTVideoDecodeAccelerator::Initialize(const Config& config, |
| 321 Client* client) { | 321 Client* client) { |
| 322 DVLOG(1) << __func__; | 322 DVLOG(1) << __func__; |
| 323 DCHECK(gpu_task_runner_->BelongsToCurrentThread()); | 323 DCHECK(gpu_task_runner_->BelongsToCurrentThread()); |
| 324 | 324 |
| 325 if (make_context_current_cb_.is_null() || bind_image_cb_.is_null()) { | 325 if (make_context_current_cb_.is_null() || bind_image_cb_.is_null()) { |
| 326 NOTREACHED() << "GL callbacks are required for this VDA"; | 326 NOTREACHED() << "GL callbacks are required for this VDA"; |
| 327 return false; | 327 return false; |
| 328 } | 328 } |
| 329 | 329 |
| 330 if (config.is_encrypted) { | 330 if (config.is_encrypted()) { |
| 331 NOTREACHED() << "Encrypted streams are not supported for this VDA"; | 331 NOTREACHED() << "Encrypted streams are not supported for this VDA"; |
| 332 return false; | 332 return false; |
| 333 } | 333 } |
| 334 | 334 |
| 335 if (config.output_mode != Config::OutputMode::ALLOCATE) { | 335 if (config.output_mode != Config::OutputMode::ALLOCATE) { |
| 336 NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA"; | 336 NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA"; |
| 337 return false; | 337 return false; |
| 338 } | 338 } |
| 339 | 339 |
| 340 client_ = client; | 340 client_ = client; |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 SupportedProfile profile; | 1196 SupportedProfile profile; |
| 1197 profile.profile = supported_profile; | 1197 profile.profile = supported_profile; |
| 1198 profile.min_resolution.SetSize(16, 16); | 1198 profile.min_resolution.SetSize(16, 16); |
| 1199 profile.max_resolution.SetSize(4096, 2160); | 1199 profile.max_resolution.SetSize(4096, 2160); |
| 1200 profiles.push_back(profile); | 1200 profiles.push_back(profile); |
| 1201 } | 1201 } |
| 1202 return profiles; | 1202 return profiles; |
| 1203 } | 1203 } |
| 1204 | 1204 |
| 1205 } // namespace media | 1205 } // namespace media |
| OLD | NEW |