Home
last modified time | relevance | path

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

/external/skia/src/pdf/
DSkPDFShader.cpp279 SkRect shaderRect = SkRect::Make(surfaceBBox); in make_fallback_shader() local
280 if (!SkPDFUtils::InverseTransformBBox(canvasTransform, &shaderRect)) { in make_fallback_shader()
294 SkSize scale = {SkIntToScalar(size.width()) / shaderRect.width(), in make_fallback_shader()
295 SkIntToScalar(size.height()) / shaderRect.height()}; in make_fallback_shader()
306 canvas->translate(-shaderRect.x(), -shaderRect.y()); in make_fallback_shader()
309 shaderTransform.setTranslate(shaderRect.x(), shaderRect.y()); in make_fallback_shader()
/external/skqp/src/pdf/
DSkPDFShader.cpp282 SkRect shaderRect = SkRect::Make(surfaceBBox); in make_fallback_shader() local
283 if (!SkPDFUtils::InverseTransformBBox(canvasTransform, &shaderRect)) { in make_fallback_shader()
296 SkSize scale = {SkIntToScalar(size.width()) / shaderRect.width(), in make_fallback_shader()
297 SkIntToScalar(size.height()) / shaderRect.height()}; in make_fallback_shader()
308 canvas->translate(-shaderRect.x(), -shaderRect.y()); in make_fallback_shader()
311 key.fShaderTransform.setTranslate(shaderRect.x(), shaderRect.y()); in make_fallback_shader()