/external/skqp/src/gpu/ops/ |
D | GrCopySurfaceOp.cpp | 20 SkIRect* clippedSrcRect, in clip_src_rect_and_dst_point() argument 22 *clippedSrcRect = srcRect; in clip_src_rect_and_dst_point() 26 if (clippedSrcRect->fLeft < 0) { in clip_src_rect_and_dst_point() 27 clippedDstPoint->fX -= clippedSrcRect->fLeft; in clip_src_rect_and_dst_point() 28 clippedSrcRect->fLeft = 0; in clip_src_rect_and_dst_point() 31 clippedSrcRect->fLeft -= clippedDstPoint->fX; in clip_src_rect_and_dst_point() 36 if (clippedSrcRect->fTop < 0) { in clip_src_rect_and_dst_point() 37 clippedDstPoint->fY -= clippedSrcRect->fTop; in clip_src_rect_and_dst_point() 38 clippedSrcRect->fTop = 0; in clip_src_rect_and_dst_point() 41 clippedSrcRect->fTop -= clippedDstPoint->fY; in clip_src_rect_and_dst_point() [all …]
|
/external/skia/src/gpu/geometry/ |
D | GrRect.h | 109 SkIRect* clippedSrcRect, in GrClipSrcRectAndDstPoint() argument 111 *clippedSrcRect = srcRect; in GrClipSrcRectAndDstPoint() 115 if (clippedSrcRect->fLeft < 0) { in GrClipSrcRectAndDstPoint() 116 clippedDstPoint->fX -= clippedSrcRect->fLeft; in GrClipSrcRectAndDstPoint() 117 clippedSrcRect->fLeft = 0; in GrClipSrcRectAndDstPoint() 120 clippedSrcRect->fLeft -= clippedDstPoint->fX; in GrClipSrcRectAndDstPoint() 125 if (clippedSrcRect->fTop < 0) { in GrClipSrcRectAndDstPoint() 126 clippedDstPoint->fY -= clippedSrcRect->fTop; in GrClipSrcRectAndDstPoint() 127 clippedSrcRect->fTop = 0; in GrClipSrcRectAndDstPoint() 130 clippedSrcRect->fTop -= clippedDstPoint->fY; in GrClipSrcRectAndDstPoint() [all …]
|
/external/skqp/src/gpu/ |
D | SkGpuDevice_drawTexture.cpp | 187 SkRect clippedSrcRect; in drawTextureProducer() local 196 clippedSrcRect = *srcRect; in drawTextureProducer() 197 if (!clippedSrcRect.intersect(srcBounds)) { in drawTextureProducer() 203 srcToDstMatrix.mapRect(&clippedDstRect, clippedSrcRect); in drawTextureProducer() 205 clippedSrcRect = *srcRect; in drawTextureProducer() 212 clippedSrcRect = srcBounds; in drawTextureProducer() 227 this->drawTextureProducerImpl(producer, clippedSrcRect, clippedDstRect, constraint, viewMatrix, in drawTextureProducer() 232 const SkRect& clippedSrcRect, in drawTextureProducerImpl() argument 274 if (can_ignore_bilerp_constraint(*producer, clippedSrcRect, combinedMatrix, in drawTextureProducerImpl() 290 auto fp = producer->createFragmentProcessor(*textureMatrix, clippedSrcRect, constraintMode, in drawTextureProducerImpl() [all …]
|
D | SkGpuDevice.cpp | 694 SkRect clippedSrcRect = SkRect::Make(*clippedSrcIRect); in determine_clipped_src_rect() local 695 inv.mapRect(&clippedSrcRect); in determine_clipped_src_rect() 697 if (!clippedSrcRect.intersect(*srcRectPtr)) { in determine_clipped_src_rect() 702 clippedSrcRect.roundOut(clippedSrcIRect); in determine_clipped_src_rect() 818 SkIRect clippedSrcRect; in drawBitmap() local 840 &tileSize, &clippedSrcRect)) { in drawBitmap() 841 this->drawTiledBitmap(bitmap, viewMatrix, SkMatrix::I(), srcRect, clippedSrcRect, in drawBitmap() 911 SkRect clippedSrcRect = SkRect::Make(clippedSrcIRect); in drawTiledBitmap() local 923 if (!SkRect::Intersects(tileR, clippedSrcRect)) { in drawTiledBitmap() 1177 SkIRect clippedSrcRect; in drawBitmapRect() local [all …]
|
D | SkGpuDevice.h | 193 const SkIRect& clippedSrcRect, 230 const SkRect& clippedSrcRect,
|
D | GrRenderTargetContext.cpp | 961 SkRect clippedSrcRect = srcRect; in drawTexture() local 963 &clippedSrcRect)) { in drawTexture() 966 auto op = GrTextureOp::Make(fContext, std::move(proxy), filter, color, clippedSrcRect, in drawTexture()
|
/external/skia/tests/ |
D | ReadPixelsTest.cpp | 176 SkIRect clippedSrcRect = DEV_RECT; in check_read() local 177 if (!clippedSrcRect.intersect(srcRect)) { in check_read() 178 clippedSrcRect.setEmpty(); in check_read() 187 if (clippedSrcRect.contains(devx, devy)) { in check_read() 218 if (clippedSrcRect.contains(devx, devy)) { in check_read()
|
/external/skia/src/gpu/ |
D | GrSurfaceFillContext.cpp | 442 SkIRect clippedSrcRect; in blitTexture() local 448 &clippedSrcRect, in blitTexture() 454 auto dstRect = SkIRect::MakePtSize(clippedDstPoint, clippedSrcRect.size()); in blitTexture() 455 auto srcRectF = SkRect::Make(clippedSrcRect); in blitTexture()
|
D | SkGpuDevice_drawTexture.cpp | 141 SkRect clippedSrcRect = SkRect::Make(clippedSrcIRect); in determine_clipped_src_rect() local 142 inv.mapRect(&clippedSrcRect); in determine_clipped_src_rect() 144 if (!clippedSrcRect.intersect(*srcRectPtr)) { in determine_clipped_src_rect() 148 clippedSrcRect.roundOut(&clippedSrcIRect); in determine_clipped_src_rect() 576 SkRect clippedSrcRect = SkRect::Make(clippedSrcIRect); in draw_tiled_bitmap() local 587 if (!SkRect::Intersects(tileR, clippedSrcRect)) { in draw_tiled_bitmap()
|
/external/skqp/tests/ |
D | ReadPixelsTest.cpp | 181 SkIRect clippedSrcRect = DEV_RECT; in check_read() local 182 if (!clippedSrcRect.intersect(srcRect)) { in check_read() 183 clippedSrcRect.setEmpty(); in check_read() 192 if (clippedSrcRect.contains(devx, devy)) { in check_read() 223 if (clippedSrcRect.contains(devx, devy)) { in check_read()
|