/external/chromium_org/third_party/skia/src/effects/ |
SkBitmapSource.cpp | 23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) 27 , fDstRect(dstRect) {} 49 SkRect bounds, dstRect; 51 ctx.ctm().mapRect(&dstRect, fDstRect); 52 if (fSrcRect == bounds && dstRect == bounds) { 59 dstRect.roundOut(&dstIRect); 70 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 75 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? 77 canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint) [all...] |
SkMatrixImageFilter.cpp | 58 SkRect dstRect; 69 matrix.mapRect(&dstRect, srcRect); 70 dstRect.roundOut(&dstBounds);
|
SkTileImageFilter.cpp | 29 SkRect dstRect; 30 ctx.ctm().mapRect(&dstRect, fDstRect); 32 dstRect.roundOut(&dstIRect); 70 canvas.translate(-dstRect.fLeft, -dstRect.fTop); 71 canvas.drawRect(dstRect, paint);
|
SkGpuBlurUtils.cpp | 48 const SkRect& dstRect, 61 context->drawRectToRect(paint, dstRect, srcRect); 66 const SkRect& dstRect, 74 convolve_gaussian_pass(context, srcRect, dstRect, texture, 78 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 79 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 80 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 88 lowerDstRect.fRight = dstRect.left() + rad; 90 upperDstRect.fLeft = dstRect.right() - rad; 98 lowerDstRect.fBottom = dstRect.top() + rad [all...] |
/external/skia/src/effects/ |
SkBitmapSource.cpp | 23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) 27 , fDstRect(dstRect) {} 49 SkRect bounds, dstRect; 51 ctx.ctm().mapRect(&dstRect, fDstRect); 52 if (fSrcRect == bounds && dstRect == bounds) { 59 dstRect.roundOut(&dstIRect); 70 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 75 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? 77 canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint) [all...] |
SkMatrixImageFilter.cpp | 58 SkRect dstRect; 69 matrix.mapRect(&dstRect, srcRect); 70 dstRect.roundOut(&dstBounds);
|
SkTileImageFilter.cpp | 29 SkRect dstRect; 30 ctx.ctm().mapRect(&dstRect, fDstRect); 32 dstRect.roundOut(&dstIRect); 70 canvas.translate(-dstRect.fLeft, -dstRect.fTop); 71 canvas.drawRect(dstRect, paint);
|
SkGpuBlurUtils.cpp | 48 const SkRect& dstRect, 61 context->drawRectToRect(paint, dstRect, srcRect); 66 const SkRect& dstRect, 74 convolve_gaussian_pass(context, srcRect, dstRect, texture, 78 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 79 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 80 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 88 lowerDstRect.fRight = dstRect.left() + rad; 90 upperDstRect.fLeft = dstRect.right() - rad; 98 lowerDstRect.fBottom = dstRect.top() + rad [all...] |
/external/chromium_org/third_party/skia/gm/ |
bitmapsource.cpp | 55 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); 61 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect)); 62 SkAutoTUnref<SkImageFilter> bitmapSourceDstRectOnly(SkBitmapSource::Create(fBitmap, bounds, dstRect)); 72 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 76 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect).
|
resizeimagefilter.cpp | 37 SkRect dstRect; 38 canvas->getTotalMatrix().mapRect(&dstRect, rect); 40 SkScalar deviceScaleX = SkScalarDiv(deviceSize.width(), dstRect.width()); 41 SkScalar deviceScaleY = SkScalarDiv(deviceSize.height(), dstRect.height());
|
tileimagefilter.cpp | 83 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), 89 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); 110 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() * 2), 112 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, NULL)); 120 canvas->clipRect(dstRect); 121 canvas->saveLayer(&dstRect, &paint);
|
drawbitmaprect.cpp | 96 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; 128 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect); 135 SkScalar baseline = dstRect.height() + 143 canvas->drawRect(dstRect, blackPaint); 145 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 147 if ((dstRect.width() + kPadX) * rowCount > gSize) { 149 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); 173 canvas->drawBitmapRect(bm, &srcRect, dstRect, &paint);
|
convexpolyclip.cpp | 144 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(size.fWidth), 146 canvas->drawBitmapRectToRect(fBmp, NULL, dstRect, &bgPaint);
|
/external/chromium_org/third_party/skia/samplecode/ |
SampleTextureDomain.cpp | 48 SkRect dstRect; 55 dstRect.setXYWH(5, 5, 305, 305); 56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); 66 dstRect.setXYWH(1, 1, 3, 3); 67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, 73 dstRect.setXYWH(405, 5, 305, 305); 74 image->draw(canvas, &srcRect, dstRect, &paint); 79 dstRect.setXYWH(5, 405, 305, 305); 86 image->draw(canvas, &srcRect, dstRect, &paint); 98 dstRect.setXYWH(-150, -150, 300, 300) [all...] |
/external/skia/gm/ |
bitmapsource.cpp | 55 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); 61 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect)); 62 SkAutoTUnref<SkImageFilter> bitmapSourceDstRectOnly(SkBitmapSource::Create(fBitmap, bounds, dstRect)); 72 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 76 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect).
|
resizeimagefilter.cpp | 37 SkRect dstRect; 38 canvas->getTotalMatrix().mapRect(&dstRect, rect); 40 SkScalar deviceScaleX = SkScalarDiv(deviceSize.width(), dstRect.width()); 41 SkScalar deviceScaleY = SkScalarDiv(deviceSize.height(), dstRect.height());
|
tileimagefilter.cpp | 83 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), 89 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); 110 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() * 2), 112 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, NULL)); 120 canvas->clipRect(dstRect); 121 canvas->saveLayer(&dstRect, &paint);
|
drawbitmaprect.cpp | 96 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; 128 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect); 135 SkScalar baseline = dstRect.height() + 143 canvas->drawRect(dstRect, blackPaint); 145 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 147 if ((dstRect.width() + kPadX) * rowCount > gSize) { 149 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); 173 canvas->drawBitmapRect(bm, &srcRect, dstRect, &paint);
|
/external/skia/samplecode/ |
SampleTextureDomain.cpp | 48 SkRect dstRect; 55 dstRect.setXYWH(5, 5, 305, 305); 56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); 66 dstRect.setXYWH(1, 1, 3, 3); 67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, 73 dstRect.setXYWH(405, 5, 305, 305); 74 image->draw(canvas, &srcRect, dstRect, &paint); 79 dstRect.setXYWH(5, 405, 305, 305); 86 image->draw(canvas, &srcRect, dstRect, &paint); 98 dstRect.setXYWH(-150, -150, 300, 300) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
BitmapHelper.java | 47 final RectF dstRect = new RectF(0, 0, width, height); 49 m.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.CENTER);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/ |
SVGFEImage.cpp | 185 FloatRect dstRect = filterPrimitiveSubregion(); 197 transform = makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), dstRect); 199 transform.translate(dstRect.x(), dstRect.y()); 207 context->beginRecording(FloatRect(FloatPoint(), dstRect.size())); 212 RefPtr<SkImageFilter> result = adoptRef(SkPictureImageFilter::Create(displayList->picture(), dstRect)); 228 FloatRect dstRect = filterPrimitiveSubregion(); 232 if (dstRect.isEmpty()) 233 dstRect = srcRect; 235 m_preserveAspectRatio->transformRect(dstRect, srcRect) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
FETile.cpp | 116 FloatRect dstRect = getRect(this); 117 return adoptRef(SkTileImageFilter::Create(srcRect, dstRect, input.get()));
|
/external/chromium_org/third_party/skia/src/gpu/ |
GrSWMaskHelper.cpp | 224 SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft, 244 target->drawSimpleRect(dstRect);
|
/external/skia/src/gpu/ |
GrSWMaskHelper.cpp | 224 SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft, 244 target->drawSimpleRect(dstRect);
|
/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);
|