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

Side by Side Diff: media/base/renderer.h

Issue 2541803003: media: remove unused functions: Renderer::HasAudio()/HasVideo() (Closed)
Patch Set: cast Created 4 years 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/pipeline_impl_unittest.cc ('k') | media/mojo/clients/mojo_renderer.h » ('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_BASE_RENDERER_H_ 5 #ifndef MEDIA_BASE_RENDERER_H_
6 #define MEDIA_BASE_RENDERER_H_ 6 #define MEDIA_BASE_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Updates the current playback rate. The default playback rate should be 0. 51 // Updates the current playback rate. The default playback rate should be 0.
52 virtual void SetPlaybackRate(double playback_rate) = 0; 52 virtual void SetPlaybackRate(double playback_rate) = 0;
53 53
54 // Sets the output volume. The default volume should be 1. 54 // Sets the output volume. The default volume should be 1.
55 virtual void SetVolume(float volume) = 0; 55 virtual void SetVolume(float volume) = 0;
56 56
57 // Returns the current media time. 57 // Returns the current media time.
58 virtual base::TimeDelta GetMediaTime() = 0; 58 virtual base::TimeDelta GetMediaTime() = 0;
59 59
60 // Returns whether |this| renders audio.
61 virtual bool HasAudio() = 0;
62
63 // Returns whether |this| renders video.
64 virtual bool HasVideo() = 0;
65
66 private: 60 private:
67 DISALLOW_COPY_AND_ASSIGN(Renderer); 61 DISALLOW_COPY_AND_ASSIGN(Renderer);
68 }; 62 };
69 63
70 } // namespace media 64 } // namespace media
71 65
72 #endif // MEDIA_BASE_RENDERER_H_ 66 #endif // MEDIA_BASE_RENDERER_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl_unittest.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698