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

Unified Diff: chromecast/ui/gl/gl_surface_cast.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an additional function in gl_surface_cast.cc Created 6 years, 9 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
Index: chromecast/ui/gl/gl_surface_cast.cc
diff --git a/chromecast/ui/gl/gl_surface_cast.cc b/chromecast/ui/gl/gl_surface_cast.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ff78d383ca1e4a7c31ab5ff18e24958a98507a89
--- /dev/null
+++ b/chromecast/ui/gl/gl_surface_cast.cc
@@ -0,0 +1,41 @@
+// Copyright (c) 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 "ui/gl/gl_surface.h"
+
+#include "third_party/khronos/EGL/egl.h"
+#include "ui/gl/gl_implementation.h"
+#include "ui/gl/gl_surface_stub.h"
+
+namespace gfx {
+
+bool GLSurface::InitializeOneOffInternal() {
+ return false;
+}
+
+scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
+ gfx::AcceleratedWidget window) {
+ switch (GetGLImplementation()) {
+ case kGLImplementationMockGL:
+ return new GLSurfaceStub;
+ default:
+ return NULL;
+ }
+}
+
+scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
+ const gfx::Size& size) {
+ switch (GetGLImplementation()) {
+ case kGLImplementationMockGL:
+ return new GLSurfaceStub;
+ default:
+ return NULL;
+ }
+}
+
+EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() {
+ return EGL_DEFAULT_DISPLAY;
+}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698