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

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 std::map<base::TimeDelta, int32> bitstream_buffers_in_decoder_; 197 std::map<base::TimeDelta, int32> bitstream_buffers_in_decoder_;
198 198
199 // Keeps track of bitstream ids notified to the client with 199 // Keeps track of bitstream ids notified to the client with
200 // NotifyEndOfBitstreamBuffer() before getting output from the bitstream. 200 // NotifyEndOfBitstreamBuffer() before getting output from the bitstream.
201 std::list<int32> bitstreams_notified_in_advance_; 201 std::list<int32> bitstreams_notified_in_advance_;
202 202
203 // Owner of the GL context. Used to restore the context state. 203 // Owner of the GL context. Used to restore the context state.
204 base::WeakPtr<gpu::gles2::GLES2Decoder> gl_decoder_; 204 base::WeakPtr<gpu::gles2::GLES2Decoder> gl_decoder_;
205 205
206 // Repeating timer responsible for draining pending IO to the codec. 206 // Repeating timer responsible for draining pending IO to the codec.
207 base::RepeatingTimer<AndroidVideoDecodeAccelerator> io_timer_; 207 base::RepeatingTimer io_timer_;
208 208
209 // Backing strategy that we'll use to connect PictureBuffers to frames. 209 // Backing strategy that we'll use to connect PictureBuffers to frames.
210 scoped_ptr<BackingStrategy> strategy_; 210 scoped_ptr<BackingStrategy> strategy_;
211 211
212 // WeakPtrFactory for posting tasks back to |this|. 212 // WeakPtrFactory for posting tasks back to |this|.
213 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 213 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
214 214
215 friend class AndroidVideoDecodeAcceleratorTest; 215 friend class AndroidVideoDecodeAcceleratorTest;
216 }; 216 };
217 217
218 } // namespace content 218 } // namespace content
219 219
220 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 220 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/media/android_video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698