summaryrefslogtreecommitdiffstats
path: root/chrome/common/transport_dib.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/transport_dib.h')
-rwxr-xr-x[-rw-r--r--]chrome/common/transport_dib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/transport_dib.h b/chrome/common/transport_dib.h
index 33c0649..5712827 100644..100755
--- 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;