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_osmesa.h" |
| 6 |
5 #include <GL/osmesa.h> | 7 #include <GL/osmesa.h> |
6 | 8 |
7 #include "ui/gfx/gl/gl_context_osmesa.h" | |
8 | |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ui/gfx/gl/gl_bindings.h" | |
11 #include "ui/gfx/gl/gl_surface.h" | |
12 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
| 11 #include "ui/gl/gl_bindings.h" |
| 12 #include "ui/gl/gl_surface.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 GLContextOSMesa::GLContextOSMesa(GLShareGroup* share_group) | 16 GLContextOSMesa::GLContextOSMesa(GLShareGroup* share_group) |
17 : GLContext(share_group), | 17 : GLContext(share_group), |
18 context_(NULL) { | 18 context_(NULL) { |
19 } | 19 } |
20 | 20 |
21 bool GLContextOSMesa::Initialize(GLSurface* compatible_surface, | 21 bool GLContextOSMesa::Initialize(GLSurface* compatible_surface, |
22 GpuPreference gpu_preference) { | 22 GpuPreference gpu_preference) { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 void GLContextOSMesa::SetSwapInterval(int interval) { | 121 void GLContextOSMesa::SetSwapInterval(int interval) { |
122 DCHECK(IsCurrent(NULL)); | 122 DCHECK(IsCurrent(NULL)); |
123 LOG(WARNING) << "GLContextOSMesa::SetSwapInterval is ignored."; | 123 LOG(WARNING) << "GLContextOSMesa::SetSwapInterval is ignored."; |
124 } | 124 } |
125 | 125 |
126 GLContextOSMesa::~GLContextOSMesa() { | 126 GLContextOSMesa::~GLContextOSMesa() { |
127 Destroy(); | 127 Destroy(); |
128 } | 128 } |
129 | 129 |
130 } // namespace gfx | 130 } // namespace gfx |
OLD | NEW |