Lines Matching refs:pRegion
230 miClipPictureReg(pixman_region16_t * pRegion,
233 if (pixman_region_n_rects(pRegion) == 1 &&
235 pixman_box16_t *pRbox = pixman_region_rectangles(pRegion, NULL);
248 pixman_region_init(pRegion);
255 pixman_region_translate(pRegion, -dx, -dy);
256 if (!pixman_region_intersect(pRegion, pRegion, pClip))
259 pixman_region_translate(pRegion, dx, dy);
261 return pixman_region_not_empty(pRegion);
265 miClipPictureSrc(RegionPtr pRegion, PicturePtr pPicture, int dx, int dy)
274 result = RegionIntersect(pRegion, pRegion, pPicture->clientClip);
315 miComputeCompositeRegion(RegionPtr pRegion,
328 pRegion->extents.x1 = xDst;
330 pRegion->extents.x2 = BOUND(v);
331 pRegion->extents.y1 = yDst;
333 pRegion->extents.y2 = BOUND(v);
334 pRegion->data = 0;
336 if (pRegion->extents.x1 >= pRegion->extents.x2 ||
337 pRegion->extents.y1 >= pRegion->extents.y2) {
338 pixman_region_init(pRegion);
342 if (!miClipPictureReg(pRegion, pDst->pCompositeClip, 0, 0)) {
343 pixman_region_fini(pRegion);
347 if (!miClipPictureReg(pRegion, pDst->alphaMap->pCompositeClip,
349 pixman_region_fini(pRegion);
354 if (!miClipPictureSrc(pRegion, pSrc, xDst - xSrc, yDst - ySrc)) {
355 pixman_region_fini(pRegion);
359 if (!miClipPictureSrc(pRegion, pSrc->alphaMap,
362 pixman_region_fini(pRegion);
368 if (!miClipPictureSrc(pRegion, pMask, xDst - xMask, yDst - yMask)) {
369 pixman_region_fini(pRegion);
373 if (!miClipPictureSrc(pRegion, pMask->alphaMap,
376 pixman_region_fini(pRegion);