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

Side by Side Diff: media/filters/gpu_video_decoder.h

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 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 | Annotate | Revision Log
OLDNEW
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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 17 matching lines...) Expand all
28 class MEDIA_EXPORT GpuVideoDecoder 28 class MEDIA_EXPORT GpuVideoDecoder
29 : public VideoDecoder, 29 : public VideoDecoder,
30 public VideoDecodeAccelerator::Client { 30 public VideoDecodeAccelerator::Client {
31 public: 31 public:
32 // Helper interface for specifying factories needed to instantiate a 32 // Helper interface for specifying factories needed to instantiate a
33 // GpuVideoDecoder. 33 // GpuVideoDecoder.
34 class MEDIA_EXPORT Factories : public base::RefCountedThreadSafe<Factories> { 34 class MEDIA_EXPORT Factories : public base::RefCountedThreadSafe<Factories> {
35 public: 35 public:
36 // Caller owns returned pointer. 36 // Caller owns returned pointer.
37 virtual VideoDecodeAccelerator* CreateVideoDecodeAccelerator( 37 virtual VideoDecodeAccelerator* CreateVideoDecodeAccelerator(
38 VideoCodecProfile, VideoDecodeAccelerator::Client*) = 0; 38 VideoCodecProfile profile,
39 const gfx::Size& frame_size,
40 const std::vector<uint8_t>& extra_data,
41 VideoDecodeAccelerator::Client* client) = 0;
39 42
40 // Allocate & delete native textures. 43 // Allocate & delete native textures.
41 virtual bool CreateTextures(int32 count, const gfx::Size& size, 44 virtual bool CreateTextures(int32 count, const gfx::Size& size,
42 std::vector<uint32>* texture_ids, 45 std::vector<uint32>* texture_ids,
43 uint32* texture_target) = 0; 46 uint32* texture_target) = 0;
44 virtual void DeleteTexture(uint32 texture_id) = 0; 47 virtual void DeleteTexture(uint32 texture_id) = 0;
45 48
46 // Allocate & return a shared memory segment. Caller is responsible for 49 // Allocate & return a shared memory segment. Caller is responsible for
47 // Close()ing the returned pointer. 50 // Close()ing the returned pointer.
48 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0; 51 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 208
206 // Indicates decoding error occurred. 209 // Indicates decoding error occurred.
207 bool error_occured_; 210 bool error_occured_;
208 211
209 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 212 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
210 }; 213 };
211 214
212 } // namespace media 215 } // namespace media
213 216
214 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 217 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_gpu_video_decoder_factories.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698