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

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

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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) 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void VideoDecodeAccelerator::ImportBufferForPicture( 46 void VideoDecodeAccelerator::ImportBufferForPicture(
47 int32_t picture_buffer_id, 47 int32_t picture_buffer_id,
48 const std::vector<gfx::GpuMemoryBufferHandle>& gpu_memory_buffer_handles) { 48 const std::vector<gfx::GpuMemoryBufferHandle>& gpu_memory_buffer_handles) {
49 NOTREACHED() << "Buffer import not supported."; 49 NOTREACHED() << "Buffer import not supported.";
50 } 50 }
51 51
52 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const { 52 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const {
53 return GL_RGBA; 53 return GL_RGBA;
54 } 54 }
55 55
56 VideoPixelFormat VideoDecodeAccelerator::GetOutputFormat() const {
57 return PIXEL_FORMAT_UNKNOWN;
58 }
59
60 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() 56 VideoDecodeAccelerator::SupportedProfile::SupportedProfile()
61 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} 57 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {}
62 58
63 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} 59 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {}
64 60
65 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} 61 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {}
66 62
67 VideoDecodeAccelerator::Capabilities::Capabilities(const Capabilities& other) = 63 VideoDecodeAccelerator::Capabilities::Capabilities(const Capabilities& other) =
68 default; 64 default;
69 65
(...skipping 15 matching lines...) Expand all
85 } // namespace media 81 } // namespace media
86 82
87 namespace std { 83 namespace std {
88 84
89 void default_delete<media::VideoDecodeAccelerator>::operator()( 85 void default_delete<media::VideoDecodeAccelerator>::operator()(
90 media::VideoDecodeAccelerator* vda) const { 86 media::VideoDecodeAccelerator* vda) const {
91 vda->Destroy(); 87 vda->Destroy();
92 } 88 }
93 89
94 } // namespace std 90 } // namespace std
OLDNEW
« media/video/video_decode_accelerator.h ('K') | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698