Chromium Code Reviews| 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 #if defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA)) | |
|
Ken Russell (switch to Gerrit)
2013/04/04 18:52:12
Consider adding the same comment you did to transp
| |
| 8 | |
| 7 #include <errno.h> | 9 #include <errno.h> |
| 8 #include <stdlib.h> | 10 #include <stdlib.h> |
| 9 #include <sys/ipc.h> | 11 #include <sys/ipc.h> |
| 10 #include <sys/shm.h> | 12 #include <sys/shm.h> |
| 11 | 13 |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "skia/ext/platform_canvas.h" | 16 #include "skia/ext/platform_canvas.h" |
| 15 #include "ui/base/x/x11_util.h" | 17 #include "ui/base/x/x11_util.h" |
| 16 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 if (!inflight_counter_ && detached_) | 148 if (!inflight_counter_ && detached_) |
| 147 delete this; | 149 delete this; |
| 148 } | 150 } |
| 149 | 151 |
| 150 void TransportDIB::Detach() { | 152 void TransportDIB::Detach() { |
| 151 CHECK(!detached_); | 153 CHECK(!detached_); |
| 152 detached_ = true; | 154 detached_ = true; |
| 153 if (!inflight_counter_) | 155 if (!inflight_counter_) |
| 154 delete this; | 156 delete this; |
| 155 } | 157 } |
| 158 | |
| 159 #endif | |
| 160 | |
| OLD | NEW |