| OLD | NEW |
| 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 // FilterHost describes an interface for individual filters to access and | 5 // FilterHost describes an interface for individual filters to access and |
| 6 // modify global playback information. Every filter is given a filter host | 6 // modify global playback information. Every filter is given a filter host |
| 7 // reference as part of initialization. | 7 // reference as part of initialization. |
| 8 // | 8 // |
| 9 // This interface is intentionally verbose to cover the needs for the different | 9 // This interface is intentionally verbose to cover the needs for the different |
| 10 // types of filters (see media/base/filters.h for filter definitions). Filters | 10 // types of filters (see media/base/filters.h for filter definitions). Filters |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // Gets the duration. | 36 // Gets the duration. |
| 37 virtual base::TimeDelta GetDuration() const = 0; | 37 virtual base::TimeDelta GetDuration() const = 0; |
| 38 | 38 |
| 39 // Sets the natural size of the video output in pixel units. | 39 // Sets the natural size of the video output in pixel units. |
| 40 virtual void SetNaturalVideoSize(const gfx::Size& size) = 0; | 40 virtual void SetNaturalVideoSize(const gfx::Size& size) = 0; |
| 41 | 41 |
| 42 // Notifies that this filter has ended, typically only called by filter graph | 42 // Notifies that this filter has ended, typically only called by filter graph |
| 43 // endpoints such as renderers. | 43 // endpoints such as renderers. |
| 44 virtual void NotifyEnded() = 0; | 44 virtual void NotifyEnded() = 0; |
| 45 | 45 |
| 46 // Disable audio renderer by calling OnAudioRendererDisabled() on all | |
| 47 // filters. | |
| 48 virtual void DisableAudioRenderer() = 0; | |
| 49 | |
| 50 protected: | 46 protected: |
| 51 virtual ~FilterHost() {} | 47 virtual ~FilterHost() {} |
| 52 }; | 48 }; |
| 53 | 49 |
| 54 } // namespace media | 50 } // namespace media |
| 55 | 51 |
| 56 #endif // MEDIA_BASE_FILTER_HOST_H_ | 52 #endif // MEDIA_BASE_FILTER_HOST_H_ |
| OLD | NEW |