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

Side by Side 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, 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
OLDNEW
(Empty)
1 // Copyright (c) 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
5 #include "ui/gl/gl_context.h"
6
7 #include "ui/gl/gl_context_stub.h"
8 #include "ui/gl/gl_implementation.h"
9
10 namespace gfx {
11
12 scoped_refptr<GLContext> GLContext::CreateGLContext(
13 GLShareGroup* share_group,
14 GLSurface* compatible_surface,
15 GpuPreference gpu_preference) {
16 switch (GetGLImplementation()) {
17 case kGLImplementationMockGL:
18 return new GLContextStub;
19 default:
20 return NULL;
21 }
22 }
23
24 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698