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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/graphics/DEPS ('k') | chromecast/ozone/cast_egl_platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_egl_platform_default.cc
diff --git a/chromecast/graphics/cast_egl_platform_default.cc b/chromecast/graphics/cast_egl_platform_default.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6142d14cf33359415050852134f5b5f007078392
--- /dev/null
+++ b/chromecast/graphics/cast_egl_platform_default.cc
@@ -0,0 +1,42 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#include "chromecast/public/cast_egl_platform.h"
+#include "chromecast/public/cast_egl_platform_shlib.h"
+
+namespace chromecast {
+namespace {
+
+// Default/stub CastEglPlatform implementation so that we can link
+// successfully.
+class EglPlatformDefault : public CastEglPlatform {
+ public:
+ ~EglPlatformDefault() override {}
+ Size GetDefaultDisplaySize() const override { return Size(1, 1); }
+ const int* GetEGLSurfaceProperties(const int* desired) override {
+ return desired;
+ }
+ bool InitializeHardware() override { return true; }
+ void ShutdownHardware() override {}
+ void* GetEglLibrary() override { return nullptr; }
+ void* GetGles2Library() override { return nullptr; }
+ GLGetProcAddressProc GetGLProcAddressProc() override { return nullptr; }
+ NativeDisplayType CreateDisplayType(const Size& size) override {
+ return nullptr;
+ }
+ void DestroyDisplayType(NativeDisplayType display_type) override {}
+ NativeWindowType CreateWindow(NativeDisplayType display_type,
+ const Size& size) override {
+ return nullptr;
+ }
+ void DestroyWindow(NativeWindowType window) override {}
+};
+
+} // namespace
+
+CastEglPlatform*
+CastEglPlatformShlib::Create(const std::vector<std::string>& argv) {
+ return new EglPlatformDefault();
+}
+
+} // namespace chromecast
« 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