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

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

Issue 9155003: Fix media timeline so that thumb never exceeds buffered data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
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 18 matching lines...) Expand all
29 // Stops execution of the pipeline due to a fatal error. Do not call this 29 // Stops execution of the pipeline due to a fatal error. Do not call this
30 // method with PIPELINE_OK. 30 // method with PIPELINE_OK.
31 virtual void SetError(PipelineStatus error) = 0; 31 virtual void SetError(PipelineStatus error) = 0;
32 32
33 // Gets the current time. 33 // Gets the current time.
34 virtual base::TimeDelta GetTime() const = 0; 34 virtual base::TimeDelta GetTime() const = 0;
35 35
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 // Updates the current time. Other filters should poll to examine the updated
40 // time.
41 virtual void SetTime(base::TimeDelta time) = 0;
42
43 // Sets the natural size of the video output in pixel units. 39 // Sets the natural size of the video output in pixel units.
44 virtual void SetNaturalVideoSize(const gfx::Size& size) = 0; 40 virtual void SetNaturalVideoSize(const gfx::Size& size) = 0;
45 41
46 // 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
47 // endpoints such as renderers. 43 // endpoints such as renderers.
48 virtual void NotifyEnded() = 0; 44 virtual void NotifyEnded() = 0;
49 45
50 // Disable audio renderer by calling OnAudioRendererDisabled() on all 46 // Disable audio renderer by calling OnAudioRendererDisabled() on all
51 // filters. 47 // filters.
52 virtual void DisableAudioRenderer() = 0; 48 virtual void DisableAudioRenderer() = 0;
53 49
54 protected: 50 protected:
55 virtual ~FilterHost() {} 51 virtual ~FilterHost() {}
56 }; 52 };
57 53
58 } // namespace media 54 } // namespace media
59 55
60 #endif // MEDIA_BASE_FILTER_HOST_H_ 56 #endif // MEDIA_BASE_FILTER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698