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) |
rjkroege
2013/05/16 19:29:42
rename this file to _gtk and you don't need the #d
| |
9 #if defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA)) | |
10 | 9 |
11 #include <errno.h> | 10 #include <errno.h> |
12 #include <stdlib.h> | 11 #include <stdlib.h> |
13 #include <sys/ipc.h> | 12 #include <sys/ipc.h> |
14 #include <sys/shm.h> | 13 #include <sys/shm.h> |
15 | 14 |
16 #include "base/logging.h" | 15 #include "base/logging.h" |
17 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
18 #include "skia/ext/platform_canvas.h" | 17 #include "skia/ext/platform_canvas.h" |
19 #include "ui/base/x/x11_util.h" | 18 #include "ui/base/x/x11_util.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 | 152 |
154 void TransportDIB::Detach() { | 153 void TransportDIB::Detach() { |
155 CHECK(!detached_); | 154 CHECK(!detached_); |
156 detached_ = true; | 155 detached_ = true; |
157 if (!inflight_counter_) | 156 if (!inflight_counter_) |
158 delete this; | 157 delete this; |
159 } | 158 } |
160 | 159 |
161 #endif | 160 #endif |
162 | 161 |
OLD | NEW |