Lines Matching refs:deviceBounds

88     SkRect deviceBounds = bBox;
89 if (!SkPDFUtils::InverseTransformBBox(finalMatrix, &deviceBounds)) {
100 deviceBounds.join(bitmapBounds);
103 SkISize patternDeviceSize = {SkScalarCeilToInt(deviceBounds.width()),
104 SkScalarCeilToInt(deviceBounds.height())};
113 canvas.translate(-deviceBounds.left(), -deviceBounds.top());
114 patternBBox.offset(-deviceBounds.left(), -deviceBounds.top());
116 finalMatrix.preTranslate(deviceBounds.left(), deviceBounds.top());
151 fill_color_from_bitmap(&canvas, deviceBounds.left(), deviceBounds.top(), 0, 0,
154 fill_color_from_bitmap(&canvas, width, deviceBounds.top(), deviceBounds.right(), 0,
157 fill_color_from_bitmap(&canvas, width, height, deviceBounds.right(), deviceBounds.bottom(),
160 fill_color_from_bitmap(&canvas, deviceBounds.left(), height, 0, deviceBounds.bottom(),
168 if (deviceBounds.left() < 0) {
172 SkMatrix leftMatrix = scale_translate(-deviceBounds.left(), 1, deviceBounds.left(), 0);
183 if (deviceBounds.right() > width) {
188 SkMatrix rightMatrix = scale_translate(deviceBounds.right() - width, 1, width, 0);
196 patternBBox.fRight = deviceBounds.width();
200 if (deviceBounds.left() < 0) {
203 if (deviceBounds.right() > width) {
204 patternBBox.fRight = deviceBounds.width();
211 if (deviceBounds.top() < 0) {
215 SkMatrix topMatrix = scale_translate(1, -deviceBounds.top(), 0, deviceBounds.top());
226 if (deviceBounds.bottom() > height) {
231 SkMatrix bottomMatrix = scale_translate(1, deviceBounds.bottom() - height, 0, height);
239 patternBBox.fBottom = deviceBounds.height();
243 if (deviceBounds.top() < 0) {
246 if (deviceBounds.bottom() > height) {
247 patternBBox.fBottom = deviceBounds.height();