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

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

Issue 2408603002: DevTools: disable smoothing and correct nexus device frame dimensions for screenshots (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f738480ab24c0a375b5f277c4e1499bdb0325d86..91c52f16062be9049c95682ddeb4fdb8aab967d0 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
@@ -420,6 +420,7 @@ WebInspector.DeviceModeView.prototype = {
var ctx = canvas.getContext("2d");
canvas.width = outlineRect.width;
canvas.height = outlineRect.height;
+ ctx.imageSmoothingEnabled = false;
var promise = Promise.resolve();
if (this._model.outlineImage())
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698