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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js

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: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
index e79a21f044972f003af4e91230e7625f9dcb6f57..6d9fb5b63956f3ed64260044ce89020528196175 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
@@ -376,7 +376,7 @@ Emulation.DeviceModeView = class extends UI.VBox {
this._model.deviceOutlineSetting().set(false);
}
- mainTarget.pageAgent().captureScreenshot(screenshotCaptured.bind(this));
+ mainTarget.pageAgent().captureScreenshot('png', 100, screenshotCaptured.bind(this));
/**
* @param {?Protocol.Error} error

Powered by Google App Engine
This is Rietveld 408576698