Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 // Caller owns returned pointer. | 40 // Caller owns returned pointer. |
| 41 virtual VideoDecodeAccelerator* CreateVideoDecodeAccelerator( | 41 virtual VideoDecodeAccelerator* CreateVideoDecodeAccelerator( |
| 42 VideoCodecProfile, VideoDecodeAccelerator::Client*) = 0; | 42 VideoCodecProfile, VideoDecodeAccelerator::Client*) = 0; |
| 43 | 43 |
| 44 // Allocate & delete native textures. | 44 // Allocate & delete native textures. |
| 45 virtual bool CreateTextures(int32 count, const gfx::Size& size, | 45 virtual bool CreateTextures(int32 count, const gfx::Size& size, |
| 46 std::vector<uint32>* texture_ids, | 46 std::vector<uint32>* texture_ids, |
| 47 uint32 texture_target) = 0; | 47 uint32 texture_target) = 0; |
| 48 virtual void DeleteTexture(uint32 texture_id) = 0; | 48 virtual void DeleteTexture(uint32 texture_id) = 0; |
| 49 | 49 |
| 50 // Read pixels from a native texture. | |
|
Ken Russell (switch to Gerrit)
2012/10/01 17:56:16
Again, document format of pixels.
Ami GONE FROM CHROMIUM
2012/10/01 18:16:12
Done.
| |
| 51 virtual void ReadPixels(uint32 texture_id, uint32 texture_target, | |
| 52 const gfx::Size& size, void* pixels) = 0; | |
| 53 | |
| 50 // Allocate & return a shared memory segment. Caller is responsible for | 54 // Allocate & return a shared memory segment. Caller is responsible for |
| 51 // Close()ing the returned pointer. | 55 // Close()ing the returned pointer. |
| 52 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0; | 56 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0; |
| 53 | 57 |
| 54 protected: | 58 protected: |
| 55 friend class base::RefCountedThreadSafe<Factories>; | 59 friend class base::RefCountedThreadSafe<Factories>; |
| 56 virtual ~Factories(); | 60 virtual ~Factories(); |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 typedef base::Callback< | 63 typedef base::Callback< |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 | 223 |
| 220 // Indicates decoding error occurred. | 224 // Indicates decoding error occurred. |
| 221 bool error_occured_; | 225 bool error_occured_; |
| 222 | 226 |
| 223 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 224 }; | 228 }; |
| 225 | 229 |
| 226 } // namespace media | 230 } // namespace media |
| 227 | 231 |
| 228 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |