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

Side by Side Diff: chrome/common/bitmap_wire_data.h

Issue 21485: Bitmap transport (Closed)
Patch Set: Fix some mac crashes Created 11 years, 10 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698