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

Side by Side Diff: media/video/video_decode_accelerator.cc

Issue 2045273005: Have VDA clients inform decoder of supported picture buffer formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/video/video_decode_accelerator.h" 5 #include "media/video/video_decode_accelerator.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 VideoDecodeAccelerator::Config::Config() = default;
13 VideoDecodeAccelerator::Config::Config(const Config& config) = default;
14
12 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile) 15 VideoDecodeAccelerator::Config::Config(VideoCodecProfile video_codec_profile)
13 : profile(video_codec_profile) {} 16 : profile(video_codec_profile) {}
14 17
18 VideoDecodeAccelerator::Config::~Config() = default;
19
15 std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const { 20 std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const {
16 std::ostringstream s; 21 std::ostringstream s;
17 s << "profile: " << GetProfileName(profile) << " encrypted? " 22 s << "profile: " << GetProfileName(profile) << " encrypted? "
18 << (is_encrypted ? "true" : "false"); 23 << (is_encrypted ? "true" : "false");
19 return s.str(); 24 return s.str();
20 } 25 }
21 26
22 void VideoDecodeAccelerator::Client::NotifyInitializationComplete( 27 void VideoDecodeAccelerator::Client::NotifyInitializationComplete(
23 bool success) { 28 bool success) {
24 NOTREACHED() << "By default deferred initialization is not supported."; 29 NOTREACHED() << "By default deferred initialization is not supported.";
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } // namespace media 77 } // namespace media
73 78
74 namespace std { 79 namespace std {
75 80
76 void default_delete<media::VideoDecodeAccelerator>::operator()( 81 void default_delete<media::VideoDecodeAccelerator>::operator()(
77 media::VideoDecodeAccelerator* vda) const { 82 media::VideoDecodeAccelerator* vda) const {
78 vda->Destroy(); 83 vda->Destroy();
79 } 84 }
80 85
81 } // namespace std 86 } // namespace std
OLDNEW
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698