diff options
author | justinlin@chromium.org <justinlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-23 01:50:19 +0000 |
---|---|---|
committer | justinlin@chromium.org <justinlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-23 01:50:19 +0000 |
commit | 51a4950fe59603ba5c5b0e29257fe6a286dd3d8c (patch) | |
tree | 7bcfbc614a9916e3de93c8ee909e102b2853aaf2 /chrome/renderer/chrome_render_view_observer.h | |
parent | 9190bf0ad56c16e108db5fdf9511f53faa24d4ab (diff) | |
download | chromium_src-51a4950fe59603ba5c5b0e29257fe6a286dd3d8c.zip chromium_src-51a4950fe59603ba5c5b0e29257fe6a286dd3d8c.tar.gz chromium_src-51a4950fe59603ba5c5b0e29257fe6a286dd3d8c.tar.bz2 |
Add RenderWidgetHost::GetSnapshotFromRenderer method to content/ interface for snapshotting for cases where we might not be able to use CopyFromBackingStore because the browser side can't access the backing store or accelerated surface due to driver issues or WinXP.
Consolidate renderer-side snapshotting into that method and move clients (tabsApi, tabCapture and NTP) to the new method.
Let the Linux CopyFromCompositingSurface always use this since the current one is incorrect if the tab is in the background or is covered by a window.
Remove Linux-GTK snapshotting workarounds.
BUG=188867, 174957, 132301
Review URL: https://codereview.chromium.org/12881005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_render_view_observer.h')
-rw-r--r-- | chrome/renderer/chrome_render_view_observer.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/renderer/chrome_render_view_observer.h b/chrome/renderer/chrome_render_view_observer.h index 80247ff..d5297c8 100644 --- a/chrome/renderer/chrome_render_view_observer.h +++ b/chrome/renderer/chrome_render_view_observer.h @@ -126,7 +126,6 @@ class ChromeRenderViewObserver : public content::RenderViewObserver, const string16& jscript, int id, bool notify_result); - void OnCaptureSnapshot(); void OnHandleMessageFromExternalHost(const std::string& message, const std::string& origin, const std::string& target); @@ -150,10 +149,6 @@ class ChromeRenderViewObserver : public content::RenderViewObserver, // maximum amount kMaxIndexChars will be placed into the given buffer. void CaptureText(WebKit::WebFrame* frame, string16* contents); - // Capture a snapshot of a view. This is used to allow an extension - // to get a snapshot of a tab using chrome.tabs.captureVisibleTab(). - bool CaptureSnapshot(WebKit::WebView* view, SkBitmap* snapshot); - ExternalHostBindings* GetExternalHostBindings(); // Determines if a host is in the strict security host set. |