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/surface/transport_dib.h" | 5 #include "ui/surface/transport_dib.h" |
6 | 6 |
7 // Desktop GTK Linux builds use the old-style SYSV SHM based DIBs. | 7 // Desktop GTK Linux builds use the old-style SYSV SHM based DIBs. |
8 // Linux Aura and Chrome OS do too. This will change very soon. | 8 // Linux Aura and Chrome OS do too. This will change very soon. |
9 #if !defined(TOOLKIT_GTK) && !(defined(OS_LINUX) && defined(USE_AURA)) | 9 #if defined(USE_X11) && !defined(TOOLKIT_GTK) && !(defined(OS_LINUX) && defined(
USE_AURA)) |
10 | 10 |
11 #include <sys/stat.h> | 11 #include <sys/stat.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
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/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
17 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
18 #include "skia/ext/platform_canvas.h" | 18 #include "skia/ext/platform_canvas.h" |
19 | 19 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 return shared_memory_.id(); | 109 return shared_memory_.id(); |
110 #endif | 110 #endif |
111 } | 111 } |
112 | 112 |
113 TransportDIB::Handle TransportDIB::handle() const { | 113 TransportDIB::Handle TransportDIB::handle() const { |
114 return shared_memory_.handle(); | 114 return shared_memory_.handle(); |
115 } | 115 } |
116 | 116 |
117 #endif // !defined(TOOLKIT_GTK) && !(defined(OS_LINUX) && defined(USE_AURA)) | 117 #endif // !defined(TOOLKIT_GTK) && !(defined(OS_LINUX) && defined(USE_AURA)) |
118 | 118 |
OLD | NEW |