1 // Copyright 2014 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 #include "chromecast/public/cast_egl_platform.h"
5 #include "chromecast/public/cast_egl_platform_shlib.h"
10 // Default/stub CastEglPlatform implementation so that we can link
12 class EglPlatformDefault
: public CastEglPlatform
{
14 ~EglPlatformDefault() override
{}
15 const int* GetEGLSurfaceProperties(const int* desired
) override
{
18 bool InitializeHardware() override
{ return true; }
19 void ShutdownHardware() override
{}
20 void* GetEglLibrary() override
{ return nullptr; }
21 void* GetGles2Library() override
{ return nullptr; }
22 GLGetProcAddressProc
GetGLProcAddressProc() override
{ return nullptr; }
23 NativeDisplayType
CreateDisplayType(const Size
& size
) override
{
26 void DestroyDisplayType(NativeDisplayType display_type
) override
{}
27 NativeWindowType
CreateWindow(NativeDisplayType display_type
,
28 const Size
& size
) override
{
31 void DestroyWindow(NativeWindowType window
) override
{}
36 CastEglPlatform
* CastEglPlatformShlib::Create(
37 const std::vector
<std::string
>& argv
) {
38 return new EglPlatformDefault();
41 } // namespace chromecast