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

Unified Diff: chrome/common/transport_dib.h

Issue 118420: Adds kind-of-live thumbnail generation for a potential tab switcher. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
===================================================================
--- 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;
« 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