| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gl/gl_context.h" | 5 #include "ui/gl/gl_context.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 return context; | 42 return context; |
| 43 } | 43 } |
| 44 case kGLImplementationDesktopGL: { | 44 case kGLImplementationDesktopGL: { |
| 45 scoped_refptr<GLContext> context(new GLContextWGL(share_group)); | 45 scoped_refptr<GLContext> context(new GLContextWGL(share_group)); |
| 46 if (!context->Initialize(compatible_surface, gpu_preference)) | 46 if (!context->Initialize(compatible_surface, gpu_preference)) |
| 47 return nullptr; | 47 return nullptr; |
| 48 | 48 |
| 49 return context; | 49 return context; |
| 50 } | 50 } |
| 51 case kGLImplementationMockGL: | 51 case kGLImplementationMockGL: |
| 52 return new GLContextStub; | 52 return new GLContextStub(share_group); |
| 53 default: | 53 default: |
| 54 NOTREACHED(); | 54 NOTREACHED(); |
| 55 return nullptr; | 55 return nullptr; |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace gfx | 59 } // namespace gfx |
| OLD | NEW |