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

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

Issue 312803002: Android media: VideoFrame should not store so many sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ios build Created 6 years, 5 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
« no previous file with comments | « media/base/video_frame_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <set> 10 #include <set>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 typedef std::map<int32, PictureBuffer> PictureBufferMap; 97 typedef std::map<int32, PictureBuffer> PictureBufferMap;
98 98
99 void DeliverFrame(const scoped_refptr<VideoFrame>& frame); 99 void DeliverFrame(const scoped_refptr<VideoFrame>& frame);
100 100
101 // Static method is to allow it to run even after GVD is deleted. 101 // Static method is to allow it to run even after GVD is deleted.
102 static void ReleaseMailbox( 102 static void ReleaseMailbox(
103 base::WeakPtr<GpuVideoDecoder> decoder, 103 base::WeakPtr<GpuVideoDecoder> decoder,
104 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, 104 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories,
105 int64 picture_buffer_id, 105 int64 picture_buffer_id,
106 uint32 texture_id, 106 uint32 texture_id,
107 const std::vector<uint32>& release_sync_points); 107 uint32 release_sync_point);
108 // Indicate the picture buffer can be reused by the decoder. 108 // Indicate the picture buffer can be reused by the decoder.
109 void ReusePictureBuffer(int64 picture_buffer_id); 109 void ReusePictureBuffer(int64 picture_buffer_id);
110 110
111 void RecordBufferData( 111 void RecordBufferData(
112 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer); 112 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
113 void GetBufferData(int32 id, base::TimeDelta* timetamp, 113 void GetBufferData(int32 id, base::TimeDelta* timetamp,
114 gfx::Rect* visible_rect, gfx::Size* natural_size); 114 gfx::Rect* visible_rect, gfx::Size* natural_size);
115 115
116 void DestroyVDA(); 116 void DestroyVDA();
117 117
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Bound to factories_->GetMessageLoop(). 189 // Bound to factories_->GetMessageLoop().
190 // NOTE: Weak pointers must be invalidated before all other member variables. 190 // NOTE: Weak pointers must be invalidated before all other member variables.
191 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 191 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
192 192
193 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 193 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
194 }; 194 };
195 195
196 } // namespace media 196 } // namespace media
197 197
198 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 198 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/video_frame_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698