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

Unified Diff: chrome/browser/renderer_host/backing_store.h

Issue 144006: Add Linux support for getting the thumbnail and wire into the switcher. (Closed)
Patch Set: For checkin 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/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/renderer_host/backing_store_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/backing_store.h
diff --git a/chrome/browser/renderer_host/backing_store.h b/chrome/browser/renderer_host/backing_store.h
index 3438bda3be1274a1d543cd75b79accb0b980abb2..977553f5d7cb051e48af31637fe412d267e5fa5e 100644
--- a/chrome/browser/renderer_host/backing_store.h
+++ b/chrome/browser/renderer_host/backing_store.h
@@ -57,14 +57,18 @@ class BackingStore {
#elif defined(OS_MACOSX)
skia::PlatformCanvas* canvas() { return &canvas_; }
#elif defined(OS_LINUX)
+ Display* display() const { return display_; }
+ XID root_window() const { return root_window_; };
+
// Copy from the server-side backing store to the target window
// display: the display of the backing store and target window
// damage: the area to copy
// target: the X id of the target window
void ShowRect(const gfx::Rect& damage, XID target);
- // Paints the server-side backing store data to a SkBitmap.
- SkBitmap* PaintRectToBitmap(const gfx::Rect& rect);
+ // Paints the server-side backing store data to a SkBitmap. On failure, the
+ // return bitmap will be isNull().
+ SkBitmap PaintRectToBitmap(const gfx::Rect& rect);
#endif
// Paints the bitmap from the renderer onto the backing store.
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/renderer_host/backing_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698