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

Unified Diff: chromecast/ui/gl/gl_context_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_context_cast.cc
diff --git a/chromecast/ui/gl/gl_context_cast.cc b/chromecast/ui/gl/gl_context_cast.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c6c6d850cd917645142dcbab185d612bdbf6acc2
--- /dev/null
+++ b/chromecast/ui/gl/gl_context_cast.cc
@@ -0,0 +1,24 @@
+// 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_context.h"
+
+#include "ui/gl/gl_context_stub.h"
+#include "ui/gl/gl_implementation.h"
+
+namespace gfx {
+
+scoped_refptr<GLContext> GLContext::CreateGLContext(
+ GLShareGroup* share_group,
+ GLSurface* compatible_surface,
+ GpuPreference gpu_preference) {
+ switch (GetGLImplementation()) {
+ case kGLImplementationMockGL:
+ return new GLContextStub;
+ default:
+ return NULL;
+ }
+}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698