OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef APP_SURFACE_TRANSPORT_DIB_H_ | 5 #ifndef APP_SURFACE_TRANSPORT_DIB_H_ |
6 #define APP_SURFACE_TRANSPORT_DIB_H_ | 6 #define APP_SURFACE_TRANSPORT_DIB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
11 #if defined(OS_WIN) || defined(OS_MACOSX) | 11 #if defined(OS_WIN) || defined(OS_MACOSX) |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
16 #include <windows.h> | 16 #include <windows.h> |
17 #elif defined(USE_X11) | 17 #elif defined(USE_X11) |
18 #include "app/x11_util.h" | 18 #include "app/x11_util.h" |
19 #endif | 19 #endif |
20 | 20 |
21 namespace gfx { | |
22 class Size; | |
23 } | |
24 namespace skia { | 21 namespace skia { |
25 class PlatformCanvas; | 22 class PlatformCanvas; |
26 } | 23 } |
27 | 24 |
28 // ----------------------------------------------------------------------------- | 25 // ----------------------------------------------------------------------------- |
29 // A TransportDIB is a block of memory that is used to transport pixels | 26 // A TransportDIB is a block of memory that is used to transport pixels |
30 // between processes: from the renderer process to the browser, and | 27 // between processes: from the renderer process to the browser, and |
31 // between renderer and plugin processes. | 28 // between renderer and plugin processes. |
32 // ----------------------------------------------------------------------------- | 29 // ----------------------------------------------------------------------------- |
33 class TransportDIB { | 30 class TransportDIB { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 int key_; // SysV shared memory id | 167 int key_; // SysV shared memory id |
171 void* address_; // mapped address | 168 void* address_; // mapped address |
172 XSharedMemoryId x_shm_; // X id for the shared segment | 169 XSharedMemoryId x_shm_; // X id for the shared segment |
173 Display* display_; // connection to the X server | 170 Display* display_; // connection to the X server |
174 #endif | 171 #endif |
175 size_t size_; // length, in bytes | 172 size_t size_; // length, in bytes |
176 | 173 |
177 DISALLOW_COPY_AND_ASSIGN(TransportDIB); | 174 DISALLOW_COPY_AND_ASSIGN(TransportDIB); |
178 }; | 175 }; |
179 | 176 |
180 class MessageLoop; | |
181 | |
182 #endif // APP_SURFACE_TRANSPORT_DIB_H_ | 177 #endif // APP_SURFACE_TRANSPORT_DIB_H_ |
OLD | NEW |