Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / chromecast / media / base / cast_media_default.cc
blob0c177126ad6b3c9679001e20d3692bac941821b8
1 // Copyright 2015 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.
5 #include "chromecast/public/cast_media_shlib.h"
6 #include "chromecast/public/graphics_types.h"
7 #include "chromecast/public/video_plane.h"
9 namespace chromecast {
10 namespace media {
11 namespace {
13 class DefaultVideoPlane : public VideoPlane {
14 public:
15 ~DefaultVideoPlane() override {}
17 Size GetScreenResolution() override {
18 return Size(1920, 1080);
21 void SetGeometry(const RectF& display_rect,
22 CoordinateType coordinate_type,
23 Transform transform) override {}
25 void OnScreenResolutionChanged(const Size& screen_res) override {}
28 DefaultVideoPlane* g_video_plane = nullptr;
30 } // namespace
32 void CastMediaShlib::Initialize(const std::vector<std::string>& argv) {
33 g_video_plane = new DefaultVideoPlane();
36 void CastMediaShlib::Finalize() {
37 delete g_video_plane;
38 g_video_plane = nullptr;
41 VideoPlane* CastMediaShlib::GetVideoPlane() {
42 return g_video_plane;
45 } // namespace media
46 } // namespace chromecast