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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 21777003: DevTools: [Android] implement RenderWidgetHostViewAndroid::CopyFromCompositingSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang bots. Created 7 years, 4 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
Index: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index ab7da6d243906a436ece088f5a2506322de04b49..8df0eba4924b27c70901305e573d1c47b6887abd 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -297,6 +297,14 @@ class ContentViewCoreImpl : public ContentViewCore,
void SetNeedsBeginFrame(bool enabled);
void SetNeedsAnimate();
+ // Captures pixels and compresses them using given |format|,
+ // |quality| and |scale|. |format| should be one of of "jpeg", "png" and
+ // "webp". |scale| is from range (0, 1].
+ bool GrabSnapshot(const std::string& format,
Sami 2013/08/05 16:56:15 Nit: call this CaptureScreenshot for consistency?
+ int quality,
+ double scale,
+ std::vector<uint8>* data);
+
private:
class ContentViewUserData;
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | content/browser/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698