Home
last modified time | relevance | path

Searched refs:clippedSrcRect (Results 1 – 10 of 10) sorted by relevance

/external/skqp/src/gpu/ops/
DGrCopySurfaceOp.cpp20 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/
DGrRect.h109 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/
DSkGpuDevice_drawTexture.cpp187 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 …]
DSkGpuDevice.cpp694 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 …]
DSkGpuDevice.h193 const SkIRect& clippedSrcRect,
230 const SkRect& clippedSrcRect,
DGrRenderTargetContext.cpp961 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/
DReadPixelsTest.cpp176 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/
DGrSurfaceFillContext.cpp442 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()
DSkGpuDevice_drawTexture.cpp141 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/
DReadPixelsTest.cpp181 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()