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

Side by Side Diff: ui/surface/transport_dib_posix.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_mac.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 #if defined(TOOLKIT_GTK)
8 // The GTK-specific source file overrides this POSIX implementation.
9 #elif defined(OS_LINUX) && defined(USE_AURA)
10 // At the moment, Aura on Linux builds use the old-style SYSV SHM based DIBs.
11 // This includes Chrome OS.
12 // It will change very soon.
13 #include "transport_dib_gtk.cc"
Ken Russell (switch to Gerrit) 2013/04/04 00:26:45 That's gross -- is there a timeframe for cleaning
14 #else
15
7 #include <sys/stat.h> 16 #include <sys/stat.h>
8 #include <unistd.h> 17 #include <unistd.h>
9 18
10 #include "base/logging.h" 19 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/shared_memory.h" 21 #include "base/memory/shared_memory.h"
13 #include "base/posix/eintr_wrapper.h" 22 #include "base/posix/eintr_wrapper.h"
14 #include "skia/ext/platform_canvas.h" 23 #include "skia/ext/platform_canvas.h"
15 24
16 TransportDIB::TransportDIB() 25 TransportDIB::TransportDIB()
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return shared_memory_.memory(); 97 return shared_memory_.memory();
89 } 98 }
90 99
91 TransportDIB::Id TransportDIB::id() const { 100 TransportDIB::Id TransportDIB::id() const {
92 return shared_memory_.id(); 101 return shared_memory_.id();
93 } 102 }
94 103
95 TransportDIB::Handle TransportDIB::handle() const { 104 TransportDIB::Handle TransportDIB::handle() const {
96 return shared_memory_.handle(); 105 return shared_memory_.handle();
97 } 106 }
107
108 #endif
OLDNEW
« no previous file with comments | « ui/surface/transport_dib_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698