Lines Matching defs:deviceBounds
53 SkRect deviceBounds = SkRect::Make(key.fBBox);
54 if (!SkPDFUtils::InverseTransformBBox(finalMatrix, &deviceBounds)) {
69 deviceBounds.join(bitmapBounds);
72 SkISize patternDeviceSize = {SkScalarCeilToInt(deviceBounds.width()),
73 SkScalarCeilToInt(deviceBounds.height())};
80 canvas.translate(-deviceBounds.left(), -deviceBounds.top());
81 patternBBox.offset(-deviceBounds.left(), -deviceBounds.top());
83 finalMatrix.preTranslate(deviceBounds.left(), deviceBounds.top());
139 rect = SkRect::MakeLTRB(deviceBounds.left(), deviceBounds.top(), 0, 0);
145 rect = SkRect::MakeLTRB(width, deviceBounds.top(),
146 deviceBounds.right(), 0);
153 deviceBounds.right(), deviceBounds.bottom());
160 rect = SkRect::MakeLTRB(deviceBounds.left(), height,
161 0, deviceBounds.bottom());
172 if (deviceBounds.left() < 0) {
177 leftMatrix.setScale(-deviceBounds.left(), 1);
178 leftMatrix.postTranslate(deviceBounds.left(), 0);
189 if (deviceBounds.right() > width) {
195 rightMatrix.setScale(deviceBounds.right() - width, 1);
204 patternBBox.fRight = deviceBounds.width();
211 if (deviceBounds.top() < 0) {
216 topMatrix.setScale(SK_Scalar1, -deviceBounds.top());
217 topMatrix.postTranslate(0, deviceBounds.top());
228 if (deviceBounds.bottom() > height) {
234 bottomMatrix.setScale(SK_Scalar1, deviceBounds.bottom() - height);
243 patternBBox.fBottom = deviceBounds.height();