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_egl.h" | 5 #include "ui/gl/gl_context_egl.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
12 #include "third_party/khronos/EGL/egl.h" | 13 #include "third_party/khronos/EGL/egl.h" |
13 #include "third_party/khronos/EGL/eglext.h" | 14 #include "third_party/khronos/EGL/eglext.h" |
14 #include "ui/gl/egl_util.h" | 15 #include "ui/gl/egl_util.h" |
15 #include "ui/gl/gl_bindings.h" | 16 #include "ui/gl/gl_bindings.h" |
16 #include "ui/gl/gl_surface_egl.h" | 17 #include "ui/gl/gl_surface_egl.h" |
17 | 18 |
18 #if defined(USE_X11) | 19 #if defined(USE_X11) |
19 extern "C" { | 20 extern "C" { |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 218 |
218 bool GLContextEGL::WasAllocatedUsingRobustnessExtension() { | 219 bool GLContextEGL::WasAllocatedUsingRobustnessExtension() { |
219 return GLSurfaceEGL::IsCreateContextRobustnessSupported(); | 220 return GLSurfaceEGL::IsCreateContextRobustnessSupported(); |
220 } | 221 } |
221 | 222 |
222 GLContextEGL::~GLContextEGL() { | 223 GLContextEGL::~GLContextEGL() { |
223 Destroy(); | 224 Destroy(); |
224 } | 225 } |
225 | 226 |
226 } // namespace gfx | 227 } // namespace gfx |
OLD | NEW |