| OLD | NEW | 
 | (Empty) | 
|   1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |  | 
|   2 // Use of this source code is governed by a BSD-style license that can be |  | 
|   3 // found in the LICENSE file. |  | 
|   4  |  | 
|   5 #ifndef CHROME_COMMON_BITMAP_WIRE_DATA_H_ |  | 
|   6 #define CHROME_COMMON_BITMAP_WIRE_DATA_H_ |  | 
|   7  |  | 
|   8 #if defined(OS_POSIX) |  | 
|   9 class SkBitmap; |  | 
|  10 #endif |  | 
|  11  |  | 
|  12 // BitmapWireData is the type of the bitmap data which is carried from renderer |  | 
|  13 // to browser over the wire. |  | 
|  14  |  | 
|  15 #if defined(OS_WIN) |  | 
|  16  |  | 
|  17 // On Windows, the bitmap data is carried out-of-band in a shared memory |  | 
|  18 // segment. This is the handle to the shared memory. These handles are valid |  | 
|  19 // only in the context of the renderer process. |  | 
|  20 // TODO(agl): get a clarification on that last sentence. It doesn't make any |  | 
|  21 // sense to me |  | 
|  22 typedef HANDLE BitmapWireData; |  | 
|  23  |  | 
|  24 #elif defined(OS_POSIX) |  | 
|  25  |  | 
|  26 // On POSIX, we currently serialise the bitmap data over the wire. This will |  | 
|  27 // change at some point when we too start using shared memory, but we wish to |  | 
|  28 // use shared memory in a different way so this is a temporary work-around. |  | 
|  29 // TODO(port): implement drawing with shared backing stores and replace this |  | 
|  30 //   with an IPC no-op type. |  | 
|  31 typedef SkBitmap BitmapWireData; |  | 
|  32  |  | 
|  33 #endif  // defined(OS_WIN) |  | 
|  34  |  | 
|  35 #endif  // CHROME_COMMON_BITMAP_WIRE_DATA_H_ |  | 
| OLD | NEW |