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

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

Issue 11189027: GVD: DestroyTextures() when destroying. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | media/filters/gpu_video_decoder.cc » ('j') | media/filters/gpu_video_decoder.cc » ('J')
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 <utility> 10 #include <utility>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 size_t size; 145 size_t size;
146 }; 146 };
147 147
148 // Request a shared-memory segment of at least |min_size| bytes. Will 148 // Request a shared-memory segment of at least |min_size| bytes. Will
149 // allocate as necessary. Caller does not own returned pointer. 149 // allocate as necessary. Caller does not own returned pointer.
150 SHMBuffer* GetSHM(size_t min_size); 150 SHMBuffer* GetSHM(size_t min_size);
151 151
152 // Return a shared-memory segment to the available pool. 152 // Return a shared-memory segment to the available pool.
153 void PutSHM(SHMBuffer* shm_buffer); 153 void PutSHM(SHMBuffer* shm_buffer);
154 154
155 void DestroyTextures();
156
155 StatisticsCB statistics_cb_; 157 StatisticsCB statistics_cb_;
156 158
157 // Pointer to the demuxer stream that will feed us compressed buffers. 159 // Pointer to the demuxer stream that will feed us compressed buffers.
158 scoped_refptr<DemuxerStream> demuxer_stream_; 160 scoped_refptr<DemuxerStream> demuxer_stream_;
159 161
160 // This is !is_null() iff Initialize() hasn't been called. 162 // This is !is_null() iff Initialize() hasn't been called.
161 MessageLoopFactoryCB message_loop_factory_cb_; 163 MessageLoopFactoryCB message_loop_factory_cb_;
162 164
163 // MessageLoop on which to fire callbacks and trampoline calls to this class 165 // MessageLoop on which to fire callbacks and trampoline calls to this class
164 // if they arrive on other loops. 166 // if they arrive on other loops.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 225
224 // Indicates decoding error occurred. 226 // Indicates decoding error occurred.
225 bool error_occured_; 227 bool error_occured_;
226 228
227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 229 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
228 }; 230 };
229 231
230 } // namespace media 232 } // namespace media
231 233
232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 234 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/gpu_video_decoder.cc » ('j') | media/filters/gpu_video_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698