diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 21:36:47 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 21:36:47 +0000 |
commit | 4f693b2b63bc60bebe30790a80f8d04a966421af (patch) | |
tree | 959762bfb23ec82ee80a341e466568cf1e84b30a /chrome/browser/renderer_host/backing_store.h | |
parent | 840434d046cbaefb5a70875b7e364523c713c79b (diff) | |
download | chromium_src-4f693b2b63bc60bebe30790a80f8d04a966421af.zip chromium_src-4f693b2b63bc60bebe30790a80f8d04a966421af.tar.gz chromium_src-4f693b2b63bc60bebe30790a80f8d04a966421af.tar.bz2 |
Add Linux support for getting the thumbnail and wire into the switcher.
Review URL: http://codereview.chromium.org/144006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/backing_store.h')
-rw-r--r-- | chrome/browser/renderer_host/backing_store.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/renderer_host/backing_store.h b/chrome/browser/renderer_host/backing_store.h index 3438bda3..977553f 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. |