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_ |