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

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

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl feedback. Created 5 years 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 {
(...skipping 20 matching lines...) Expand all
31 // GPU process subclasses must override this. 31 // GPU process subclasses must override this.
32 LOG(FATAL) << "This should only get called in the GPU process"; 32 LOG(FATAL) << "This should only get called in the GPU process";
33 return false; // not reached 33 return false; // not reached
34 } 34 }
35 35
36 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { 36 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const {
37 return GL_RGBA; 37 return GL_RGBA;
38 } 38 }
39 39
40 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() 40 VideoDecodeAccelerator::SupportedProfile::SupportedProfile()
41 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) { 41 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) {}
42 }
43 42
44 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() { 43 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {}
45 } 44
45 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {}
46
47 VideoDecodeAccelerator::Capabilities::~Capabilities() {}
46 48
47 } // namespace media 49 } // namespace media
48 50
49 namespace std { 51 namespace std {
50 52
51 void default_delete<media::VideoDecodeAccelerator>::operator()( 53 void default_delete<media::VideoDecodeAccelerator>::operator()(
52 media::VideoDecodeAccelerator* vda) const { 54 media::VideoDecodeAccelerator* vda) const {
53 vda->Destroy(); 55 vda->Destroy();
54 } 56 }
55 57
56 } // namespace std 58 } // 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