/external/skia/gm/ |
imagesource.cpp | 44 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); 51 SkImageSource::Create(fImage, srcRect, dstRect, kHigh_SkFilterQuality)); 53 SkImageSource::Create(fImage, bounds, dstRect, kHigh_SkFilterQuality)); 63 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 67 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect).
|
imagesource2.cpp | 65 SkRect dstRect = SkRect::MakeLTRB(0.75f, 0.75f, 225.75f, 225.75f); 68 SkImageSource::Create(fImage, srcRect, dstRect, fFilter));
|
resizeimagefilter.cpp | 32 SkRect dstRect; 33 canvas->getTotalMatrix().mapRect(&dstRect, rect); 35 SkScalar deviceScaleX = deviceSize.width() / dstRect.width(); 36 SkScalar deviceScaleY = deviceSize.height() / dstRect.height();
|
tileimagefilter.cpp | 64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), 70 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); 77 canvas->drawRect(dstRect, blue); 93 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), 95 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, nullptr)); 103 canvas->clipRect(dstRect); 104 canvas->saveLayer(&dstRect, &paint); 108 canvas->drawRect(dstRect, blue);
|
drawminibitmaprect.cpp | 86 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; 116 canvas->drawImageRect(fImage, srcRect, dstRect, &paint, 120 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 122 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { 124 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY);
|
tallstretchedbitmaps.cpp | 88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); 91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint);
|
drawbitmaprect.cpp | 147 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; 175 fProc(canvas, fImage, fLargeBitmap, srcRect, dstRect); 182 SkScalar baseline = dstRect.height() + 190 canvas->drawRect(dstRect, blackPaint); 192 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 194 if ((dstRect.width() + kPadX) * rowCount > gSize) { 196 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); 220 canvas->drawBitmapRect(bm, srcRect, dstRect, &paint);
|
/external/skia/samplecode/ |
SampleTextureDomain.cpp | 48 SkRect dstRect; 55 dstRect.setXYWH(5, 5, 305, 305); 56 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); 66 dstRect.setXYWH(1, 1, 3, 3); 67 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, 73 dstRect.setXYWH(405, 5, 305, 305); 74 canvas->drawImageRect(image, srcRect, dstRect, &paint); 79 dstRect.setXYWH(5, 405, 305, 305); 86 canvas->drawImageRect(image, srcRect, dstRect, &paint); 98 dstRect.setXYWH(-150, -150, 300, 300) [all...] |
/external/skia/src/effects/ |
SkImageSource.cpp | 23 const SkRect& dstRect, 25 return image ? new SkImageSource(image, srcRect, dstRect, filterQuality) : nullptr; 37 const SkRect& dstRect, 42 , fDstRect(dstRect) 69 SkRect dstRect; 70 ctx.ctm().mapRect(&dstRect, fDstRect); 72 if (fSrcRect == bounds && dstRect == bounds) { 78 const SkIRect dstIRect = dstRect.roundOut(); 88 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 93 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() [all...] |
SkTileImageFilter.cpp | 20 SkImageFilter* SkTileImageFilter::Create(const SkRect& srcRect, const SkRect& dstRect, 22 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { 25 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { 26 SkRect ir = dstRect; 31 return SkOffsetImageFilter::Create(dstRect.x() - srcRect.x(), 32 dstRect.y() - srcRect.y(), 35 return new SkTileImageFilter(srcRect, dstRect, input); 47 SkRect dstRect; 48 ctx.ctm().mapRect(&dstRect, fDstRect) [all...] |
SkGpuBlurUtils.cpp | 50 const SkRect& dstRect, 64 drawContext->fillRectWithLocalMatrix(clip, paint, SkMatrix::I(), dstRect, localMatrix); 69 const SkRect& dstRect, 94 drawContext->fillRectWithLocalMatrix(clip, paint, SkMatrix::I(), dstRect, localMatrix); 107 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 109 convolve_gaussian_1d(drawContext, clip, dstRect, srcOffset, texture, 120 SkRect::MakeLTRB(0, 0, dstRect.right(), midRect.top()).roundOut(&topRect); 121 SkRect::MakeLTRB(0, midRect.bottom(), dstRect.right(), dstRect.bottom()) 126 SkRect::MakeLTRB(midRect.right(), midRect.top(), dstRect.width(), midRect.bottom()) [all...] |
SkMorphologyImageFilter.cpp | 455 const SkIRect& dstRect, 467 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), SkRect::Make(dstRect), 475 const SkIRect& dstRect, 485 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), SkRect::Make(dstRect), 493 const SkIRect& dstRect, 498 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 499 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; 500 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; 505 lowerDstRect.fRight = dstRect.left() + radius; 507 upperDstRect.fLeft = dstRect.right() - radius [all...] |
/external/skia/src/core/ |
SkMatrixImageFilter.cpp | 60 SkRect dstRect; 71 matrix.mapRect(&dstRect, srcRect); 72 dstRect.roundOut(&dstBounds);
|
SkImageFilter.cpp | 356 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 357 GrClip clip(dstRect); 358 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), dstRect, srcRect);
|
/external/deqp/framework/platform/raspi/ |
tcuRaspiPlatform.cpp | 127 VC_RECT_T dstRect, srcRect; 129 dstRect.x = 0; 130 dstRect.y = 0; 131 dstRect.width = width; 132 dstRect.height = height; 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);
|
/external/skia/src/gpu/ |
GrSWMaskHelper.cpp | 350 SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft, 369 dstRect, nullptr, &invert));
|
GrTextureParamsAdjuster.cpp | 120 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(rtDesc.fWidth), SkIntToScalar(rtDesc.fHeight)); 121 drawContext->fillRectToRect(GrClip::WideOpen(), paint, SkMatrix::I(), dstRect, localRect);
|
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
ViESurfaceRenderer.java | 41 private Rect dstRect = new Rect(); 56 dstRect.right = (int)(dstRect.left + dstRightScale * dstWidth); 57 dstRect.bottom = (int)(dstRect.top + dstBottomScale * dstHeight); 72 " dstRect.left:" + dstRect.left + 73 " dstRect.top:" + dstRect.top + 74 " dstRect.right:" + dstRect.right [all...] |
/hardware/qcom/display/msm8960/libhwcomposer/ |
hwc_copybit.cpp | 334 copybit_rect_t dstRect = {displayFrame.left, displayFrame.top, 477 err = copybit->stretch(copybit, &dst, &src, &dstRect, &srcRect,
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
UiObject.java | 200 Rect dstRect = destObj.getVisibleBounds(); 202 dstRect.centerX(), dstRect.centerY(), steps, true); [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
UserIconDrawable.java | 365 RectF dstRect = new RectF(bounds.exactCenterX() - iconRadius, 371 dstRect.round(rounded); 382 mIconMatrix.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.FILL);
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_copybit.cpp | 429 copybit_rect_t dstRect = {displayFrame.left, displayFrame.top, 584 err = copybit->stretch(copybit, &dst, &src, &dstRect, &srcRect, 627 copybit_rect_t dstRect = {displayFrame.left, displayFrame.top, 643 int res = copybit->fill_color(copybit, &dst, &dstRect, color);
|
/packages/apps/Gallery/src/com/android/camera/ |
GridViewSpecial.java | [all...] |
/external/skia/tools/debugger/ |
SkDrawCommand.h | 291 const SkRect& dstRect() const { return fDst; }
|
/frameworks/base/libs/hwui/ |
SkiaCanvas.cpp | 643 SkRect dstRect = SkRect::MakeLTRB(dstLeft, dstTop, dstRight, dstBottom); 644 mCanvas->drawBitmapRect(bitmap, srcRect, dstRect, paint);
|