OLD | NEW |
(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 |
OLD | NEW |