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

Unified Diff: media/gpu/content_video_view_overlay_factory.h

Issue 2813303003: Add AndroidVideoSurfaceChooser to manage overlays. (Closed)
Patch Set: fixed dereference of base::Optional 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
« no previous file with comments | « media/gpu/avda_surface_bundle.cc ('k') | media/gpu/content_video_view_overlay_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a8db4950ac69b0a17051d1574fdebb032870ee12
--- /dev/null
+++ b/media/gpu/content_video_view_overlay_factory.h
@@ -0,0 +1,31 @@
+// 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_;
+
+ DISALLOW_COPY_AND_ASSIGN(ContentVideoViewOverlayFactory);
+};
+
+} // namespace media
+
+#endif // MEDIA_GPU_ANDROID_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_
« no previous file with comments | « media/gpu/avda_surface_bundle.cc ('k') | media/gpu/content_video_view_overlay_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698