Lines Matching refs:sourceRegion
44 gl::Rectangle sourceRegion; member
66 bounds.sourceRegion = sourceArea.removeReversal(); in GetBlitFramebufferBounds()
877 if (bounds.destRegion.width == 0 || bounds.sourceRegion.width == 0 || in adjustSrcDstRegion()
878 bounds.destRegion.height == 0 || bounds.sourceRegion.height == 0) in adjustSrcDstRegion()
995 bounds.sourceRegion = gl::Rectangle(bounds.sourceRegion.x + (xOffset >> destXHalvings), in adjustSrcDstRegion()
996 bounds.sourceRegion.y + (yOffset >> destYHalvings), in adjustSrcDstRegion()
997 bounds.sourceRegion.width >> destXHalvings, in adjustSrcDstRegion()
998 bounds.sourceRegion.height >> destYHalvings); in adjustSrcDstRegion()
1001 if (bounds.sourceRegion.width == 0) in adjustSrcDstRegion()
1003 bounds.sourceRegion.width = 1; in adjustSrcDstRegion()
1005 if (bounds.sourceRegion.height == 0) in adjustSrcDstRegion()
1007 bounds.sourceRegion.height = 1; in adjustSrcDstRegion()
1011 if (!bounds.sourceBounds.encloses(bounds.sourceRegion)) in adjustSrcDstRegion()
1023 GLint sourceOriginX = bounds.sourceRegion.x; in adjustSrcDstRegion()
1024 GLint sourceOriginY = bounds.sourceRegion.y; in adjustSrcDstRegion()
1026 GLint sourceClippedWidth = bounds.sourceRegion.width; in adjustSrcDstRegion()
1033 GLint sourceClippedHeight = bounds.sourceRegion.height; in adjustSrcDstRegion()
1045 GLint left = bounds.sourceRegion.x0(); in adjustSrcDstRegion()
1046 GLint right = bounds.sourceRegion.x1(); in adjustSrcDstRegion()
1047 GLint top = bounds.sourceRegion.y0(); in adjustSrcDstRegion()
1048 GLint bottom = bounds.sourceRegion.y1(); in adjustSrcDstRegion()
1054 sourceOriginX = bounds.sourceRegion.x; in adjustSrcDstRegion()
1064 extraXOffset = (bounds.sourceRegion.width - sourceClippedWidth) / 2; in adjustSrcDstRegion()
1065 sourceOriginX = bounds.sourceRegion.x + extraXOffset; in adjustSrcDstRegion()
1072 sourceOriginY = bounds.sourceRegion.y; in adjustSrcDstRegion()
1082 extraYOffset = (bounds.sourceRegion.height - sourceClippedHeight) / 2; in adjustSrcDstRegion()
1083 sourceOriginY = bounds.sourceRegion.y + extraYOffset; in adjustSrcDstRegion()
1091 CheckedNumeric<GLuint> checkedXOffset(sourceOriginX - bounds.sourceRegion.x - in adjustSrcDstRegion()
1093 CheckedNumeric<GLuint> checkedYOffset(sourceOriginY - bounds.sourceRegion.y - in adjustSrcDstRegion()
1100 checkedXOffset = (bounds.sourceRegion.x1() - (sourceOriginX + sourceClippedWidth) + in adjustSrcDstRegion()
1105 checkedYOffset = (bounds.sourceRegion.y1() - (sourceOriginY + sourceClippedHeight) + in adjustSrcDstRegion()
1117 bounds.sourceRegion = in adjustSrcDstRegion()
1128 *newSourceArea = bounds.sourceRegion.flip(sourceArea.isReversedX(), sourceArea.isReversedY()); in adjustSrcDstRegion()
1142 if (bounds.destRegion.width == 0 || bounds.sourceRegion.width == 0 || in clipSrcRegion()
1143 bounds.destRegion.height == 0 || bounds.sourceRegion.height == 0) in clipSrcRegion()
1152 if (!bounds.sourceBounds.encloses(bounds.sourceRegion)) in clipSrcRegion()
1157 if (!ClipRectangle(bounds.sourceRegion, bounds.sourceBounds, &realSourceRegion)) in clipSrcRegion()
1161 GLuint xOffset = realSourceRegion.x - bounds.sourceRegion.x; in clipSrcRegion()
1162 GLuint yOffset = realSourceRegion.y - bounds.sourceRegion.y; in clipSrcRegion()
1168 xOffset = bounds.sourceRegion.x1() - realSourceRegion.x1(); in clipSrcRegion()
1172 yOffset = bounds.sourceRegion.y1() - realSourceRegion.y1(); in clipSrcRegion()
1176 bounds.destRegion.width / bounds.sourceRegion.width; in clipSrcRegion()
1178 bounds.destRegion.height / bounds.sourceRegion.height; in clipSrcRegion()
1180 static_cast<GLfloat>(xOffset) * bounds.destRegion.width / bounds.sourceRegion.width; in clipSrcRegion()
1182 static_cast<GLfloat>(yOffset) * bounds.destRegion.height / bounds.sourceRegion.height; in clipSrcRegion()
1198 bounds.sourceRegion = realSourceRegion; in clipSrcRegion()
1202 *newSourceArea = bounds.sourceRegion.flip(sourceArea.isReversedX(), sourceArea.isReversedY()); in clipSrcRegion()