OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NativeViewGLContext and PbufferGLContext classes. | 5 // This file implements the NativeViewGLContext and PbufferGLContext classes. |
6 | 6 |
7 #include "app/gfx/gl/gl_context.h" | 7 #include "ui/gfx/gl/gl_context.h" |
8 | 8 |
9 #include <GL/osmesa.h> | 9 #include <GL/osmesa.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "app/gfx/gl/gl_bindings.h" | |
14 #include "app/gfx/gl/gl_context_egl.h" | |
15 #include "app/gfx/gl/gl_context_osmesa.h" | |
16 #include "app/gfx/gl/gl_context_stub.h" | |
17 #include "app/gfx/gl/gl_implementation.h" | |
18 | |
19 #include "base/logging.h" | 13 #include "base/logging.h" |
20 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "ui/gfx/gl/gl_bindings.h" |
| 16 #include "ui/gfx/gl/gl_context_egl.h" |
| 17 #include "ui/gfx/gl/gl_context_osmesa.h" |
| 18 #include "ui/gfx/gl/gl_context_stub.h" |
| 19 #include "ui/gfx/gl/gl_implementation.h" |
21 | 20 |
22 namespace gfx { | 21 namespace gfx { |
23 | 22 |
24 typedef HGLRC GLContextHandle; | 23 typedef HGLRC GLContextHandle; |
25 typedef HPBUFFERARB PbufferHandle; | 24 typedef HPBUFFERARB PbufferHandle; |
26 | 25 |
27 class BaseWinGLContext : public GLContext { | 26 class BaseWinGLContext : public GLContext { |
28 public: | 27 public: |
29 virtual std::string GetExtensions(); | 28 virtual std::string GetExtensions(); |
30 | 29 |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } | 734 } |
736 case kGLImplementationMockGL: | 735 case kGLImplementationMockGL: |
737 return new StubGLContext; | 736 return new StubGLContext; |
738 default: | 737 default: |
739 NOTREACHED(); | 738 NOTREACHED(); |
740 return NULL; | 739 return NULL; |
741 } | 740 } |
742 } | 741 } |
743 | 742 |
744 } // namespace gfx | 743 } // namespace gfx |
OLD | NEW |