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

Unified Diff: media/gpu/content_video_view_overlay_factory.h

Issue 2813303003: Add AndroidVideoSurfaceChooser to manage overlays. (Closed)
Patch Set: gn fixes for non-android Created 3 years, 8 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
Index: media/gpu/content_video_view_overlay_factory.h
diff --git a/media/gpu/content_video_view_overlay_factory.h b/media/gpu/content_video_view_overlay_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f22af8a076cb2f3da31c9bcd0c6f01411811e04d
--- /dev/null
+++ b/media/gpu/content_video_view_overlay_factory.h
@@ -0,0 +1,29 @@
+// Copyright 2017 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.
+
+#ifndef MEDIA_GPU_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_
+#define MEDIA_GPU_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_
+
+#include "media/base/android/android_overlay_factory.h"
+
+namespace media {
+
+// Factory for CVV-based overlays. One needs this only to hide the factory
+// impl from AVDA.
+class ContentVideoViewOverlayFactory : public AndroidOverlayFactory {
+ public:
+ // |surface_id| must not be kNoSurfaceID.
+ ContentVideoViewOverlayFactory(int32_t surface_id);
+ ~ContentVideoViewOverlayFactory() override;
+
+ std::unique_ptr<AndroidOverlay> CreateOverlay(
+ const AndroidOverlay::Config& config) override;
+
+ private:
+ int32_t surface_id_;
+};
DaleCurtis 2017/04/20 19:10:43 DISALLOWL...
liberato (no reviews please) 2017/04/20 22:01:39 Done.
+
+} // namespace media
+
+#endif // MEDIA_GPU_ANDROID_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698