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

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

Issue 1027553002: Change the TimeSource interface to return wallclock time for video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove underflow changes. Created 5 years, 9 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/audio_renderer_impl.cc ('k') | media/renderers/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 private: 68 private:
69 enum State { 69 enum State {
70 STATE_UNINITIALIZED, 70 STATE_UNINITIALIZED,
71 STATE_INITIALIZING, 71 STATE_INITIALIZING,
72 STATE_FLUSHING, 72 STATE_FLUSHING,
73 STATE_PLAYING, 73 STATE_PLAYING,
74 STATE_ERROR 74 STATE_ERROR
75 }; 75 };
76 76
77 base::TimeDelta GetMediaTimeForSyncingVideo(); 77 base::TimeTicks GetWallClockTime(base::TimeDelta time);
78 78
79 // Requests that this object notifies when a decryptor is ready through the 79 // Requests that this object notifies when a decryptor is ready through the
80 // |decryptor_ready_cb| provided. 80 // |decryptor_ready_cb| provided.
81 // If |decryptor_ready_cb| is null, the existing callback will be fired with 81 // If |decryptor_ready_cb| is null, the existing callback will be fired with
82 // nullptr immediately and reset. 82 // nullptr immediately and reset.
83 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb); 83 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb);
84 84
85 // Helper functions and callbacks for Initialize(). 85 // Helper functions and callbacks for Initialize().
86 void InitializeAudioRenderer(); 86 void InitializeAudioRenderer();
87 void OnAudioRendererInitializeDone(PipelineStatus status); 87 void OnAudioRendererInitializeDone(PipelineStatus status);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 base::WeakPtr<RendererImpl> weak_this_; 174 base::WeakPtr<RendererImpl> weak_this_;
175 base::WeakPtrFactory<RendererImpl> weak_factory_; 175 base::WeakPtrFactory<RendererImpl> weak_factory_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(RendererImpl); 177 DISALLOW_COPY_AND_ASSIGN(RendererImpl);
178 }; 178 };
179 179
180 } // namespace media 180 } // namespace media
181 181
182 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ 182 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/renderers/audio_renderer_impl.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698