/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | Framebuffer9.cpp | 268 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 in blitImpl() [all...] |
/third_party/skia/gm/ |
H A D | tileimagefilter.cpp | 73 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), variable 78 sk_sp<SkImageFilter> filter(SkImageFilters::Tile(srcRect, dstRect, 86 canvas->drawRect(dstRect, blue); 104 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), variable 106 sk_sp<SkImageFilter> tile(SkImageFilters::Tile(srcRect, dstRect, nullptr)); 113 canvas->clipRect(dstRect); 114 canvas->saveLayer(&dstRect, &paint); 118 canvas->drawRect(dstRect, blue); 127 SkRect dstRect = SkRect::MakeXYWH(0, 0, 100, 100); variable 135 paint.setImageFilter(SkImageFilters::Tile(srcRect, dstRect, st [all...] |
H A D | verylargebitmap.cpp | 63 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()
|
H A D | drawminibitmaprect.cpp | 96 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; variable 126 canvas->drawImageRect(fImage.get(), SkRect::Make(srcRect), dstRect, 131 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 133 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { 135 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY);
|
H A D | drawbitmaprect.cpp | 182 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; variable 211 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, SkSamplingOptions(), 219 SkScalar baseline = dstRect.height() + font.getSize() + SK_Scalar1 * 3; 224 canvas->drawRect(dstRect, blackPaint); 226 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 228 if ((dstRect.width() + kPadX) * rowCount > gSize) { 230 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); 249 fProc(canvas, bm.asImage().get(), bm, srcRect, dstRect,
|
H A D | rectangletexture.cpp | 190 auto dstRect = SkRect::MakeXYWH( 0, 0, .50f*w, .50f*h); variable 191 canvas->drawImageRect(fGradImgs[i], srcRect, dstRect, s, nullptr, 202 auto dstRect = SkRect::Make(fSmallImg->dimensions()).makeOutset(kOutset, kOutset); variable 228 canvas->drawRect(dstRect, paint); 229 canvas->translate(dstRect.width() + kPad, 0); 232 canvas->translate(0, dstRect.height() + kPad); 235 canvas->translate((dstRect.width() + kPad)*kSkTileModeCount, 0);
|
H A D | resizeimagefilter.cpp | 43 SkRect dstRect; in draw() local 44 canvas->getLocalToDeviceAs3x3().mapRect(&dstRect, rect); in draw() 46 SkScalar deviceScaleX = deviceSize.width() / dstRect.width(); in draw() 47 SkScalar deviceScaleY = deviceSize.height() / dstRect.height(); in draw()
|
H A D | imagesource.cpp | 57 const SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); variable 76 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 78 SkImageFilters::Image(fImage, srcRect, dstRect, sampling)); 83 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect). 85 SkImageFilters::Image(fImage, bounds, dstRect, sampling));
|
H A D | gpu_blur_utils.cpp | 281 // Do a blur for each dstRect in the set over our testArea-sized background. in run() 282 for (const auto& dstRect : dstRectSet) { in run() 289 dstRect, in run() 315 SkRect::Make(dstRect), in run() 328 auto dstR = SkRect::Make(dstRect).makeOutset(0.5f, 0.5f); in run() 404 auto dstRect = SkIRect::MakeSize(dstB.size()).makeOffset(x, y); in do_very_large_blur_gm() local 413 SkRect::Make(dstRect).makeOutset(0.5, 0.5), in do_very_large_blur_gm() 422 dstRect, in do_very_large_blur_gm() local
|
H A D | imagesource2.cpp | 77 const SkRect dstRect = SkRect::MakeLTRB(0.75f, 0.75f, 225.75f, 225.75f); variable 80 p.setImageFilter(SkImageFilters::Image(fImage, srcRect, dstRect, fSampling));
|
/third_party/skia/tests/ |
H A D | GrOpListFlushTest.cpp | 51 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()
|
H A D | DMSAATest.cpp | 236 SkRect dstRect = SkRect::MakeXYWH(texDims.width()/2, texDims.height()/2, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 255 dstRect, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 277 dstRect, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 300 bool success = readImage->readPixels(context, bitmap.pixmap(), dstRect.fLeft, dstRect.fTop); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkTileImageFilter.cpp | 26 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() 109 const SkIRect dstIRect = dstRect.makeInset(kRoundOutInset, kRoundOutInset).roundOut(); in onFilterImage() 165 canvas->translate(-dstRect.fLeft, -dstRect.fTop); in onFilterImage() 166 canvas->drawRect(dstRect, paint); in onFilterImage()
|
H A D | SkMorphologyImageFilter.cpp | 370 const SkIRect& dstRect, in apply_morphology_rect() 382 sfc->fillRectToRectWithFP(srcRect, dstRect, std::move(fp)); in apply_morphology_rect() 389 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() 395 sfc->fillRectToRectWithFP(srcRect, dstRect, std::move(fp)); in apply_morphology_rect_no_bounds() 402 const SkIRect& dstRect, in apply_morphology_pass() 407 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass() 408 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass() 409 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass() 414 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass() 416 upperDstRect.fLeft = dstRect in apply_morphology_pass() 366 apply_morphology_rect(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView view, SkAlphaType srcAlphaType, const SkIRect& srcRect, const SkIRect& dstRect, int radius, MorphType morphType, const float range[2], MorphDirection direction) apply_morphology_rect() argument 385 apply_morphology_rect_no_bounds(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView view, SkAlphaType srcAlphaType, const SkIRect& srcRect, const SkIRect& dstRect, int radius, MorphType morphType, MorphDirection direction) apply_morphology_rect_no_bounds() argument 398 apply_morphology_pass(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView view, SkAlphaType srcAlphaType, const SkIRect& srcRect, const SkIRect& dstRect, int radius, MorphType morphType, MorphDirection direction) apply_morphology_pass() argument 455 const SkIRect dstRect = SkIRect::MakeWH(rect.width(), rect.height()); apply_morphology() local [all...] |
H A D | SkImageImageFilter.cpp | 23 SkImageImageFilter(sk_sp<SkImage> image, const SkRect& srcRect, const SkRect& dstRect, in SkImageImageFilter() argument 28 , fDstRect(dstRect) in SkImageImageFilter() 58 const SkRect& dstRect, in Image() 65 std::move(image), srcRect, dstRect, sampling)); in Image() 169 SkRect dstRect = fDstRect; in onFilterNodeBounds() local 170 ctm.mapRect(&dstRect); in onFilterNodeBounds() 171 return dstRect.roundOut(); in onFilterNodeBounds() 56 Image(sk_sp<SkImage> image, const SkRect& srcRect, const SkRect& dstRect, const SkSamplingOptions& sampling) Image() argument
|
H A D | SkPictureImageFilter.cpp | 137 SkRect dstRect = fCropRect; in onFilterNodeBounds() local 138 ctm.mapRect(&dstRect); in onFilterNodeBounds() 139 return dstRect.roundOut(); in onFilterNodeBounds()
|
/third_party/skia/src/gpu/ |
H A D | SurfaceFillContext.h | 52 /** Fills 'dstRect' with 'fp' */ 53 virtual void fillRectWithFP(const SkIRect& dstRect, std::unique_ptr<GrFragmentProcessor>) = 0; 59 void fillRectWithFP(const SkIRect& dstRect, 63 /** Fills 'dstRect' with 'fp' using a local matrix that maps 'srcRect' to 'dstRect' */ 65 const SkIRect& dstRect, in fillRectToRectWithFP() 67 SkMatrix lm = SkMatrix::RectToRect(SkRect::Make(dstRect), srcRect); in fillRectToRectWithFP() 68 this->fillRectWithFP(dstRect, lm, std::move(fp)); in fillRectToRectWithFP() 71 /** Fills 'dstRect' with 'fp' using a local matrix that maps 'srcRect' to 'dstRect' */ 64 fillRectToRectWithFP(const SkRect& srcRect, const SkIRect& dstRect, std::unique_ptr<GrFragmentProcessor> fp) fillRectToRectWithFP() argument 72 fillRectToRectWithFP(const SkIRect& srcRect, const SkIRect& dstRect, std::unique_ptr<GrFragmentProcessor> fp) fillRectToRectWithFP() argument 75 this->fillRectToRectWithFP(SkRect::Make(srcRect), dstRect, std::move(fp)); fillRectToRectWithFP() local [all...] |
H A D | SurfaceFillContext.cpp | 14 void SurfaceFillContext::fillRectWithFP(const SkIRect& dstRect, in fillRectWithFP() argument 18 this->fillRectWithFP(dstRect, std::move(fp)); in fillRectWithFP()
|
/third_party/skia/include/core/ |
H A D | SkBlurTypes.h | 34 SkRect dstRect; member 38 SkBlurArg(const SkRect& srcRect, const SkRect& dstRect, const SkScalar& sigma, in SkBlurArg() 42 this->dstRect = dstRect; in SkBlurArg()
|
/third_party/vk-gl-cts/framework/platform/raspi/ |
H A D | tcuRaspiPlatform.cpp | 127 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, 0/*src*/, &srcRect, DISPMANX_PROTECTION_NONE, 0/*alpha*/, 0/*clamp*/, DISPMANX_NO_ROTATE); in Window()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A D | Device.cpp | 903 bool Device::ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX, bool flipY) 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())) * srcRect.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())) * srcRect.width(); in ClipDstRect() 937 dstRect.x1 = clipRect.x1; in ClipDstRect() 939 if(dstRect in ClipDstRect() 976 ClipSrcRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX, bool flipY) ClipSrcRect() argument [all...] |
/third_party/skia/modules/canvaskit/ |
H A D | skottie.js | 75 CanvasKit.Animation.prototype.render = function(canvas, dstRect) { 76 copyRectToWasm(dstRect, _scratchFourFloatsAPtr); 96 CanvasKit.ManagedAnimation.prototype.render = function(canvas, dstRect) { 97 copyRectToWasm(dstRect, _scratchFourFloatsAPtr);
|
/third_party/skia/src/gpu/v1/ |
H A D | SurfaceFillContext_v1.cpp | 55 void SurfaceFillContext::fillRectWithFP(const SkIRect& dstRect, in fillRectWithFP() argument 68 SkRect::Make(dstRect)); in fillRectWithFP() 250 auto dstRect = SkIRect::MakePtSize(clippedDstPoint, clippedSrcRect.size()); in blitTexture() local 252 this->fillRectToRectWithFP(srcRectF, dstRect, std::move(fp)); in blitTexture()
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGFeImage.cpp | 35 const SkRect& dstRect = imgInfo.fDst; in onMakeImageFilter() local 37 auto imgfilt = SkImageFilters::Image(imgInfo.fImage, srcRect, dstRect, in onMakeImageFilter()
|
/third_party/skia/src/core/ |
H A D | SkMatrixImageFilter.cpp | 85 SkRect dstRect; in onFilterImage() local 86 matrix.mapRect(&dstRect, srcRect); in onFilterImage() 88 dstRect.roundOut(&dstBounds); in onFilterImage()
|