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

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add GetSupportedProfile to all platforms Created 5 years, 9 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 unified diff | Download patch
OLDNEW
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
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 // Supported media profiles should be synced with Initialize function.
wuchengli 2015/03/23 08:28:08 Actually this is different because Initialize uses
henryhsu 2015/03/23 10:06:35 Done.
562 media::VideoDecodeAccelerator::SupportedProfile profile;
563 profile.profile = media::VP8PROFILE_ANY;
564 profile.min_resolution.SetSize(16, 16);
565 profile.max_resolution.SetSize(1920, 1088);
566 profiles.push_back(profile);
567 return profiles;
568 }
569
557 } // namespace content 570 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698