Home
last modified time | relevance | path

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

/external/chromium_org/ash/touch/
Dtouch_transformer_controller.cc148 float native_ar = static_cast<float>(native_width) / in GetMirrorModeTouchTransformer() local
153 if (mirror_ar > native_ar) { // Letterboxing in GetMirrorModeTouchTransformer()
155 ctm.Translate(0.0, (1.0 - mirror_ar / native_ar) * 0.5 * mirror_height); in GetMirrorModeTouchTransformer()
156 ctm.Scale(1.0, mirror_ar / native_ar); in GetMirrorModeTouchTransformer()
160 if (native_ar > mirror_ar) { // Pillarboxing in GetMirrorModeTouchTransformer()
162 ctm.Translate((1.0 - native_ar / mirror_ar) * 0.5 * mirror_width, 0.0); in GetMirrorModeTouchTransformer()
163 ctm.Scale(native_ar / mirror_ar, 1.0); in GetMirrorModeTouchTransformer()