Home
last modified time | relevance | path

Searched refs:dstRect (Results 1 – 25 of 117) sorted by relevance

12345

/external/skqp/src/effects/imagefilters/
DSkImageSource.cpp29 const SkRect& dstRect, in Make() argument
36 srcRect, dstRect, in Make()
50 const SkRect& dstRect, in SkImageSource() argument
55 , fDstRect(dstRect) in SkImageSource()
83 SkRect dstRect; in onFilterImage() local
84 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage()
88 int iLeft = dstRect.fLeft; in onFilterImage()
89 int iTop = dstRect.fTop; in onFilterImage()
92 if (dstRect.width() == bounds.width() && dstRect.height() == bounds.height() && in onFilterImage()
93 iLeft == dstRect.fLeft && iTop == dstRect.fTop) { in onFilterImage()
[all …]
DSkTileImageFilter.cpp24 sk_sp<SkImageFilter> SkTileImageFilter::Make(const SkRect& srcRect, const SkRect& dstRect, in Make() argument
26 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Make()
29 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { in Make()
30 SkRect ir = dstRect; in Make()
35 return SkOffsetImageFilter::Make(dstRect.x() - srcRect.x(), in Make()
36 dstRect.y() - srcRect.y(), in Make()
40 return sk_sp<SkImageFilter>(new SkTileImageFilter(srcRect, dstRect, std::move(input))); in Make()
52 SkRect dstRect; in onFilterImage() local
53 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage()
54 if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) { in onFilterImage()
[all …]
DSkMorphologyImageFilter.cpp387 const SkIRect& dstRect, in apply_morphology_rect() argument
398 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect()
405 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() argument
414 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect_no_bounds()
421 const SkIRect& dstRect, in apply_morphology_pass() argument
426 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass()
427 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass()
428 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass()
433 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass()
435 upperDstRect.fLeft = dstRect.right() - radius; in apply_morphology_pass()
[all …]
/external/skia/src/effects/imagefilters/
DSkImageImageFilter.cpp23 SkImageImageFilter(sk_sp<SkImage> image, const SkRect& srcRect, const SkRect& dstRect, in SkImageImageFilter() argument
28 , fDstRect(dstRect) in SkImageImageFilter()
56 const SkRect& dstRect, in Image() argument
63 std::move(image), srcRect, dstRect, sampling)); in Image()
104 SkRect dstRect; in onFilterImage() local
105 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage()
109 int iLeft = dstRect.fLeft; in onFilterImage()
110 int iTop = dstRect.fTop; in onFilterImage()
113 if (dstRect.width() == bounds.width() && dstRect.height() == bounds.height() && in onFilterImage()
114 iLeft == dstRect.fLeft && iTop == dstRect.fTop) { in onFilterImage()
[all …]
DSkTileImageFilter.cpp26 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, sk_sp<SkImageFilter> input) in SkTileImageFilter() argument
29 , fDstRect(dstRect) {} in SkTileImageFilter()
102 SkRect dstRect; in onFilterImage() local
103 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage()
104 if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) { in onFilterImage()
108 const SkIRect dstIRect = dstRect.roundOut(); in onFilterImage()
165 canvas->translate(-dstRect.fLeft, -dstRect.fTop); in onFilterImage()
166 canvas->drawRect(dstRect, paint); in onFilterImage()
DSkMorphologyImageFilter.cpp369 const SkIRect& dstRect, in apply_morphology_rect() argument
381 surfaceFillContext->fillRectToRectWithFP(srcRect, dstRect, std::move(fp)); in apply_morphology_rect()
388 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() argument
394 surfaceFillContext->fillRectToRectWithFP(srcRect, dstRect, std::move(fp)); in apply_morphology_rect_no_bounds()
401 const SkIRect& dstRect, in apply_morphology_pass() argument
406 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass()
407 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass()
408 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass()
413 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass()
415 upperDstRect.fLeft = dstRect.right() - radius; in apply_morphology_pass()
[all …]
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DFramebuffer9.cpp268 RECT dstRect; in blitImpl() local
269 dstRect.left = destArea.x; in blitImpl()
270 dstRect.right = destArea.x + destArea.width; in blitImpl()
271 dstRect.top = destArea.y; in blitImpl()
272 dstRect.bottom = destArea.y + destArea.height; in blitImpl()
277 if (dstRect.left < scissor->x) in blitImpl()
279 srcRect.left += (scissor->x - dstRect.left); in blitImpl()
280 dstRect.left = scissor->x; in blitImpl()
282 if (dstRect.top < scissor->y) in blitImpl()
284 srcRect.top += (scissor->y - dstRect.top); in blitImpl()
[all …]
/external/skqp/samplecode/
DSampleTextureDomain.cpp46 SkRect dstRect; in onDrawContent() local
53 dstRect.setXYWH(5, 5, 305, 305); in onDrawContent()
54 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent()
64 dstRect.setXYWH(1, 1, 3, 3); in onDrawContent()
65 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent()
71 dstRect.setXYWH(405, 5, 305, 305); in onDrawContent()
72 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent()
77 dstRect.setXYWH(5, 405, 305, 305); in onDrawContent()
80 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent()
90 dstRect.setXYWH(-150, -150, 300, 300); in onDrawContent()
[all …]
/external/skia/gm/
Dtileimagefilter.cpp73 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw() local
78 sk_sp<SkImageFilter> filter(SkImageFilters::Tile(srcRect, dstRect, in onDraw()
86 canvas->drawRect(dstRect, blue); in onDraw()
104 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() local
106 sk_sp<SkImageFilter> tile(SkImageFilters::Tile(srcRect, dstRect, nullptr)); in onDraw()
113 canvas->clipRect(dstRect); in onDraw()
114 canvas->saveLayer(&dstRect, &paint); in onDraw()
118 canvas->drawRect(dstRect, blue); in onDraw()
127 SkRect dstRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
135 paint.setImageFilter(SkImageFilters::Tile(srcRect, dstRect, std::move(green))); in onDraw()
[all …]
Dverylargebitmap.cpp63 SkRect dstRect = SkRect::MakeWH(128.f, 128.f); in show_image() local
66 canvas->clipRect(dstRect); in show_image()
69 canvas->drawRect(dstRect, borderPaint); in show_image()
71 dstRect.offset(SkIntToScalar(150), 0); in show_image()
75 canvas->drawImageRect(image, subset, dstRect, SkSamplingOptions(), nullptr, in show_image()
77 canvas->drawRect(dstRect, borderPaint); in show_image()
79 dstRect.offset(SkIntToScalar(150), 0); in show_image()
80 canvas->drawImageRect(image, dstRect, SkSamplingOptions(), nullptr); in show_image()
81 canvas->drawRect(dstRect, borderPaint); in show_image()
Ddrawminibitmaprect.cpp96 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local
126 canvas->drawImageRect(fImage.get(), SkRect::Make(srcRect), dstRect, in onDraw()
131 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
133 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { in onDraw()
135 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
Drectangletexture.cpp194 auto dstRect = SkRect::MakeXYWH( 0, 0, .50f*w, .50f*h); in onDraw() local
195 canvas->drawImageRect(fGradImgs[i], srcRect, dstRect, s, nullptr, in onDraw()
206 auto dstRect = SkRect::Make(fSmallImg->dimensions()).makeOutset(kOutset, kOutset); in onDraw() local
225 canvas->drawRect(dstRect, paint); in onDraw()
226 canvas->translate(dstRect.width() + kPad, 0); in onDraw()
229 canvas->translate(0, dstRect.height() + kPad); in onDraw()
232 canvas->translate((dstRect.width() + kPad)*kSkTileModeCount, 0); in onDraw()
Ddrawbitmaprect.cpp183 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local
211 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, SkSamplingOptions(), in onDraw()
219 SkScalar baseline = dstRect.height() + font.getSize() + SK_Scalar1 * 3; in onDraw()
224 canvas->drawRect(dstRect, blackPaint); in onDraw()
226 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
228 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw()
230 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
249 fProc(canvas, bm.asImage().get(), bm, srcRect, dstRect, in onDraw()
/external/skqp/gm/
Dtileimagefilter.cpp64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw() local
70 dstRect, in onDraw()
78 canvas->drawRect(dstRect, blue); in onDraw()
94 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() local
96 sk_sp<SkImageFilter> tile(SkTileImageFilter::Make(srcRect, dstRect, nullptr)); in onDraw()
103 canvas->clipRect(dstRect); in onDraw()
104 canvas->saveLayer(&dstRect, &paint); in onDraw()
108 canvas->drawRect(dstRect, blue); in onDraw()
114 dstRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw()
121 tile = SkTileImageFilter::Make(srcRect, dstRect, std::move(green)); in onDraw()
[all …]
Dverylargebitmap.cpp50 SkRect dstRect = SkRect::MakeWH(128.f, 128.f); in show_image() local
53 canvas->clipRect(dstRect); in show_image()
56 canvas->drawRect(dstRect, borderPaint); in show_image()
58 dstRect.offset(SkIntToScalar(150), 0); in show_image()
62 canvas->drawImageRect(image, subset, dstRect, nullptr); in show_image()
63 canvas->drawRect(dstRect, borderPaint); in show_image()
65 dstRect.offset(SkIntToScalar(150), 0); in show_image()
66 canvas->drawImageRect(image, dstRect, nullptr); in show_image()
67 canvas->drawRect(dstRect, borderPaint); in show_image()
Ddrawbitmaprect.cpp160 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local
188 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, nullptr); in onDraw()
195 SkScalar baseline = dstRect.height() + font.getSize() + SK_Scalar1 * 3; in onDraw()
200 canvas->drawRect(dstRect, blackPaint); in onDraw()
202 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
204 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw()
206 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
229 fProc(canvas, image.get(), bm, srcRect, dstRect, &paint); in onDraw()
Ddrawminibitmaprect.cpp84 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local
114 canvas->drawImageRect(fImage.get(), srcRect, dstRect, &paint, in onDraw()
118 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
120 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { in onDraw()
122 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
/external/skqp/src/core/
DSkGpuBlurUtils.cpp75 const SkIRect& dstRect, in convolve_gaussian_1d() argument
91 SkRect::Make(dstRect), localMatrix); in convolve_gaussian_1d()
189 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian() local
191 *contentRect = dstRect; in convolve_gaussian()
192 convolve_gaussian_1d(dstRenderTargetContext.get(), clip, dstRect, srcOffset, in convolve_gaussian()
204 topRect = SkIRect::MakeLTRB(0, 0, dstRect.right(), midRect.top()); in convolve_gaussian()
205 bottomRect = SkIRect::MakeLTRB(0, midRect.bottom(), dstRect.right(), dstRect.bottom()); in convolve_gaussian()
209 SkIRect::MakeLTRB(midRect.right(), midRect.top(), dstRect.width(), midRect.bottom()); in convolve_gaussian()
210 dstRect.fTop = midRect.top(); in convolve_gaussian()
211 dstRect.fBottom = midRect.bottom(); in convolve_gaussian()
[all …]
/external/skqp/src/gpu/
DSkGpuDevice_drawTexture.cpp106 SkRect dstRect = dst ? *dst : srcRect; in draw_texture() local
110 srcToDst.setRectToRect(srcRect, dstRect, SkMatrix::kFill_ScaleToFit); in draw_texture()
112 srcToDst.mapRect(&dstRect, srcRect); in draw_texture()
138 rtc->drawTexture(clip, std::move(proxy), filter, color, srcRect, dstRect, aaFlags, constraint, in draw_texture()
146 const SkRect* srcRect, const SkRect* dstRect, in drawPinnedTextureProxy() argument
151 draw_texture(paint, viewMatrix, srcRect, dstRect, aa, constraint, std::move(proxy), in drawPinnedTextureProxy()
157 this->drawTextureProducer(&adjuster, srcRect, dstRect, constraint, viewMatrix, paint, false); in drawPinnedTextureProxy()
162 const SkRect* dstRect, in drawTextureProducer() argument
175 draw_texture(paint, viewMatrix, srcRect, dstRect, aa, constraint, std::move(proxy), in drawTextureProducer()
192 if (!dstRect) { in drawTextureProducer()
[all …]
/external/skqp/tests/
DGrOpListFlushTest.cpp50 SkRect dstRect = SkRect::MakeWH(1, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
53 canvas1->drawRect(dstRect, paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
60 canvas2->drawImageRect(image.get(), srcRect, dstRect, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
62 dstRect.fLeft = i+1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
63 dstRect.fRight = dstRect.fLeft + 1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
65 canvas1->drawImageRect(image.get(), srcRect, dstRect, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/tests/
DGrOpListFlushTest.cpp51 SkRect dstRect = SkRect::MakeWH(1, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
54 canvas1->drawRect(dstRect, paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
61 canvas2->drawImageRect(image.get(), srcRect, dstRect, SkSamplingOptions(), nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
64 dstRect.fLeft = i+1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
65 dstRect.fRight = dstRect.fLeft + 1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
67 canvas1->drawImageRect(image.get(), srcRect, dstRect, SkSamplingOptions(), nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/swiftshader/src/OpenGL/libGLESv2/
DDevice.cpp903 …bool Device::ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX, bo… in ClipDstRect() argument
905 if(dstRect.x0 < clipRect.x0) in ClipDstRect()
907 …float offset = (static_cast<float>(clipRect.x0 - dstRect.x0) / static_cast<float>(dstRect.width())… in ClipDstRect()
920 dstRect.x0 = clipRect.x0; in ClipDstRect()
922 if(dstRect.x1 > clipRect.x1) in ClipDstRect()
924 …float offset = (static_cast<float>(dstRect.x1 - clipRect.x1) / static_cast<float>(dstRect.width())… in ClipDstRect()
937 dstRect.x1 = clipRect.x1; in ClipDstRect()
939 if(dstRect.y0 < clipRect.y0) in ClipDstRect()
941 …float offset = (static_cast<float>(clipRect.y0 - dstRect.y0) / static_cast<float>(dstRect.height()… in ClipDstRect()
954 dstRect.y0 = clipRect.y0; in ClipDstRect()
[all …]
/external/deqp/framework/platform/raspi/
DtcuRaspiPlatform.cpp127 VC_RECT_T dstRect, srcRect; in Window() local
129 dstRect.x = 0; in Window()
130 dstRect.y = 0; in Window()
131 dstRect.width = width; in Window()
132 dstRect.height = height; in Window()
145 …m_dispmanElement = vc_dispmanx_element_add(dispmanUpdate, m_dispmanDisplay, 0/*layer*/, &dstRect, … in Window()
/external/skia/src/gpu/
DGrSurfaceFillContext.h143 void fillRectWithFP(const SkIRect& dstRect, std::unique_ptr<GrFragmentProcessor> fp);
149 void fillRectWithFP(const SkIRect& dstRect, in fillRectWithFP() argument
153 this->fillRectWithFP(dstRect, std::move(fp)); in fillRectWithFP()
158 const SkIRect& dstRect, in fillRectToRectWithFP() argument
160 SkMatrix lm = SkMatrix::RectToRect(SkRect::Make(dstRect), srcRect); in fillRectToRectWithFP()
161 this->fillRectWithFP(dstRect, lm, std::move(fp)); in fillRectToRectWithFP()
166 const SkIRect& dstRect, in fillRectToRectWithFP() argument
168 this->fillRectToRectWithFP(SkRect::Make(srcRect), dstRect, std::move(fp)); in fillRectToRectWithFP()
/external/skia/modules/canvaskit/
Dskottie.js75 CanvasKit.Animation.prototype.render = function(canvas, dstRect) { argument
76 copyRectToWasm(dstRect, _scratchFourFloatsAPtr);
96 CanvasKit.ManagedAnimation.prototype.render = function(canvas, dstRect) { argument
97 copyRectToWasm(dstRect, _scratchFourFloatsAPtr);

12345