Lines Matching refs:sourceRegion
43 gl::Rectangle sourceRegion; member
65 bounds.sourceRegion = sourceArea.removeReversal(); in GetBlitFramebufferBounds()
828 if (bounds.destRegion.width == 0 || bounds.sourceRegion.width == 0 || in adjustSrcDstRegion()
829 bounds.destRegion.height == 0 || bounds.sourceRegion.height == 0) in adjustSrcDstRegion()
946 bounds.sourceRegion = gl::Rectangle(bounds.sourceRegion.x + (xOffset >> destXHalvings), in adjustSrcDstRegion()
947 bounds.sourceRegion.y + (yOffset >> destYHalvings), in adjustSrcDstRegion()
948 bounds.sourceRegion.width >> destXHalvings, in adjustSrcDstRegion()
949 bounds.sourceRegion.height >> destYHalvings); in adjustSrcDstRegion()
952 if (bounds.sourceRegion.width == 0) in adjustSrcDstRegion()
954 bounds.sourceRegion.width = 1; in adjustSrcDstRegion()
956 if (bounds.sourceRegion.height == 0) in adjustSrcDstRegion()
958 bounds.sourceRegion.height = 1; in adjustSrcDstRegion()
962 if (!bounds.sourceBounds.encloses(bounds.sourceRegion)) in adjustSrcDstRegion()
974 GLint sourceOriginX = bounds.sourceRegion.x; in adjustSrcDstRegion()
975 GLint sourceOriginY = bounds.sourceRegion.y; in adjustSrcDstRegion()
977 GLint sourceClippedWidth = bounds.sourceRegion.width; in adjustSrcDstRegion()
984 GLint sourceClippedHeight = bounds.sourceRegion.height; in adjustSrcDstRegion()
996 GLint left = bounds.sourceRegion.x0(); in adjustSrcDstRegion()
997 GLint right = bounds.sourceRegion.x1(); in adjustSrcDstRegion()
998 GLint top = bounds.sourceRegion.y0(); in adjustSrcDstRegion()
999 GLint bottom = bounds.sourceRegion.y1(); in adjustSrcDstRegion()
1005 sourceOriginX = bounds.sourceRegion.x; in adjustSrcDstRegion()
1015 extraXOffset = (bounds.sourceRegion.width - sourceClippedWidth) / 2; in adjustSrcDstRegion()
1016 sourceOriginX = bounds.sourceRegion.x + extraXOffset; in adjustSrcDstRegion()
1023 sourceOriginY = bounds.sourceRegion.y; in adjustSrcDstRegion()
1033 extraYOffset = (bounds.sourceRegion.height - sourceClippedHeight) / 2; in adjustSrcDstRegion()
1034 sourceOriginY = bounds.sourceRegion.y + extraYOffset; in adjustSrcDstRegion()
1042 CheckedNumeric<GLuint> checkedXOffset(sourceOriginX - bounds.sourceRegion.x - in adjustSrcDstRegion()
1044 CheckedNumeric<GLuint> checkedYOffset(sourceOriginY - bounds.sourceRegion.y - in adjustSrcDstRegion()
1051 checkedXOffset = (bounds.sourceRegion.x1() - (sourceOriginX + sourceClippedWidth) + in adjustSrcDstRegion()
1056 checkedYOffset = (bounds.sourceRegion.y1() - (sourceOriginY + sourceClippedHeight) + in adjustSrcDstRegion()
1068 bounds.sourceRegion = in adjustSrcDstRegion()
1079 *newSourceArea = bounds.sourceRegion.flip(sourceArea.isReversedX(), sourceArea.isReversedY()); in adjustSrcDstRegion()
1093 if (bounds.destRegion.width == 0 || bounds.sourceRegion.width == 0 || in clipSrcRegion()
1094 bounds.destRegion.height == 0 || bounds.sourceRegion.height == 0) in clipSrcRegion()
1103 if (!bounds.sourceBounds.encloses(bounds.sourceRegion)) in clipSrcRegion()
1108 ClipRectangle(bounds.sourceRegion, bounds.sourceBounds, &realSourceRegion); in clipSrcRegion()
1109 GLuint xOffset = realSourceRegion.x - bounds.sourceRegion.x; in clipSrcRegion()
1110 GLuint yOffset = realSourceRegion.y - bounds.sourceRegion.y; in clipSrcRegion()
1116 xOffset = bounds.sourceRegion.x1() - realSourceRegion.x1(); in clipSrcRegion()
1120 yOffset = bounds.sourceRegion.y1() - realSourceRegion.y1(); in clipSrcRegion()
1124 bounds.destRegion.width / bounds.sourceRegion.width; in clipSrcRegion()
1126 bounds.destRegion.height / bounds.sourceRegion.height; in clipSrcRegion()
1128 static_cast<GLfloat>(xOffset) * bounds.destRegion.width / bounds.sourceRegion.width; in clipSrcRegion()
1130 static_cast<GLfloat>(yOffset) * bounds.destRegion.height / bounds.sourceRegion.height; in clipSrcRegion()
1146 bounds.sourceRegion = realSourceRegion; in clipSrcRegion()
1150 *newSourceArea = bounds.sourceRegion.flip(sourceArea.isReversedX(), sourceArea.isReversedY()); in clipSrcRegion()