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

Unified Diff: ui/compositor/layer.cc

Issue 10332077: Zoom the web contents 2x such that they are blurry in High DPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer patch Created 8 years, 7 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/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index be6c577f5b727c00e98b7c388d770d328b762ffb..5ff342e89c36804b7265764344d47ead499cf442 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -557,6 +557,10 @@ void Layer::RecomputeTransform() {
transform.ConcatTransform(transform_);
transform.ConcatTranslate(bounds_.x(), bounds_.y());
transform.ConcatTransform(scale_translate);
+
+ if (texture_)
+ transform.ConcatScale(device_scale_factor_, device_scale_factor_);
oshima 2012/05/09 19:57:21 move this before ConcatTransform(scale_translate);
+
web_layer_.setTransform(transform.matrix());
} else {
Transform t = transform_;

Powered by Google App Engine
This is Rietveld 408576698