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 #include <errno.h> | 7 #include <errno.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/ipc.h> | 9 #include <sys/ipc.h> |
10 #include <sys/shm.h> | 10 #include <sys/shm.h> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 if (!inflight_counter_ && detached_) | 146 if (!inflight_counter_ && detached_) |
147 delete this; | 147 delete this; |
148 } | 148 } |
149 | 149 |
150 void TransportDIB::Detach() { | 150 void TransportDIB::Detach() { |
151 CHECK(!detached_); | 151 CHECK(!detached_); |
152 detached_ = true; | 152 detached_ = true; |
153 if (!inflight_counter_) | 153 if (!inflight_counter_) |
154 delete this; | 154 delete this; |
155 } | 155 } |
OLD | NEW |