OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file implements the ViewGLContext and PbufferGLContext classes. | 5 // This file implements the ViewGLContext and PbufferGLContext classes. |
6 | 6 |
7 #include <OpenGL/OpenGL.h> | 7 #include <OpenGL/OpenGL.h> |
8 | 8 |
9 #include "app/surface/accelerated_surface_mac.h" | |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
11 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
12 #include "app/gfx/gl/gl_bindings.h" | 11 #include "app/gfx/gl/gl_bindings.h" |
13 #include "app/gfx/gl/gl_context.h" | 12 #include "app/gfx/gl/gl_context.h" |
14 #include "app/gfx/gl/gl_context_stub.h" | 13 #include "app/gfx/gl/gl_context_stub.h" |
15 #include "app/gfx/gl/gl_implementation.h" | 14 #include "app/gfx/gl/gl_implementation.h" |
16 | 15 |
17 namespace gfx { | 16 namespace gfx { |
18 | 17 |
19 typedef CGLContextObj GLContextHandle; | 18 typedef CGLContextObj GLContextHandle; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 175 } |
177 case kGLImplementationMockGL: | 176 case kGLImplementationMockGL: |
178 return new StubGLContext; | 177 return new StubGLContext; |
179 default: | 178 default: |
180 NOTREACHED(); | 179 NOTREACHED(); |
181 return NULL; | 180 return NULL; |
182 } | 181 } |
183 } | 182 } |
184 | 183 |
185 } // namespace gfx | 184 } // namespace gfx |
OLD | NEW |