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

Side by Side Diff: media/renderers/video_renderer_impl.h

Issue 2372863002: Rename VideoRenderer::OnTimeStateChanged to OnTime{Progressing,Stopped} (Closed)
Patch Set: suggestion Created 4 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
« no previous file with comments | « media/renderers/renderer_impl_unittest.cc ('k') | media/renderers/video_renderer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ~VideoRendererImpl() override; 63 ~VideoRendererImpl() override;
64 64
65 // VideoRenderer implementation. 65 // VideoRenderer implementation.
66 void Initialize(DemuxerStream* stream, 66 void Initialize(DemuxerStream* stream,
67 CdmContext* cdm_context, 67 CdmContext* cdm_context,
68 RendererClient* client, 68 RendererClient* client,
69 const TimeSource::WallClockTimeCB& wall_clock_time_cb, 69 const TimeSource::WallClockTimeCB& wall_clock_time_cb,
70 const PipelineStatusCB& init_cb) override; 70 const PipelineStatusCB& init_cb) override;
71 void Flush(const base::Closure& callback) override; 71 void Flush(const base::Closure& callback) override;
72 void StartPlayingFrom(base::TimeDelta timestamp) override; 72 void StartPlayingFrom(base::TimeDelta timestamp) override;
73 void OnTimeStateChanged(bool time_progressing) override; 73 void OnTimeProgressing() override;
74 void OnTimeStopped() override;
74 75
75 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock); 76 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock);
76 void SetGpuMemoryBufferVideoForTesting( 77 void SetGpuMemoryBufferVideoForTesting(
77 std::unique_ptr<GpuMemoryBufferVideoFramePool> gpu_memory_buffer_pool); 78 std::unique_ptr<GpuMemoryBufferVideoFramePool> gpu_memory_buffer_pool);
78 size_t frames_queued_for_testing() const { 79 size_t frames_queued_for_testing() const {
79 return algorithm_->frames_queued(); 80 return algorithm_->frames_queued();
80 } 81 }
81 82
82 // VideoRendererSink::RenderCallback implementation. 83 // VideoRendererSink::RenderCallback implementation.
83 scoped_refptr<VideoFrame> Render(base::TimeTicks deadline_min, 84 scoped_refptr<VideoFrame> Render(base::TimeTicks deadline_min,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // want to discard video frames that might be received after the stream has 294 // want to discard video frames that might be received after the stream has
294 // been reset. 295 // been reset.
295 base::WeakPtrFactory<VideoRendererImpl> frame_callback_weak_factory_; 296 base::WeakPtrFactory<VideoRendererImpl> frame_callback_weak_factory_;
296 297
297 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); 298 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl);
298 }; 299 };
299 300
300 } // namespace media 301 } // namespace media
301 302
302 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 303 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/renderers/renderer_impl_unittest.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698