/external/chromium_org/third_party/skia/src/effects/ |
SkBitmapSource.cpp | 22 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) 26 fDstRect(dstRect) { 46 SkRect bounds, dstRect; 48 matrix.mapRect(&dstRect, fDstRect); 49 if (fSrcRect == bounds && dstRect == bounds) { 55 dstRect.roundOut(&dstIRect); 66 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 71 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? 73 canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint) [all...] |
SkTileImageFilter.cpp | 27 SkRect dstRect; 28 ctm.mapRect(&dstRect, fDstRect); 29 int w = SkScalarCeilToInt(dstRect.width()); 30 int h = SkScalarCeilToInt(dstRect.height()); 59 dstRect.offset(SkIntToScalar(localOffset.fX), SkIntToScalar(localOffset.fY)); 60 canvas.drawRect(dstRect, paint);
|
SkGpuBlurUtils.cpp | 44 const SkRect& dstRect, 57 context->drawRectToRect(paint, dstRect, srcRect); 62 const SkRect& dstRect, 70 convolve_gaussian_pass(context, srcRect, dstRect, texture, 74 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 75 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 76 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 84 lowerDstRect.fRight = dstRect.left() + rad; 86 upperDstRect.fLeft = dstRect.right() - rad; 94 lowerDstRect.fBottom = dstRect.top() + rad [all...] |
SkBicubicImageFilter.cpp | 102 SkRect dstRect = SkRect::MakeWH(SkScalarMul(SkIntToScalar(src.width()), fScale.fWidth), 105 dstRect.roundOut(&dstIRect); 118 inverse.setRectToRect(dstRect, srcRect, SkMatrix::kFill_ScaleToFit); 177 SkRect dstRect = SkRect::MakeWH(srcBM.width() * fScale.fWidth, 182 desc.fWidth = SkScalarCeilToInt(dstRect.width()); 183 desc.fHeight = SkScalarCeilToInt(dstRect.height()); 196 context->drawRectToRect(paint, dstRect, srcRect);
|
/external/skia/src/effects/ |
SkBitmapSource.cpp | 22 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) 26 fDstRect(dstRect) { 46 SkRect bounds, dstRect; 48 matrix.mapRect(&dstRect, fDstRect); 49 if (fSrcRect == bounds && dstRect == bounds) { 55 dstRect.roundOut(&dstIRect); 66 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 71 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? 73 canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint) [all...] |
SkTileImageFilter.cpp | 27 SkRect dstRect; 28 ctm.mapRect(&dstRect, fDstRect); 29 int w = SkScalarCeilToInt(dstRect.width()); 30 int h = SkScalarCeilToInt(dstRect.height()); 59 dstRect.offset(SkIntToScalar(localOffset.fX), SkIntToScalar(localOffset.fY)); 60 canvas.drawRect(dstRect, paint);
|
SkGpuBlurUtils.cpp | 44 const SkRect& dstRect, 57 context->drawRectToRect(paint, dstRect, srcRect); 62 const SkRect& dstRect, 70 convolve_gaussian_pass(context, srcRect, dstRect, texture, 74 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 75 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 76 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 84 lowerDstRect.fRight = dstRect.left() + rad; 86 upperDstRect.fLeft = dstRect.right() - rad; 94 lowerDstRect.fBottom = dstRect.top() + rad [all...] |
SkBicubicImageFilter.cpp | 102 SkRect dstRect = SkRect::MakeWH(SkScalarMul(SkIntToScalar(src.width()), fScale.fWidth), 105 dstRect.roundOut(&dstIRect); 118 inverse.setRectToRect(dstRect, srcRect, SkMatrix::kFill_ScaleToFit); 177 SkRect dstRect = SkRect::MakeWH(srcBM.width() * fScale.fWidth, 182 desc.fWidth = SkScalarCeilToInt(dstRect.width()); 183 desc.fHeight = SkScalarCeilToInt(dstRect.height()); 196 context->drawRectToRect(paint, dstRect, srcRect);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/ |
SVGImageForContainer.cpp | 37 void SVGImageForContainer::draw(GraphicsContext* context, const FloatRect& dstRect, 40 m_image->drawForContainer(context, m_containerSize, m_zoom, dstRect, srcRect, compositeOp, blendMode); 44 const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) 46 m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
SVGImage.cpp | 167 void SVGImage::drawForContainer(GraphicsContext* context, const FloatSize containerSize, float zoom, const FloatRect& dstRect, 187 draw(context, dstRect, scaledSrc, compositeOp, blendMode); 206 const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) 234 image->drawPattern(context, scaledSrcRect, scaleWithoutCTM, phase, compositeOp, dstRect, blendMode, repeatSpacing); 237 void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) 244 context->clip(enclosingIntRect(dstRect)); 248 FloatSize scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()); 253 FloatPoint destOffset = dstRect.location() - topLeftOffset;
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
CrossfadeGeneratedImage.cpp | 87 void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) 91 context->clip(dstRect); 92 context->translate(dstRect.x(), dstRect.y()); 93 if (dstRect.size() != srcRect.size()) 94 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height())); 100 void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) 111 imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
Image.cpp | 94 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, CompositeOperator op) 101 ctxt->fillRect(dstRect, color); 119 void Image::draw(GraphicsContext* ctx, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator op, blink::WebBlendMode blendMode, RespectImageOrientationEnum) 121 draw(ctx, dstRect, srcRect, op, blendMode); 167 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, 171 fillWithSolidColor(ctxt, dstRect, solidColor(), op); 187 float hRepetitions = std::max(1.0f, roundf(dstRect.width() / (tileScaleFactor.width() * srcRect.width()))); 188 tileScaleFactor.setWidth(dstRect.width() / (srcRect.width() * hRepetitions)); 191 float vRepetitions = std::max(1.0f, roundf(dstRect.height() / (tileScaleFactor.height() * srcRect.height()))); 192 tileScaleFactor.setHeight(dstRect.height() / (srcRect.height() * vRepetitions)) [all...] |
Image.h | 124 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, const Color&, CompositeOperator); 127 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode) = 0; 128 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum); 129 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize, 131 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, const FloatSize& tileScaleFactor, TileRule hRule, TileRule vRule, CompositeOperator);
|
BitmapImage.h | 102 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode) OVERRIDE; 103 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum) OVERRIDE;
|
/external/chromium_org/third_party/skia/include/effects/ |
SkTileImageFilter.h | 19 @param dstRect Defines the pixels where tiles are drawn 22 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) 23 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
|
SkBitmapSource.h | 17 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
|
/external/skia/include/effects/ |
SkTileImageFilter.h | 19 @param dstRect Defines the pixels where tiles are drawn 22 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) 23 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
|
SkBitmapSource.h | 17 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
|
/external/chromium/chrome/browser/ui/cocoa/ |
image_utils.h | 19 - (void)drawInRect:(NSRect)dstRect
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
FrameImage2D.java | 145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { 150 idShader.setTargetRect(dstRect); 158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { 164 Rect dstIRect = new Rect((int) dstRect.left * srcImage.getWidth(), 165 (int) dstRect.top * srcImage.getHeight(), 166 (int) dstRect.right * srcImage.getWidth(), 167 (int) dstRect.bottom * srcImage.getHeight());
|
/external/skia/gm/ |
bitmapsource.cpp | 57 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); 63 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(new SkBitmapSource(fBitmap, srcRect, dstRect)); 64 SkAutoTUnref<SkImageFilter> bitmapSourceDstRectOnly(new SkBitmapSource(fBitmap, bounds, dstRect)); 74 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 78 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect).
|
drawbitmaprect.cpp | 98 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; 130 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect); 137 SkScalar baseline = dstRect.height() + 145 canvas->drawRect(dstRect, blackPaint); 147 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); 149 if ((dstRect.width() + kPadX) * rowCount > gSize) { 151 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); 175 canvas->drawBitmapRect(bm, &srcRect, dstRect, &paint);
|
/external/skia/tools/ |
filtermain.cpp | 291 return dbmr->dstRect() == cr->rect(); 409 if (dbmr->bitmap().width() != dbmr->dstRect().width() || 410 dbmr->bitmap().height() != dbmr->dstRect().height()) { 414 if (dbmr->srcRect()->width() != dbmr->dstRect().width() || 415 dbmr->srcRect()->height() != dbmr->dstRect().height()) { 420 if (!dbmr->dstRect().contains(clip2->rect())) { 468 SkScalar newSrcLeft = dbmr->srcRect()->fLeft + clip2->rect().fLeft - dbmr->dstRect().fLeft; 469 SkScalar newSrcTop = dbmr->srcRect()->fTop + clip2->rect().fTop - dbmr->dstRect().fTop; 556 if (dbmr->bitmap().width() != dbmr->dstRect().width() || 557 dbmr->bitmap().height() != dbmr->dstRect().height()) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
CanvasRenderingContext2D.cpp | [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
testblitspeed.c | 149 SDL_Rect dstRect; 153 dstRect.x = x; 154 dstRect.y = y; 155 dstRect.w = srcRect.w = src->w; /* SDL will clip as appropriate. */ 156 dstRect.h = srcRect.h = src->h; 159 SDL_BlitSurface(src, &srcRect, dst, &dstRect);
|