Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: chromecast/graphics/cast_egl_platform_default.cc

Issue 1059073002: Loads CastEglPlatform implementation from shared library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add myself to OWNERS for cast ozone platform. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/graphics/DEPS ('k') | chromecast/ozone/cast_egl_platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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"
6
7 namespace chromecast {
8 namespace {
9
10 // Default/stub CastEglPlatform implementation so that we can link
11 // successfully.
12 class EglPlatformDefault : public CastEglPlatform {
13 public:
14 ~EglPlatformDefault() override {}
15 Size GetDefaultDisplaySize() const override { return Size(1, 1); }
16 const int* GetEGLSurfaceProperties(const int* desired) override {
17 return desired;
18 }
19 bool InitializeHardware() override { return true; }
20 void ShutdownHardware() override {}
21 void* GetEglLibrary() override { return nullptr; }
22 void* GetGles2Library() override { return nullptr; }
23 GLGetProcAddressProc GetGLProcAddressProc() override { return nullptr; }
24 NativeDisplayType CreateDisplayType(const Size& size) override {
25 return nullptr;
26 }
27 void DestroyDisplayType(NativeDisplayType display_type) override {}
28 NativeWindowType CreateWindow(NativeDisplayType display_type,
29 const Size& size) override {
30 return nullptr;
31 }
32 void DestroyWindow(NativeWindowType window) override {}
33 };
34
35 } // namespace
36
37 CastEglPlatform*
38 CastEglPlatformShlib::Create(const std::vector<std::string>& argv) {
39 return new EglPlatformDefault();
40 }
41
42 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/graphics/DEPS ('k') | chromecast/ozone/cast_egl_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698