| Index: chrome/common/transport_dib.h
|
| ===================================================================
|
| --- chrome/common/transport_dib.h (revision 17971)
|
| +++ chrome/common/transport_dib.h (working copy)
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_COMMON_TRANSPORT_DIB_H_
|
|
|
| #include "base/basictypes.h"
|
| +#include "skia/ext/platform_canvas.h"
|
|
|
| #if defined(OS_WIN) || defined(OS_MACOSX)
|
| #include "base/shared_memory.h"
|
| @@ -84,6 +85,11 @@
|
| // Map the referenced transport DIB. Returns NULL on failure.
|
| static TransportDIB* Map(Handle transport_dib);
|
|
|
| + // Returns a canvas using the memory of this TransportDIB. The returned
|
| + // pointer will be owned by the caller. The bitmap will be of the given size,
|
| + // which should fit inside this memory.
|
| + skia::PlatformCanvas* GetPlatformCanvas(int w, int h);
|
| +
|
| // Return a pointer to the shared memory
|
| void* memory() const;
|
|
|
|
|