OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_GPU_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_ | |
6 #define MEDIA_GPU_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_ | |
7 | |
8 #include "media/base/android/android_overlay_factory.h" | |
9 | |
10 namespace media { | |
11 | |
12 // Factory for CVV-based overlays. One needs this only to hide the factory | |
13 // impl from AVDA. | |
14 class ContentVideoViewOverlayFactory : public AndroidOverlayFactory { | |
watk
2017/05/02 21:00:01
I may be missing something, but it looks like this
liberato (no reviews please)
2017/05/02 21:50:05
per offline discussion, this is an interesting ide
| |
15 public: | |
16 // |surface_id| must not be kNoSurfaceID. | |
17 ContentVideoViewOverlayFactory(int32_t surface_id); | |
18 ~ContentVideoViewOverlayFactory() override; | |
19 | |
20 std::unique_ptr<AndroidOverlay> CreateOverlay( | |
21 const AndroidOverlay::Config& config) override; | |
22 | |
23 private: | |
24 int32_t surface_id_; | |
25 | |
26 DISALLOW_COPY_AND_ASSIGN(ContentVideoViewOverlayFactory); | |
27 }; | |
28 | |
29 } // namespace media | |
30 | |
31 #endif // MEDIA_GPU_ANDROID_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_ | |
OLD | NEW |