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

Unified Diff: chrome/common/transport_dib_mac.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_linux.cc ('k') | chrome/common/transport_dib_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/transport_dib_mac.cc
diff --git a/chrome/common/transport_dib_mac.cc b/chrome/common/transport_dib_mac.cc
old mode 100644
new mode 100755
index b4c7a2a7168ed6f32f6d59352268bb0db121270e..638866ca570017d2e25cbc6c886e3af09f4a245d
--- a/chrome/common/transport_dib_mac.cc
+++ b/chrome/common/transport_dib_mac.cc
@@ -9,6 +9,7 @@
#include "base/eintr_wrapper.h"
#include "base/shared_memory.h"
+#include "skia/ext/platform_canvas.h"
TransportDIB::TransportDIB()
: size_(0) {
@@ -52,6 +53,11 @@ TransportDIB* TransportDIB::Map(TransportDIB::Handle handle) {
return dib;
}
+skia::PlatformCanvas* TransportDIB::GetPlatformCanvas(int w, int h) {
+ return new skia::PlatformCanvas(w, h, true,
+ reinterpret_cast<uint8_t*>(dib->memory()));
+}
+
void* TransportDIB::memory() const {
return shared_memory_.memory();
}
« no previous file with comments | « chrome/common/transport_dib_linux.cc ('k') | chrome/common/transport_dib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698