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) | |
| 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 Loading... | |
| 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 | |
| OLD | NEW |