Home
last modified time | relevance | path

Searched refs:srcRect (Results 1 – 25 of 247) sorted by relevance

12345678910

/third_party/flutter/skia/src/gpu/gl/
DGrGLGpuCommandBuffer.h24 void copy(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override { in copy() argument
25 fGpu->copySurface(fTexture, src, srcRect, dstPoint); in copy()
28 void transferFrom(const SkIRect& srcRect, GrColorType surfaceColorType, in transferFrom() argument
31 fGpu->transferPixelsFrom(fTexture, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
32 srcRect.height(), surfaceColorType, bufferColorType, in transferFrom()
70 void copy(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override { in copy() argument
71 fGpu->copySurface(fRenderTarget, src,srcRect, dstPoint); in copy()
74 void transferFrom(const SkIRect& srcRect, GrColorType surfaceColorType, in transferFrom() argument
77 fGpu->transferPixelsFrom(fRenderTarget, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
78 srcRect.height(), surfaceColorType, bufferColorType, in transferFrom()
/third_party/flutter/skia/src/gpu/effects/generated/
DGrMagnifierEffect.cpp28 auto srcRect = _outer.srcRect; in emitCode() local
29 (void)srcRect; in emitCode()
91 auto srcRect = _outer.srcRect; in onSetData() local
92 (void)srcRect; in onSetData()
108 SkScalar y = srcRect.y() * invH; in onSetData()
110 y = 1.0f - (srcRect.height() / bounds.height()) - y; in onSetData()
113 pdman.set2f(offset, srcRect.x() * invW, y); in onSetData()
146 if (srcRect != that.srcRect) return false; in onIsEqual()
158 , srcRect(src.srcRect) in GrMagnifierEffect()
184 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)); in TestCreate() local
[all …]
DGrMagnifierEffect.h20 SkRect srcRect, float xInvZoom, float yInvZoom, in Make() argument
23 src, bounds, srcRect, xInvZoom, yInvZoom, xInvInset, yInvInset)); in Make()
31 SkRect srcRect; variable
38 GrMagnifierEffect(sk_sp<GrTextureProxy> src, SkIRect bounds, SkRect srcRect, float xInvZoom, in GrMagnifierEffect() argument
44 , srcRect(srcRect) in GrMagnifierEffect()
/third_party/skia/gm/
Dpictureimagefilter.cpp93 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); in onDraw() local
97 sk_sp<SkImageFilter> pictureSourceSrcRect(SkImageFilters::Picture(fPicture, srcRect)); in onDraw()
127 canvas->translate(-0.9f*srcRect.fLeft, -2.45f*srcRect.fTop); in onDraw()
137 canvas->scale(200 / srcRect.width(), 200 / srcRect.height()); in onDraw()
138 canvas->translate(-srcRect.fLeft, -srcRect.fTop); in onDraw()
139 fill_rect_filtered(canvas, srcRect, pictureSource); in onDraw()
142 canvas->translate(srcRect.width(), 0); in onDraw()
143 fill_rect_filtered(canvas, srcRect, pictureSourceResampled); in onDraw()
146 canvas->translate(srcRect.width(), 0); in onDraw()
147 fill_rect_filtered(canvas, srcRect, pictureSourcePixelated); in onDraw()
Dgpu_blur_utils.cpp120 auto srcRect = SkIRect::MakeSize(src.dimensions()); in slow_blur() local
121 return tileInto(std::move(src), srcRect, dstB.size(), -outset, SkTileMode::kClamp); in slow_blur()
199 SkIRect srcRect = SkIRect::MakeSize(src.dimensions()); in run() local
201 srcRect = SkIRect::MakeXYWH(2.f*srcRect.width() /8.f, in run()
202 1.f*srcRect.height()/8.f, in run()
203 5.f*srcRect.width() /8.f, in run()
204 6.f*srcRect.height()/8.f); in run()
206 int srcW = srcRect.width(); in run()
207 int srcH = srcRect.height(); in run()
213 srcRect.makeOutset(srcW/5, srcH/5) in run()
[all …]
Dresizeimagefilter.cpp81 const SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
84 this->draw(canvas, srcRect, deviceSize, samplings[0], nullptr); in onDraw()
86 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
87 this->draw(canvas, srcRect, deviceSize, samplings[1], nullptr); in onDraw()
89 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
90 this->draw(canvas, srcRect, deviceSize, samplings[2], nullptr); in onDraw()
92 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
93 this->draw(canvas, srcRect, deviceSize, samplings[3], nullptr); in onDraw()
112 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
113 this->draw(canvas, srcRect, deviceSize, samplings[3], std::move(source)); in onDraw()
Dtileimagefilter.cpp69 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(image->width()/4), in onDraw() local
78 sk_sp<SkImageFilter> filter(SkImageFilters::Tile(srcRect, dstRect, in onDraw()
85 canvas->drawRect(srcRect, red); in onDraw()
102 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width()), in onDraw() local
106 sk_sp<SkImageFilter> tile(SkImageFilters::Tile(srcRect, dstRect, nullptr)); in onDraw()
117 canvas->drawRect(srcRect, red); in onDraw()
126 SkRect srcRect = SkRect::MakeXYWH(0, 0, 50, 50); in onDraw() local
135 paint.setImageFilter(SkImageFilters::Tile(srcRect, dstRect, std::move(green))); in onDraw()
/third_party/flutter/skia/gm/
Dpictureimagefilter.cpp94 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); in onDraw() local
98 sk_sp<SkImageFilter> pictureSourceSrcRect(SkImageFilters::Picture(fPicture, srcRect)); in onDraw()
128 canvas->translate(-0.9f*srcRect.fLeft, -2.45f*srcRect.fTop); in onDraw()
138 canvas->scale(200 / srcRect.width(), 200 / srcRect.height()); in onDraw()
139 canvas->translate(-srcRect.fLeft, -srcRect.fTop); in onDraw()
140 fill_rect_filtered(canvas, srcRect, pictureSource); in onDraw()
143 canvas->translate(srcRect.width(), 0); in onDraw()
144 fill_rect_filtered(canvas, srcRect, pictureSourceResampled); in onDraw()
147 canvas->translate(srcRect.width(), 0); in onDraw()
148 fill_rect_filtered(canvas, srcRect, pictureSourcePixelated); in onDraw()
Dresizeimagefilter.cpp76 const SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
79 this->draw(canvas, srcRect, deviceSize, kNone_SkFilterQuality, nullptr); in onDraw()
81 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
82 this->draw(canvas, srcRect, deviceSize, kLow_SkFilterQuality, nullptr); in onDraw()
84 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
85 this->draw(canvas, srcRect, deviceSize, kMedium_SkFilterQuality, nullptr); in onDraw()
87 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
88 this->draw(canvas, srcRect, deviceSize, kHigh_SkFilterQuality, nullptr); in onDraw()
106 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
107 this->draw(canvas, srcRect, deviceSize, kHigh_SkFilterQuality, std::move(source)); in onDraw()
Dmatriximagefilter.cpp55 SkRect srcRect = SkRect::MakeWH(96, 96); variable
58 draw(canvas, srcRect, checkerboard, matrix, kNone_SkFilterQuality);
60 canvas->translate(srcRect.width() + margin, 0);
61 draw(canvas, srcRect, checkerboard, matrix, kLow_SkFilterQuality);
65 canvas->translate(srcRect.width() + margin, 0);
66 draw(canvas, srcRect, checkerboard, matrix, kMedium_SkFilterQuality);
68 canvas->translate(srcRect.width() + margin, 0);
69 draw(canvas, srcRect, checkerboard, matrix, kHigh_SkFilterQuality);
Dtileimagefilter.cpp71 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(image->width()/4), in onDraw() local
80 sk_sp<SkImageFilter> filter(SkImageFilters::Tile(srcRect, dstRect, in onDraw()
87 canvas->drawRect(srcRect, red); in onDraw()
104 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width()), in onDraw() local
108 sk_sp<SkImageFilter> tile(SkImageFilters::Tile(srcRect, dstRect, nullptr)); in onDraw()
119 canvas->drawRect(srcRect, red); in onDraw()
128 SkRect srcRect = SkRect::MakeXYWH(0, 0, 50, 50); in onDraw() local
137 paint.setImageFilter(SkImageFilters::Tile(srcRect, dstRect, std::move(green))); in onDraw()
/third_party/flutter/skia/samplecode/
DSampleTextureDomain.cpp39 SkRect srcRect; in onDrawContent() local
46 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
48 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent()
57 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
59 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent()
64 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
66 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent()
70 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
74 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DFramebuffer9.cpp262 RECT srcRect; in blitImpl() local
263 srcRect.left = sourceArea.x; in blitImpl()
264 srcRect.right = sourceArea.x + sourceArea.width; in blitImpl()
265 srcRect.top = sourceArea.y; in blitImpl()
266 srcRect.bottom = sourceArea.y + sourceArea.height; in blitImpl()
279 srcRect.left += (scissor->x - dstRect.left); in blitImpl()
284 srcRect.top += (scissor->y - dstRect.top); in blitImpl()
289 srcRect.right -= (dstRect.right - (scissor->x + scissor->width)); in blitImpl()
294 srcRect.bottom -= (dstRect.bottom - (scissor->y + scissor->height)); in blitImpl()
302 srcRect.left += -dstRect.left; in blitImpl()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DFramebuffer9.cpp260 RECT srcRect; in blitImpl() local
261 srcRect.left = sourceArea.x; in blitImpl()
262 srcRect.right = sourceArea.x + sourceArea.width; in blitImpl()
263 srcRect.top = sourceArea.y; in blitImpl()
264 srcRect.bottom = sourceArea.y + sourceArea.height; in blitImpl()
277 srcRect.left += (scissor->x - dstRect.left); in blitImpl()
282 srcRect.top += (scissor->y - dstRect.top); in blitImpl()
287 srcRect.right -= (dstRect.right - (scissor->x + scissor->width)); in blitImpl()
292 srcRect.bottom -= (dstRect.bottom - (scissor->y + scissor->height)); in blitImpl()
300 srcRect.left += -dstRect.left; in blitImpl()
[all …]
/third_party/flutter/skia/src/core/
DSkGpuBlurUtils.cpp168 const SkIRect& srcRect, in convolve_gaussian() argument
179 SkASSERT(srcRect.width() <= finalW && srcRect.height() <= finalH); in convolve_gaussian()
187 srcRect.width(), in convolve_gaussian()
188 srcRect.height(), in convolve_gaussian()
204 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian()
298 SkIRect srcRect; in decimate() local
300 srcRect = SkIRect::MakeWH(finalW, finalH); in decimate()
302 srcRect = *contentRect; in decimate()
303 srcRect.offset(*srcOffset); in decimate()
306 scale_irect_roundout(&srcRect, 1.0f / scaleFactorX, 1.0f / scaleFactorY); in decimate()
[all …]
/third_party/skia/src/gpu/
DGrCopyRenderTask.cpp17 SkIRect srcRect, in Make() argument
26 srcRect, in Make()
28 &srcRect, in Make()
35 srcRect, in Make()
43 SkIRect srcRect, in GrCopyRenderTask() argument
47 : fSrc(std::move(src)), fSrcRect(srcRect), fDstPoint(dstPoint), fOrigin(origin) { in GrCopyRenderTask()
88 SkIRect srcRect = GrNativeRect::MakeIRectRelativeTo(fOrigin, srcSurface->height(), fSrcRect); in onExecute() local
91 dstPoint.fY = dstSurface->height() - dstPoint.fY - srcRect.height(); in onExecute()
93 return flushState->gpu()->copySurface(dstSurface, srcSurface, srcRect, dstPoint); in onExecute()
DSurfaceContext.cpp194 auto srcRect = SkIRect::MakePtSize(pt, dst.dimensions()); in readPixels() local
199 srcRect, in readPixels()
469 SkIRect srcRect = SkIRect::MakeSize(srcBase.dimensions()); in internalWritePixels() local
471 if (!this->copy(std::move(tempProxy), srcRect, dstPoint)) { in internalWritePixels()
545 const SkIRect& srcRect, in asyncRescaleAndReadPixels() argument
568 bool needsRescale = srcRect.size() != info.dimensions() || in asyncRescaleAndReadPixels()
598 int x = srcRect.fLeft; in asyncRescaleAndReadPixels()
599 int y = srcRect.fTop; in asyncRescaleAndReadPixels()
601 tempFC = this->rescale(info, kTopLeft_GrSurfaceOrigin, srcRect, rescaleGamma, rescaleMode); in asyncRescaleAndReadPixels()
792 const SkIRect& srcRect, in asyncRescaleAndReadPixelsYUV420() argument
[all …]
/third_party/flutter/skia/tests/
DCopySurfaceTest.cpp76 for (auto srcRect : kSrcRects) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
114 result = dstContext->testCopy(src.get(), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
118 src.get(), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
122 SkIPoint dstOffset = { dstPoint.fX - srcRect.fLeft, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
123 dstPoint.fY - srcRect.fTop }; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
126 srcRect.width(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
127 srcRect.height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
130 if (!copiedSrcRect.intersect(srcRect, SkIRect::MakeWH(kW, kH))) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
135 copiedDstRect.fLeft += copiedSrcRect.fLeft - srcRect.fLeft; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
136 copiedDstRect.fTop += copiedSrcRect.fTop - srcRect.fTop; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/skia/tests/
DCopySurfaceTest.cpp77 for (const SkIRect& srcRect : kSrcRects) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
113 srcRect, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
118 std::move(srcView), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
122 SkIPoint dstOffset = { dstPoint.fX - srcRect.fLeft, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
123 dstPoint.fY - srcRect.fTop }; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
126 srcRect.width(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
127 srcRect.height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
130 if (!copiedSrcRect.intersect(srcRect, SkIRect::MakeWH(kW, kH))) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
135 copiedDstRect.fLeft += copiedSrcRect.fLeft - srcRect.fLeft; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
136 copiedDstRect.fTop += copiedSrcRect.fTop - srcRect.fTop; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/flutter/skia/src/effects/imagefilters/
DSkTileImageFilter.cpp28 SkTileImageFilterImpl(const SkRect& srcRect, const SkRect& dstRect, sk_sp<SkImageFilter> input) in SkTileImageFilterImpl() argument
30 , fSrcRect(srcRect) in SkTileImageFilterImpl()
56 sk_sp<SkImageFilter> SkTileImageFilter::Make(const SkRect& srcRect, const SkRect& dstRect, in Make() argument
58 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Make()
61 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { in Make()
63 if (!ir.intersect(srcRect)) { in Make()
67 return SkOffsetImageFilter::Make(dstRect.x() - srcRect.x(), in Make()
68 dstRect.y() - srcRect.y(), in Make()
72 return sk_sp<SkImageFilter>(new SkTileImageFilterImpl(srcRect, dstRect, std::move(input))); in Make()
116 SkRect srcRect; in onFilterImage() local
[all …]
/third_party/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp30 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, in SkMagnifierImageFilter() argument
33 , fSrcRect(srcRect) in SkMagnifierImageFilter()
35 SkASSERT(srcRect.left() >= 0 && srcRect.top() >= 0 && inset >= 0); in SkMagnifierImageFilter()
56 const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, in Magnifier() argument
58 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) { in Magnifier()
65 if (srcRect.fLeft < 0 || srcRect.fTop < 0) { in Magnifier()
68 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset, std::move(input), in Magnifier()
98 SkRect srcRect, in make_magnifier_fp() argument
145 "offset", SkV2{srcRect.x(), srcRect.y()}); in make_magnifier_fp()
187 SkRect srcRect = fSrcRect.makeOffset((1.f - invXZoom) * input->subset().x(), in onFilterImage() local
[all …]
/third_party/skia/experimental/graphite/src/mtl/
DMtlBlitCommandEncoder.h44 SkIRect srcRect, in copyFromTexture() argument
51 sourceOrigin: MTLOriginMake(srcRect.left(), srcRect.top(), 0) in copyFromTexture()
52 sourceSize: MTLSizeMake(srcRect.width(), srcRect.height(), 1) in copyFromTexture()
56 destinationBytesPerImage: bufferRowBytes * srcRect.height()]; in copyFromTexture()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h32 void copy(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override { in copy() argument
33 fGpu->copySurface(fTexture, src, srcRect, dstPoint); in copy()
35 void transferFrom(const SkIRect& srcRect, GrColorType surfaceColorType, in transferFrom() argument
38 fGpu->transferPixelsFrom(fTexture, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
39 srcRect.height(), surfaceColorType, bufferColorType, in transferFrom()
70 void transferFrom(const SkIRect& srcRect, GrColorType textureColorType,
73 void copy(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override;
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpuCommandBuffer.cpp33 void GrDawnGpuTextureCommandBuffer::copy(GrSurface* src, const SkIRect& srcRect, in copy() argument
38 uint32_t width = srcRect.width(), height = srcRect.height(); in copy()
39 size_t rowBytes = srcRect.width() * GrBytesPerPixel(src->config()); in copy()
51 srcTextureView.origin = {(uint32_t) srcRect.x(), (uint32_t) srcRect.y(), 0}; in copy()
66 void GrDawnGpuTextureCommandBuffer::transferFrom(const SkIRect& srcRect, in transferFrom() argument
71 fGpu->transferPixelsFrom(fTexture, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
72 srcRect.height(), surfaceColorType, bufferColorType, transferBuffer, in transferFrom()
172 void GrDawnGpuRTCommandBuffer::transferFrom(const SkIRect& srcRect, GrColorType surfaceColorType, in transferFrom() argument
175 fGpu->transferPixelsFrom(fRenderTarget, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
176 srcRect.height(), surfaceColorType, bufferColorType, transferBuffer, in transferFrom()
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrMagnifierEffect.fp11 layout(ctype=SkRect) in float4 srcRect;
49 SkScalar y = srcRect.y() * invH;
51 y = 1.0f - (srcRect.height() / bounds.height()) - y;
54 pdman.set2f(offset, srcRect.x() * invW, y);
81 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height));
85 srcRect,
86 srcRect.width() / bounds.width(),
87 srcRect.height() / bounds.height(),

12345678910