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 #if !defined(TOOLKIT_GTK) |
9 #if !defined(TOOLKIT_GTK) && !(defined(OS_LINUX) && defined(USE_AURA)) | |
10 | 9 |
11 #include <sys/stat.h> | 10 #include <sys/stat.h> |
12 #include <unistd.h> | 11 #include <unistd.h> |
13 | 12 |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/shared_memory.h" | 15 #include "base/memory/shared_memory.h" |
17 #include "base/posix/eintr_wrapper.h" | 16 #include "base/posix/eintr_wrapper.h" |
18 #include "skia/ext/platform_canvas.h" | 17 #include "skia/ext/platform_canvas.h" |
19 | 18 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 return handle(); | 106 return handle(); |
108 #else | 107 #else |
109 return shared_memory_.id(); | 108 return shared_memory_.id(); |
110 #endif | 109 #endif |
111 } | 110 } |
112 | 111 |
113 TransportDIB::Handle TransportDIB::handle() const { | 112 TransportDIB::Handle TransportDIB::handle() const { |
114 return shared_memory_.handle(); | 113 return shared_memory_.handle(); |
115 } | 114 } |
116 | 115 |
117 #endif // !defined(TOOLKIT_GTK) && !(defined(OS_LINUX) && defined(USE_AURA)) | 116 #endif // !defined(TOOLKIT_GTK) |
118 | 117 |
OLD | NEW |