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

Side by Side Diff: media/renderers/gpu_video_accelerator_factories.h

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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual VideoPixelFormat VideoFrameOutputFormat() = 0; 90 virtual VideoPixelFormat VideoFrameOutputFormat() = 0;
91 91
92 virtual scoped_ptr<ScopedGLContextLock> GetGLContextLock() = 0; 92 virtual scoped_ptr<ScopedGLContextLock> GetGLContextLock() = 0;
93 93
94 // Allocate & return a shared memory segment. 94 // Allocate & return a shared memory segment.
95 virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0; 95 virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0;
96 96
97 // Returns the task runner the video accelerator runs on. 97 // Returns the task runner the video accelerator runs on.
98 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0; 98 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0;
99 99
100 // Returns the supported codec profiles of video decode accelerator. 100 // Return the capabilities of video decode accelerator, which includes the
101 virtual VideoDecodeAccelerator::SupportedProfiles 101 // supported codec profiles.
102 GetVideoDecodeAcceleratorSupportedProfiles() = 0; 102 virtual VideoDecodeAccelerator::Capabilities
103 GetVideoDecodeAcceleratorCapabilities() = 0;
103 104
104 // Returns the supported codec profiles of video encode accelerator. 105 // Returns the supported codec profiles of video encode accelerator.
105 virtual VideoEncodeAccelerator::SupportedProfiles 106 virtual VideoEncodeAccelerator::SupportedProfiles
106 GetVideoEncodeAcceleratorSupportedProfiles() = 0; 107 GetVideoEncodeAcceleratorSupportedProfiles() = 0;
107 108
108 protected: 109 protected:
109 friend class base::RefCounted<GpuVideoAcceleratorFactories>; 110 friend class base::RefCounted<GpuVideoAcceleratorFactories>;
110 virtual ~GpuVideoAcceleratorFactories() {} 111 virtual ~GpuVideoAcceleratorFactories() {}
111 }; 112 };
112 113
113 } // namespace media 114 } // namespace media
114 115
115 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 116 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/renderers/mock_gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698