Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp120 SkRect skiaSrcRect; in DrawLayer() local
122 skiaSrcRect = *srcRect; in DrawLayer()
124 skiaSrcRect = SkRect::MakeIWH(layerWidth, layerHeight); in DrawLayer()
126 matrixInv.mapRect(&skiaSrcRect); in DrawLayer()
141 shouldFilterRect(totalMatrix, skiaSrcRect, skiaDestRect)) { in DrawLayer()
144 canvas->drawImageRect(layerImage.get(), skiaSrcRect, skiaDestRect, &paint, in DrawLayer()
/frameworks/base/libs/hwui/
DReadback.cpp136 SkRect skiaSrcRect = srcRect.toSkRect(); in copyImageInto() local
137 if (skiaSrcRect.isEmpty()) { in copyImageInto()
138 skiaSrcRect = SkRect::MakeIWH(displayedWidth, displayedHeight); in copyImageInto()
140 bool srcNotEmpty = skiaSrcRect.intersect(SkRect::MakeIWH(displayedWidth, displayedHeight)); in copyImageInto()
146 bool disableFilter = MathUtils::areEqual(skiaSrcRect.width(), skiaDestRect.width()) && in copyImageInto()
147 MathUtils::areEqual(skiaSrcRect.height(), skiaDestRect.height()); in copyImageInto()
152 if (copyLayerInto(&layer, &skiaSrcRect, &skiaDestRect, bitmap)) { in copyImageInto()