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

Unified Diff: chrome/common/transport_dib_win.cc

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/transport_dib_mac.cc ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/transport_dib_win.cc
diff --git a/chrome/common/transport_dib_win.cc b/chrome/common/transport_dib_win.cc
old mode 100644
new mode 100755
index 49cb755d3821691869dcb564f52953679097f1aa..41fe9250b4dbcfed4b89e92e78ddcb0b414c0c2b
--- a/chrome/common/transport_dib_win.cc
+++ b/chrome/common/transport_dib_win.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/sys_info.h"
#include "chrome/common/transport_dib.h"
+#include "skia/ext/platform_canvas.h"
TransportDIB::TransportDIB() {
}
@@ -59,6 +60,10 @@ TransportDIB* TransportDIB::Map(TransportDIB::Handle handle) {
return dib;
}
+skia::PlatformCanvas* TransportDIB::GetPlatformCanvas(int w, int h) {
+ return new skia::PlatformCanvas(w, h, true, handle());
+}
+
void* TransportDIB::memory() const {
return shared_memory_.memory();
}
« no previous file with comments | « chrome/common/transport_dib_mac.cc ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698