Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(957)

Side by Side Diff: content/common/gpu/image_transport_surface_linux.cc

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/common/gpu/image_transport_surface.h" 5 #include "content/common/gpu/image_transport_surface.h"
6 6
7 // This conflicts with the defines in Xlib.h and must come first. 7 // This conflicts with the defines in Xlib.h and must come first.
8 #include "content/common/gpu/gpu_messages.h" 8 #include "content/common/gpu/gpu_messages.h"
9 9
10 #include <X11/Xlib.h>
11 #include <X11/extensions/Xcomposite.h>
10 #include <map> 12 #include <map>
11 #include <vector> 13 #include <vector>
12 #include <X11/Xlib.h>
13 #include <X11/extensions/Xcomposite.h>
14 14
15 // Note: these must be included before anything that includes gl_bindings.h 15 // Note: these must be included before anything that includes gl_bindings.h
16 // They're effectively standard library headers. 16 // They're effectively standard library headers.
17 #include "third_party/khronos/EGL/egl.h" 17 #include "third_party/khronos/EGL/egl.h"
18 #include "third_party/khronos/EGL/eglext.h" 18 #include "third_party/khronos/EGL/eglext.h"
19 #include "third_party/mesa/MesaLib/include/GL/osmesa.h" 19 #include "third_party/mesa/MesaLib/include/GL/osmesa.h"
20 20
21 #include "base/bind.h" 21 #include "base/bind.h"
22 #include "base/debug/trace_event.h"
22 #include "base/memory/weak_ptr.h" 23 #include "base/memory/weak_ptr.h"
23 #include "base/debug/trace_event.h"
24 #include "content/common/gpu/gpu_channel.h" 24 #include "content/common/gpu/gpu_channel.h"
25 #include "content/common/gpu/gpu_channel_manager.h" 25 #include "content/common/gpu/gpu_channel_manager.h"
26 #include "content/common/gpu/gpu_command_buffer_stub.h" 26 #include "content/common/gpu/gpu_command_buffer_stub.h"
27 #include "content/common/gpu/texture_image_transport_surface.h" 27 #include "content/common/gpu/texture_image_transport_surface.h"
28 #include "gpu/command_buffer/service/gpu_scheduler.h" 28 #include "gpu/command_buffer/service/gpu_scheduler.h"
29 #include "ui/gfx/gl/gl_context.h"
30 #include "ui/gfx/gl/gl_bindings.h"
31 #include "ui/gfx/gl/gl_implementation.h"
32 #include "ui/gfx/gl/gl_surface_egl.h"
33 #include "ui/gfx/gl/gl_surface_glx.h"
34 #include "ui/gfx/gl/gl_surface_osmesa.h"
35 #include "ui/gfx/rect.h" 29 #include "ui/gfx/rect.h"
30 #include "ui/gl/gl_bindings.h"
31 #include "ui/gl/gl_context.h"
32 #include "ui/gl/gl_implementation.h"
33 #include "ui/gl/gl_surface_egl.h"
34 #include "ui/gl/gl_surface_glx.h"
35 #include "ui/gl/gl_surface_osmesa.h"
36 36
37 namespace { 37 namespace {
38 38
39 class ScopedDisplayLock { 39 class ScopedDisplayLock {
40 public: 40 public:
41 ScopedDisplayLock(Display* display): display_(display) { 41 ScopedDisplayLock(Display* display): display_(display) {
42 XLockDisplay(display_); 42 XLockDisplay(display_);
43 } 43 }
44 44
45 ~ScopedDisplayLock() { 45 ~ScopedDisplayLock() {
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 stub, 939 stub,
940 surface.get(), 940 surface.get(),
941 handle.transport); 941 handle.transport);
942 } 942 }
943 943
944 if (surface->Initialize()) 944 if (surface->Initialize())
945 return surface; 945 return surface;
946 else 946 else
947 return NULL; 947 return NULL;
948 } 948 }
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698