Home
last modified time | relevance | path

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

/external/chromium_org/ui/gfx/
Dskia_util.cc83 SkMatrix shader_scale = local_matrix; in CreateImageRepShaderForScale() local
84 shader_scale.preScale(scale, scale); in CreateImageRepShaderForScale()
85 shader_scale.setScaleX(local_matrix.getScaleX() / scale); in CreateImageRepShaderForScale()
86 shader_scale.setScaleY(local_matrix.getScaleY() / scale); in CreateImageRepShaderForScale()
89 image_rep.sk_bitmap(), tile_mode, tile_mode, &shader_scale)); in CreateImageRepShaderForScale()
Dcanvas.cc518 SkMatrix shader_scale; in TileImageInt() local
519 shader_scale.setScale(SkFloatToScalar(tile_scale_x), in TileImageInt()
521 shader_scale.preTranslate(SkIntToScalar(-src_x), SkIntToScalar(-src_y)); in TileImageInt()
522 shader_scale.postTranslate(SkIntToScalar(dest_x), SkIntToScalar(dest_y)); in TileImageInt()
527 shader_scale); in TileImageInt()
621 SkMatrix shader_scale; in DrawImageIntHelper() local
622 shader_scale.setScale(SkFloatToScalar(user_scale_x), in DrawImageIntHelper()
624 shader_scale.preTranslate(SkIntToScalar(-src_x), SkIntToScalar(-src_y)); in DrawImageIntHelper()
625 shader_scale.postTranslate(SkIntToScalar(dest_x), SkIntToScalar(dest_y)); in DrawImageIntHelper()
630 shader_scale, in DrawImageIntHelper()