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

Unified Diff: media/base/filter_host.h

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: GetMediaTime Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/filter_collection.h ('k') | media/base/filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filter_host.h
diff --git a/media/base/filter_host.h b/media/base/filter_host.h
deleted file mode 100644
index 81f1d01efc57ce7f2f47d545a571a6c11f7b72b7..0000000000000000000000000000000000000000
--- a/media/base/filter_host.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// FilterHost describes an interface for individual filters to access and
-// modify global playback information. Every filter is given a filter host
-// reference as part of initialization.
-//
-// This interface is intentionally verbose to cover the needs for the different
-// types of filters (see media/base/filters.h for filter definitions). Filters
-// typically use parts of the interface that are relevant to their function.
-// For example, an audio renderer filter typically calls SetTime as it feeds
-// data to the audio hardware. A video renderer filter typically calls GetTime
-// to synchronize video with audio. An audio and video decoder would typically
-// have no need to call either SetTime or GetTime.
-
-#ifndef MEDIA_BASE_FILTER_HOST_H_
-#define MEDIA_BASE_FILTER_HOST_H_
-
-#include "base/time.h"
-#include "media/base/media_export.h"
-#include "media/base/pipeline_status.h"
-#include "ui/gfx/size.h"
-
-namespace media {
-
-class MEDIA_EXPORT FilterHost {
- public:
- // Stops execution of the pipeline due to a fatal error. Do not call this
- // method with PIPELINE_OK.
- virtual void SetError(PipelineStatus error) = 0;
-
- // Gets the current time.
- virtual base::TimeDelta GetTime() const = 0;
-
- // Gets the duration.
- virtual base::TimeDelta GetDuration() const = 0;
-
- // Sets the natural size of the video output in pixel units.
- virtual void SetNaturalVideoSize(const gfx::Size& size) = 0;
-
- // Notifies that this filter has ended, typically only called by filter graph
- // endpoints such as renderers.
- virtual void NotifyEnded() = 0;
-
- protected:
- virtual ~FilterHost() {}
-};
-
-} // namespace media
-
-#endif // MEDIA_BASE_FILTER_HOST_H_
« no previous file with comments | « media/base/filter_collection.h ('k') | media/base/filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698