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 extern "C" { | 5 extern "C" { |
6 #include <X11/Xlib.h> | 6 #include <X11/Xlib.h> |
7 } | 7 } |
8 | 8 |
9 #include "ui/gl/gl_surface_glx.h" | 9 #include "ui/gl/gl_surface_glx.h" |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/synchronization/cancellation_flag.h" | 18 #include "base/synchronization/cancellation_flag.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
21 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "third_party/mesa/src/include/GL/osmesa.h" | |
24 #include "ui/events/platform/platform_event_source.h" | 23 #include "ui/events/platform/platform_event_source.h" |
25 #include "ui/gfx/x/x11_connection.h" | 24 #include "ui/gfx/x/x11_connection.h" |
26 #include "ui/gfx/x/x11_types.h" | 25 #include "ui/gfx/x/x11_types.h" |
27 #include "ui/gl/gl_bindings.h" | 26 #include "ui/gl/gl_bindings.h" |
28 #include "ui/gl/gl_implementation.h" | 27 #include "ui/gl/gl_implementation.h" |
29 #include "ui/gl/sync_control_vsync_provider.h" | 28 #include "ui/gl/sync_control_vsync_provider.h" |
30 | 29 |
31 namespace gfx { | 30 namespace gfx { |
32 | 31 |
33 namespace { | 32 namespace { |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 | 664 |
666 void* PbufferGLSurfaceGLX::GetConfig() { | 665 void* PbufferGLSurfaceGLX::GetConfig() { |
667 return config_; | 666 return config_; |
668 } | 667 } |
669 | 668 |
670 PbufferGLSurfaceGLX::~PbufferGLSurfaceGLX() { | 669 PbufferGLSurfaceGLX::~PbufferGLSurfaceGLX() { |
671 Destroy(); | 670 Destroy(); |
672 } | 671 } |
673 | 672 |
674 } // namespace gfx | 673 } // namespace gfx |
OLD | NEW |