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

Unified Diff: ui/snapshot/snapshot_async.h

Issue 2592983002: [devtools] Support different encodings for Page.CaptureScreenshot. (Closed)
Patch Set: Encode in ui snapshot methods instead. Created 3 years, 12 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: ui/snapshot/snapshot_async.h
diff --git a/ui/snapshot/snapshot_async.h b/ui/snapshot/snapshot_async.h
index 364f76c26d9fb88d9bf89aee28062e917f0207d8..d62ed1c7013f2486b44bc1a296e8abd4b7bf7125 100644
--- a/ui/snapshot/snapshot_async.h
+++ b/ui/snapshot/snapshot_async.h
@@ -32,8 +32,10 @@ class SnapshotAsync {
std::unique_ptr<cc::CopyOutputResult> result);
static void EncodeCopyOutputResult(
- const GrabWindowSnapshotAsyncPNGCallback& callback,
+ const GrabWindowSnapshotAsyncEncodedCallback& callback,
scoped_refptr<base::TaskRunner> background_task_runner,
+ SnapshotEncoding encoding,
+ SnapshotQuality quality,
std::unique_ptr<cc::CopyOutputResult> result);
private:

Powered by Google App Engine
This is Rietveld 408576698