Index: chrome/common/transport_dib.h |
diff --git a/chrome/common/transport_dib.h b/chrome/common/transport_dib.h |
old mode 100644 |
new mode 100755 |
index 33c0649aa96b55110b8f6e6b024fe689f7c05033..5712827fee66aa98c4c8a7357df47d93ba0e9d63 |
--- a/chrome/common/transport_dib.h |
+++ b/chrome/common/transport_dib.h |
@@ -20,6 +20,9 @@ |
namespace gfx { |
class Size; |
} |
+namespace skia { |
+class PlatformCanvas; |
+} |
// ----------------------------------------------------------------------------- |
// A TransportDIB is a block of memory that is used to transport pixels |
@@ -84,6 +87,11 @@ class TransportDIB { |
// 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; |