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

Unified Diff: cc/CCLayerTreeHostCommon.cpp

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: cc/CCLayerTreeHostCommon.cpp
===================================================================
--- cc/CCLayerTreeHostCommon.cpp (revision 156389)
+++ cc/CCLayerTreeHostCommon.cpp (working copy)
@@ -462,6 +462,8 @@
WebTransformationMatrix layerLocalTransform;
// LT = S[pageScaleDelta]
layerLocalTransform.scale(layer->pageScaleDelta());
+ layerLocalTransform.scale(layer->pageScaleFactor());
+ layerLocalTransform.translate(layer->localOffset().width(), layer->localOffset().height());
// LT = S[pageScaleDelta] * Tr[origin] * Tr[origin2anchor]
layerLocalTransform.translate3d(position.x() + anchorPoint.x() * bounds.width(), position.y() + anchorPoint.y() * bounds.height(), layer->anchorPointZ());
// LT = S[pageScaleDelta] * Tr[origin] * Tr[origin2anchor] * M[layer]

Powered by Google App Engine
This is Rietveld 408576698