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"
13 class DefaultVideoPlane
: public VideoPlane
{
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;
32 void CastMediaShlib::Initialize(const std::vector
<std::string
>& argv
) {
33 g_video_plane
= new DefaultVideoPlane();
36 void CastMediaShlib::Finalize() {
38 g_video_plane
= nullptr;
41 VideoPlane
* CastMediaShlib::GetVideoPlane() {
46 } // namespace chromecast