Home
last modified time | relevance | path

Searched refs:mirror_ar (Results 1 – 1 of 1) sorted by relevance

/external/chromium_org/ash/touch/
Dtouch_transformer_controller.cc102 float mirror_ar = static_cast<float>(mirror_width) / in GetMirrorModeTouchTransformer() local
105 if (mirror_ar > native_ar) { // Letterboxing in GetMirrorModeTouchTransformer()
107 ctm.Translate(0.0, (1.0 - mirror_ar / native_ar) * 0.5 * mirror_height); in GetMirrorModeTouchTransformer()
108 ctm.Scale(1.0, mirror_ar / native_ar); in GetMirrorModeTouchTransformer()
112 if (native_ar > mirror_ar) { // Pillarboxing in GetMirrorModeTouchTransformer()
114 ctm.Translate((1.0 - native_ar / mirror_ar) * 0.5 * mirror_width, 0.0); in GetMirrorModeTouchTransformer()
115 ctm.Scale(native_ar / mirror_ar, 1.0); in GetMirrorModeTouchTransformer()