/external/skia/samplecode/ |
D | SampleTextureDomain.cpp | 48 SkRect dstRect; in onDrawContent() local 55 dstRect.setXYWH(5, 5, 305, 305); in onDrawContent() 56 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent() 66 dstRect.setXYWH(1, 1, 3, 3); in onDrawContent() 67 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent() 73 dstRect.setXYWH(405, 5, 305, 305); in onDrawContent() 74 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent() 79 dstRect.setXYWH(5, 405, 305, 305); in onDrawContent() 86 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent() 98 dstRect.setXYWH(-150, -150, 300, 300); in onDrawContent() [all …]
|
/external/skia/src/effects/ |
D | SkTileImageFilter.cpp | 20 SkImageFilter* SkTileImageFilter::Create(const SkRect& srcRect, const SkRect& dstRect, in Create() argument 22 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Create() 25 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { in Create() 26 SkRect ir = dstRect; in Create() 31 return SkOffsetImageFilter::Create(dstRect.x() - srcRect.x(), in Create() 32 dstRect.y() - srcRect.y(), in Create() 35 return new SkTileImageFilter(srcRect, dstRect, input); in Create() 47 SkRect dstRect; in onFilterImageDeprecated() local 48 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImageDeprecated() 49 if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) { in onFilterImageDeprecated() [all …]
|
D | SkImageSource.cpp | 23 const SkRect& dstRect, in Create() argument 25 return image ? new SkImageSource(image, srcRect, dstRect, filterQuality) : nullptr; in Create() 37 const SkRect& dstRect, in SkImageSource() argument 42 , fDstRect(dstRect) in SkImageSource() 69 SkRect dstRect; in onFilterImageDeprecated() local 70 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImageDeprecated() 72 if (fSrcRect == bounds && dstRect == bounds) { in onFilterImageDeprecated() 78 const SkIRect dstIRect = dstRect.roundOut(); in onFilterImageDeprecated() 88 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); in onFilterImageDeprecated() 93 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? in onFilterImageDeprecated() [all …]
|
D | SkGpuBlurUtils.cpp | 50 const SkRect& dstRect, in convolve_gaussian_1d() argument 64 drawContext->fillRectWithLocalMatrix(clip, paint, SkMatrix::I(), dstRect, localMatrix); in convolve_gaussian_1d() 69 const SkRect& dstRect, in convolve_gaussian_2d() argument 94 drawContext->fillRectWithLocalMatrix(clip, paint, SkMatrix::I(), dstRect, localMatrix); in convolve_gaussian_2d() 107 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian() local 109 convolve_gaussian_1d(drawContext, clip, dstRect, srcOffset, texture, in convolve_gaussian() 120 SkRect::MakeLTRB(0, 0, dstRect.right(), midRect.top()).roundOut(&topRect); in convolve_gaussian() 121 SkRect::MakeLTRB(0, midRect.bottom(), dstRect.right(), dstRect.bottom()) in convolve_gaussian() 126 SkRect::MakeLTRB(midRect.right(), midRect.top(), dstRect.width(), midRect.bottom()); in convolve_gaussian() 127 dstRect.fTop = midRect.top(); in convolve_gaussian() [all …]
|
D | SkMorphologyImageFilter.cpp | 455 const SkIRect& dstRect, in apply_morphology_rect() argument 467 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), SkRect::Make(dstRect), in apply_morphology_rect() 475 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() argument 485 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), SkRect::Make(dstRect), in apply_morphology_rect_no_bounds() 493 const SkIRect& dstRect, in apply_morphology_pass() argument 498 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass() 499 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass() 500 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass() 505 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass() 507 upperDstRect.fLeft = dstRect.right() - radius; in apply_morphology_pass() [all …]
|
D | SkLightingImageFilter.cpp | 371 const SkRect& dstRect, 384 const SkRect& dstRect, in drawRect() argument 388 SkRect srcRect = dstRect.makeOffset(SkIntToScalar(bounds.x()), SkIntToScalar(bounds.y())); in drawRect() 393 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), dstRect, srcRect); in drawRect() 412 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bounds.width()), in filterImageGPUDeprecated() local 429 GrClip clip(dstRect); in filterImageGPUDeprecated() 438 SkRect top = SkRect::MakeXYWH(1, 0, dstRect.width() - 2, 1); in filterImageGPUDeprecated() 439 SkRect topRight = SkRect::MakeXYWH(dstRect.width() - 1, 0, 1, 1); in filterImageGPUDeprecated() 440 SkRect left = SkRect::MakeXYWH(0, 1, 1, dstRect.height() - 2); in filterImageGPUDeprecated() 441 SkRect interior = dstRect.makeInset(1, 1); in filterImageGPUDeprecated() [all …]
|
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
D | ViESurfaceRenderer.java | 41 private Rect dstRect = new Rect(); field in ViESurfaceRenderer 56 dstRect.right = (int)(dstRect.left + dstRightScale * dstWidth); in changeDestRect() 57 dstRect.bottom = (int)(dstRect.top + dstBottomScale * dstHeight); in changeDestRect() 72 " dstRect.left:" + dstRect.left + in surfaceChanged() 73 " dstRect.top:" + dstRect.top + in surfaceChanged() 74 " dstRect.right:" + dstRect.right + in surfaceChanged() 75 " dstRect.bottom:" + dstRect.bottom); in surfaceChanged() 93 " dstRect.left:" + dstRect.left + in surfaceCreated() 94 " dstRect.top:" + dstRect.top + in surfaceCreated() 95 " dstRect.right:" + dstRect.right + in surfaceCreated() [all …]
|
/external/skia/gm/ |
D | tileimagefilter.cpp | 64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw() local 70 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); in onDraw() 77 canvas->drawRect(dstRect, blue); in onDraw() 93 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() local 95 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(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()
|
D | drawbitmaprect.cpp | 147 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 175 fProc(canvas, fImage, fLargeBitmap, srcRect, dstRect); in onDraw() 182 SkScalar baseline = dstRect.height() + in onDraw() 190 canvas->drawRect(dstRect, blackPaint); in onDraw() 192 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 194 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw() 196 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw() 220 canvas->drawBitmapRect(bm, srcRect, dstRect, &paint); in onDraw()
|
D | drawminibitmaprect.cpp | 86 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 116 canvas->drawImageRect(fImage, srcRect, dstRect, &paint, in onDraw() 120 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 122 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { in onDraw() 124 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
|
D | resizeimagefilter.cpp | 32 SkRect dstRect; in draw() local 33 canvas->getTotalMatrix().mapRect(&dstRect, rect); in draw() 35 SkScalar deviceScaleX = deviceSize.width() / dstRect.width(); in draw() 36 SkScalar deviceScaleY = deviceSize.height() / dstRect.height(); in draw()
|
D | imagesource.cpp | 44 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); in onDraw() local 51 SkImageSource::Create(fImage, srcRect, dstRect, kHigh_SkFilterQuality)); in onDraw() 53 SkImageSource::Create(fImage, bounds, dstRect, kHigh_SkFilterQuality)); in onDraw()
|
D | imagesource2.cpp | 65 SkRect dstRect = SkRect::MakeLTRB(0.75f, 0.75f, 225.75f, 225.75f); in onDraw() local 68 SkImageSource::Create(fImage, srcRect, dstRect, fFilter)); in onDraw()
|
D | tallstretchedbitmaps.cpp | 88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); in onDraw() local 91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint); in onDraw()
|
/external/skia/src/gpu/ |
D | SkGpuDevice_drawTexture.cpp | 92 const SkRect* dstRect, in drawTextureProducer() argument 108 if (!dstRect) { in drawTextureProducer() 109 dstRect = &srcBounds; in drawTextureProducer() 116 if (!srcToDstMatrix.setRectToRect(*srcRect, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer() 122 clippedDstRect = *dstRect; in drawTextureProducer() 123 if (!srcToDstMatrix.setRectToRect(*srcRect, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer() 129 if (dstRect) { in drawTextureProducer() 130 clippedDstRect = *dstRect; in drawTextureProducer() 131 if (!srcToDstMatrix.setRectToRect(srcBounds, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
|
/external/deqp/framework/platform/raspi/ |
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, … in Window()
|
/external/skia/include/effects/ |
D | SkImageSource.h | 20 const SkRect& dstRect, 38 const SkRect& dstRect,
|
D | SkTileImageFilter.h | 38 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) in SkTileImageFilter() argument 39 : INHERITED(1, &input, NULL), fSrcRect(srcRect), fDstRect(dstRect) {} in SkTileImageFilter()
|
/external/skia/src/core/ |
D | SkMatrixImageFilter.cpp | 60 SkRect dstRect; in onFilterImageDeprecated() local 71 matrix.mapRect(&dstRect, srcRect); in onFilterImageDeprecated() 72 dstRect.roundOut(&dstBounds); in onFilterImageDeprecated()
|
/external/deqp/modules/gles3/functional/ |
D | es3fFramebufferBlitTests.cpp | 58 …IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect, int cellSize = 8) in BlitRectCase() argument 64 , m_dstRect (dstRect) in BlitRectCase() 167 …har* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect); 172 …char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect) in BlitNearestFilterConsistencyCase() argument 173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase() 459 … IVec4& srcRect, deUint32 dstBuffers, const IVec2& dstSize, const IVec4& dstRect, deUint32 copyBuf… in BlitDepthStencilCase() argument 467 , m_dstRect (dstRect) in BlitDepthStencilCase() 937 IVec4 dstRect; in init() member 949 IVec4 dstRect; in init() member 988 IVec4 dstRect = copyRects[rectNdx].dstRect.swizzle(dstSwz[0], dstSwz[1], dstSwz[2], dstSwz[3]); in init() local [all …]
|
/external/deqp/framework/opengl/simplereference/ |
D | sglrReferenceContext.cpp | 3034 …ultisampleFramebuffer (deUint32 mask, const IVec4& srcRect, const IVec4& dstRect, bool flipX, bool… in blitResolveMultisampleFramebuffer() argument 3039 …bregion(getDrawColorbuffer().toSinglesampleAccess(), dstRect.x(), dstRect.y(), dstRect.z(), dstRec… in blitResolveMultisampleFramebuffer() 3059 for (int x = 0; x < dstRect.z(); ++x) in blitResolveMultisampleFramebuffer() 3060 for (int y = 0; y < dstRect.w(); ++y) in blitResolveMultisampleFramebuffer() 3078 …Access dst = rr::getSubregion(getDrawDepthbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRec… in blitResolveMultisampleFramebuffer() 3080 for (int x = 0; x < dstRect.z(); ++x) in blitResolveMultisampleFramebuffer() 3081 for (int y = 0; y < dstRect.w(); ++y) in blitResolveMultisampleFramebuffer() 3093 …ampleAccess(rr::getSubregion(getDrawStencilbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRec… in blitResolveMultisampleFramebuffer() 3095 for (int x = 0; x < dstRect.z(); ++x) in blitResolveMultisampleFramebuffer() 3096 for (int y = 0; y < dstRect.w(); ++y) in blitResolveMultisampleFramebuffer() [all …]
|
/external/pdfium/xfa/src/fdp/src/fde/ |
D | fde_gdidevice.cpp | 90 const CFX_RectF& dstRect, in DrawImage() argument 109 matrix.Translate(dstRect.left, dstRect.top); in DrawImage() 110 matrix.Scale((dstRect.width / srcRect.width), in DrawImage() 111 (dstRect.height / srcRect.height), TRUE); in DrawImage() 127 const CFX_RectF& dstRect, in DrawImage() argument 140 return DrawImage(&img, pSrcRect, dstRect, pImgMatrix, pDevMatrix); in DrawImage()
|
D | fde_gdidevice.h | 34 const CFX_RectF& dstRect, 39 const CFX_RectF& dstRect,
|
D | fde_gedevice.cpp | 99 const CFX_RectF& dstRect, in DrawImage() argument 118 dib2fxdev.a = dstRect.width; in DrawImage() 119 dib2fxdev.d = -dstRect.height; in DrawImage() 120 dib2fxdev.e = dstRect.left; in DrawImage() 121 dib2fxdev.f = dstRect.bottom(); in DrawImage()
|
/external/pdfium/fpdfsdk/include/ |
D | fsdk_mgr.h | 283 void FFI_GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect) { in FFI_GetPageViewRect() argument 291 dstRect.left = static_cast<float>(left); in FFI_GetPageViewRect() 292 dstRect.top = static_cast<float>(top < bottom ? bottom : top); in FFI_GetPageViewRect() 293 dstRect.bottom = static_cast<float>(top < bottom ? top : bottom); in FFI_GetPageViewRect() 294 dstRect.right = static_cast<float>(right); in FFI_GetPageViewRect()
|