Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: ui/surface/transport_dib_sysvipc.cc

Issue 13582008: Simplify the transport dib situation across our various platforms, as a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/surface/transport_dib_posix.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
8 // Linux Aura and Chrome OS do too. This will change very soon.
9 #if defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA))
10
7 #include <errno.h> 11 #include <errno.h>
8 #include <stdlib.h> 12 #include <stdlib.h>
9 #include <sys/ipc.h> 13 #include <sys/ipc.h>
10 #include <sys/shm.h> 14 #include <sys/shm.h>
11 15
12 #include "base/logging.h" 16 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
14 #include "skia/ext/platform_canvas.h" 18 #include "skia/ext/platform_canvas.h"
15 #include "ui/base/x/x11_util.h" 19 #include "ui/base/x/x11_util.h"
16 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 if (!inflight_counter_ && detached_) 150 if (!inflight_counter_ && detached_)
147 delete this; 151 delete this;
148 } 152 }
149 153
150 void TransportDIB::Detach() { 154 void TransportDIB::Detach() {
151 CHECK(!detached_); 155 CHECK(!detached_);
152 detached_ = true; 156 detached_ = true;
153 if (!inflight_counter_) 157 if (!inflight_counter_)
154 delete this; 158 delete this;
155 } 159 }
160
161 #endif
162
OLDNEW
« no previous file with comments | « ui/surface/transport_dib_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698