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

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

Issue 11468033: Vanquish the remnants of media::MessageLoopFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 and store into |*pixels| as RGBA. 50 // Read pixels from a native texture and store into |*pixels| as RGBA.
51 virtual void ReadPixels(uint32 texture_id, uint32 texture_target, 51 virtual void ReadPixels(uint32 texture_id, uint32 texture_target,
52 const gfx::Size& size, void* pixels) = 0; 52 const gfx::Size& size, void* pixels) = 0;
53 53
54 // Allocate & return a shared memory segment. Caller is responsible for 54 // Allocate & return a shared memory segment. Caller is responsible for
55 // Close()ing the returned pointer. 55 // Close()ing the returned pointer.
56 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0; 56 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0;
57 57
58 // Returns the message loop the VideoDecodeAccelerator runs on.
59 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0;
scherkus (not reviewing) 2012/12/07 23:54:11 this is because we now create GpuVideoDecoder in w
60
58 protected: 61 protected:
59 friend class base::RefCountedThreadSafe<Factories>; 62 friend class base::RefCountedThreadSafe<Factories>;
60 virtual ~Factories(); 63 virtual ~Factories();
61 }; 64 };
62 65
63 GpuVideoDecoder(const scoped_refptr<base::MessageLoopProxy>& gvd_loop_proxy, 66 GpuVideoDecoder(const scoped_refptr<base::MessageLoopProxy>& message_loop,
64 const scoped_refptr<base::MessageLoopProxy>& vda_loop_proxy,
65 const scoped_refptr<Factories>& factories); 67 const scoped_refptr<Factories>& factories);
66 68
67 // VideoDecoder implementation. 69 // VideoDecoder implementation.
68 virtual void Initialize(const scoped_refptr<DemuxerStream>& stream, 70 virtual void Initialize(const scoped_refptr<DemuxerStream>& stream,
69 const PipelineStatusCB& status_cb, 71 const PipelineStatusCB& status_cb,
70 const StatisticsCB& statistics_cb) OVERRIDE; 72 const StatisticsCB& statistics_cb) OVERRIDE;
71 virtual void Read(const ReadCB& read_cb) OVERRIDE; 73 virtual void Read(const ReadCB& read_cb) OVERRIDE;
72 virtual void Reset(const base::Closure& closure) OVERRIDE; 74 virtual void Reset(const base::Closure& closure) OVERRIDE;
73 virtual void Stop(const base::Closure& closure) OVERRIDE; 75 virtual void Stop(const base::Closure& closure) OVERRIDE;
74 virtual bool HasAlpha() const OVERRIDE; 76 virtual bool HasAlpha() const OVERRIDE;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 223
222 // Indicates decoding error occurred. 224 // Indicates decoding error occurred.
223 bool error_occured_; 225 bool error_occured_;
224 226
225 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
226 }; 228 };
227 229
228 } // namespace media 230 } // namespace media
229 231
230 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698