Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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; | |
|
Pawel Osciak
2015/12/05 00:18:55
Indent?
liberato (no reviews please)
2015/12/07 19:04:39
cl format will simply put it back.
Pawel Osciak
2015/12/09 01:31:48
It's strange it doesn't put back l.107. This may b
dcheng
2015/12/09 01:41:50
I don't think this is a bug. This is one of the po
| |
| 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_ |
| OLD | NEW |