OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/common/gpu/media/android_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/android_video_decode_accelerator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 void AndroidVideoDecodeAccelerator::NotifyResetDone() { | 548 void AndroidVideoDecodeAccelerator::NotifyResetDone() { |
549 client_->NotifyResetDone(); | 549 client_->NotifyResetDone(); |
550 } | 550 } |
551 | 551 |
552 void AndroidVideoDecodeAccelerator::NotifyError( | 552 void AndroidVideoDecodeAccelerator::NotifyError( |
553 media::VideoDecodeAccelerator::Error error) { | 553 media::VideoDecodeAccelerator::Error error) { |
554 client_->NotifyError(error); | 554 client_->NotifyError(error); |
555 } | 555 } |
556 | 556 |
| 557 // static |
| 558 std::vector<media::VideoDecodeAccelerator::SupportedProfile> |
| 559 VTVideoDecodeAccelerator::GetSupportedProfiles() { |
| 560 std::vector<media::VideoDecodeAccelerator::SupportedProfile> profiles; |
| 561 if (media::VideoCodecBridge::IsKnownUnaccelerated( |
| 562 media::kCodecVP8, media::MEDIA_CODEC_DECODER)) { |
| 563 return profiles; |
| 564 } |
| 565 media::VideoDecodeAccelerator::SupportedProfile profile; |
| 566 profile.profile = media::VP8PROFILE_ANY; |
| 567 profile.min_resolution.SetSize(16, 16); |
| 568 profile.max_resolution.SetSize(1920, 1088); |
| 569 profiles.push_back(profile); |
| 570 return profiles; |
| 571 } |
| 572 |
557 } // namespace content | 573 } // namespace content |
OLD | NEW |