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

Unified Diff: chrome/common/transport_dib.h

Issue 126101: Adds kind-of-live thumbnail generation for a potential tab switcher. (Closed)
Patch Set: For Checking hopefully Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/property_bag.h ('k') | chrome/common/transport_dib_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/common/property_bag.h ('k') | chrome/common/transport_dib_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698