/external/webkit/WebCore/rendering/ |
D | RenderSVGImage.cpp | 50 void RenderSVGImage::adjustRectsForAspectRatio(FloatRect& destRect, FloatRect& srcRect, SVGPreserve… in adjustRectsForAspectRatio() argument 52 float origDestWidth = destRect.width(); in adjustRectsForAspectRatio() 53 float origDestHeight = destRect.height(); in adjustRectsForAspectRatio() 57 destRect.setHeight(origDestWidth * widthToHeightMultiplier); in adjustRectsForAspectRatio() 62 destRect.setY(destRect.y() + origDestHeight / 2.0f - destRect.height() / 2.0f); in adjustRectsForAspectRatio() 67 destRect.setY(destRect.y() + origDestHeight - destRect.height()); in adjustRectsForAspectRatio() 72 destRect.setWidth(origDestHeight / widthToHeightMultiplier); in adjustRectsForAspectRatio() 77 destRect.setX(destRect.x() + origDestWidth / 2.0f - destRect.width() / 2.0f); in adjustRectsForAspectRatio() 82 destRect.setX(destRect.x() + origDestWidth - destRect.width()); in adjustRectsForAspectRatio() 90 float destToSrcMultiplier = srcRect.width() / destRect.width(); in adjustRectsForAspectRatio() [all …]
|
D | RenderBoxModelObject.cpp | 456 IntRect destRect; local 460 calculateBackgroundImageGeometry(bgLayer, tx, ty, w, h, destRect, phase, tileSize); 461 IntPoint destOrigin = destRect.location(); 462 destRect.intersect(paintInfo.rect); 463 if (!destRect.isEmpty()) { 464 phase += destRect.location() - destOrigin; 480 …context->drawTiledImage(bg->image(clientForBackgroundImage, tileSize), destRect, phase, tileSize, … 536 … IntRect& destRect, IntPoint& phase, IntSize& tileSize) in calculateBackgroundImageGeometry() argument 639 destRect = IntRect(cx, cy, cw, ch); in calculateBackgroundImageGeometry() 640 destRect.intersect(IntRect(tx, ty, w, h)); in calculateBackgroundImageGeometry()
|
D | RenderSVGImage.h | 61 … void adjustRectsForAspectRatio(FloatRect& destRect, FloatRect& srcRect, SVGPreserveAspectRatio*);
|
D | RenderBoxModelObject.h | 102 …dImageGeometry(const FillLayer*, int tx, int ty, int w, int h, IntRect& destRect, IntPoint& phase,…
|
/external/webkit/WebCore/platform/graphics/skia/ |
D | ImageSkia.cpp | 145 …as, SkPaint& paint, const NativeImageSkia& bitmap, const SkIRect& srcIRect, const SkRect& destRect) in drawResampledBitmap() argument 160 destRect.round(&destRectRounded); in drawResampledBitmap() 167 canvas.drawBitmapRect(resampled, 0, destRect, &paint); in drawResampledBitmap() 173 ClipRectToCanvas(canvas, destRect, &destBitmapSubsetSk); in drawResampledBitmap() 174 destBitmapSubsetSk.offset(-destRect.fLeft, -destRect.fTop); in drawResampledBitmap() 195 canvas.drawBitmapRect(resampled, 0, destRect, &paint); in drawResampledBitmap() 214 destBitmapSubset.x() + destRect.fLeft, in drawResampledBitmap() 215 destBitmapSubset.y() + destRect.fTop, in drawResampledBitmap() 216 destBitmapSubset.right() + destRect.fLeft, in drawResampledBitmap() 217 destBitmapSubset.bottom() + destRect.fTop }; in drawResampledBitmap() [all …]
|
D | SkiaUtils.cpp | 150 void IntersectRectAndRegion(const SkRegion& region, const SkRect& srcRect, SkRect* destRect) { in IntersectRectAndRegion() argument 159 destRect->setEmpty(); in IntersectRectAndRegion() 171 destRect->set(currentVisibleRect); in IntersectRectAndRegion() 174 void ClipRectToCanvas(const SkCanvas& canvas, const SkRect& srcRect, SkRect* destRect) { in ClipRectToCanvas() argument 187 inverseTransform.mapRect(destRect, transformedDest); in ClipRectToCanvas()
|
D | SkiaUtils.h | 70 void ClipRectToCanvas(const SkCanvas&, const SkRect& srcRect, SkRect* destRect);
|
/external/webkit/WebCore/platform/graphics/cg/ |
D | ImageCG.cpp | 136 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const FloatRect& srcRect, … in draw() argument 145 fillWithSolidColor(ctxt, destRect, solidColor(), compositeOp); in draw() 160 FloatRect adjustedDestRect = destRect; in draw() 168 …ationHigh || interpolationQuality == kCGInterpolationDefault) && srcRect.size() != destRect.size(); in draw() 169 float xScale = srcRect.width() / destRect.width(); in draw() 170 float yScale = srcRect.height() / destRect.height(); in draw() 191 …adjustedDestRect.setLocation(FloatPoint(destRect.x() - srcRect.x() / xScale, destRect.y() - srcRec… in draw() 195 CGContextClipToRect(context, destRect); in draw() 227 const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect) in drawPattern() argument 239 CGContextClipToRect(context, destRect); in drawPattern() [all …]
|
/external/webkit/WebCore/platform/graphics/ |
D | Image.cpp | 107 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint,… in drawTiled() argument 110 fillWithSolidColor(ctxt, destRect, solidColor(), op); in drawTiled() 124 …oneTileRect.setX(destRect.x() + fmodf(fmodf(-srcPoint.x(), scaledTileSize.width()) - scaledTileSiz… in drawTiled() 125 …oneTileRect.setY(destRect.y() + fmodf(fmodf(-srcPoint.y(), scaledTileSize.height()) - scaledTileSi… in drawTiled() 129 if (oneTileRect.contains(destRect)) { in drawTiled() 131 visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width()); in drawTiled() 132 visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height()); in drawTiled() 133 visibleSrcRect.setWidth(destRect.width() / scale.width()); in drawTiled() 134 visibleSrcRect.setHeight(destRect.height() / scale.height()); in drawTiled() 135 draw(ctxt, destRect, visibleSrcRect, op); in drawTiled() [all …]
|
D | FloatRect.cpp | 122 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect) in mapRect() argument 127 float widthScale = destRect.width() / srcRect.width(); in mapRect() 128 float heightScale = destRect.height() / srcRect.height(); in mapRect() 129 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale, in mapRect() 130 destRect.y() + (r.y() - srcRect.y()) * heightScale, in mapRect()
|
D | GeneratedImage.cpp | 51 … const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect) in drawPattern() argument 65 bitmap->drawPattern(context, srcRect, patternTransform, phase, compositeOp, destRect); in drawPattern()
|
D | GraphicsContext.h | 263 …void drawImage(Image*, const IntRect& destRect, const IntRect& srcRect, CompositeOperator = Compos… 264 …void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect = FloatRect(0, 0, -1, -… 266 …void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoint, const IntSize& tile… 268 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 354 …nsform, const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect, const IntSize& o…
|
D | GeneratedImage.h | 62 const FloatPoint& phase, CompositeOperator, const FloatRect& destRect);
|
D | Image.h | 175 const FloatPoint& phase, CompositeOperator, const FloatRect& destRect);
|
D | BitmapImage.h | 170 const FloatPoint& phase, CompositeOperator, const FloatRect& destRect);
|
/external/webkit/WebCore/platform/graphics/chromium/ |
D | TransparencyWin.cpp | 94 SkRect destRect; in compositeToCopy() local 95 destRect.fLeft = devices[i].x; in compositeToCopy() 96 destRect.fTop = devices[i].y; in compositeToCopy() 97 destRect.fRight = destRect.fLeft + srcBmp.width(); in compositeToCopy() 98 destRect.fBottom = destRect.fTop + srcBmp.height(); in compositeToCopy() 100 destCanvas.drawBitmapRect(srcBmp, 0, destRect); in compositeToCopy() 435 SkRect destRect; in compositeOpaqueComposite() local 446 …destRect.set(m_transformedSourceRect.x(), m_transformedSourceRect.y(), m_transformedSourceRect.rig… in compositeOpaqueComposite() 448 … destRect.set(m_sourceRect.x(), m_sourceRect.y(), m_sourceRect.right(), m_sourceRect.bottom()); in compositeOpaqueComposite() 457 destCanvas->drawBitmapRect(*bitmap, &sourceRect, destRect, &paint); in compositeOpaqueComposite() [all …]
|
/external/webkit/WebCore/platform/graphics/cairo/ |
D | ImageCairo.cpp | 154 const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect) in drawPattern() argument 196 cairo_rectangle(cr, destRect.x(), destRect.y(), destRect.width(), destRect.height()); in drawPattern()
|
/external/webkit/WebCore/html/ |
D | HTMLVideoElement.cpp | 189 void HTMLVideoElement::paint(GraphicsContext* context, const IntRect& destRect) in paint() argument 198 player->paint(context, destRect); in paint() 201 void HTMLVideoElement::paintCurrentFrameInContext(GraphicsContext* context, const IntRect& destRect) in paintCurrentFrameInContext() argument 210 player->paintCurrentFrameInContext(context, destRect); in paintCurrentFrameInContext()
|
D | HTMLCanvasElement.cpp | 162 FloatRect destRect = ro->contentBoxRect(); in willDraw() local 163 FloatRect r = mapRect(rect, FloatRect(0, 0, m_size.width(), m_size.height()), destRect); in willDraw() 164 r.intersect(destRect); in willDraw()
|
/external/webkit/WebCore/platform/graphics/android/ |
D | ImageAndroid.cpp | 253 const FloatRect& destRect) in drawPattern() argument 266 SkRect dstR(destRect); in drawPattern() 322 destRect.x(), destRect.y(), destRect.width(), destRect.height(), in drawPattern()
|
/external/webkit/WebCore/html/canvas/ |
D | CanvasRenderingContext2D.cpp | 1005 FloatRect destRect = c->roundToDevicePixels(dstRect); in drawImage() local 1006 willDraw(destRect); in drawImage() 1007 c->drawImage(cachedImage->image(), destRect, sourceRect, state().m_globalComposite); in drawImage() 1047 FloatRect destRect = c->roundToDevicePixels(dstRect); in drawImage() local 1057 c->drawImage(buffer->image(), destRect, sourceRect, state().m_globalComposite); in drawImage() 1058 …willDraw(destRect); // This call comes after drawImage, since the buffer we draw into may be our o… in drawImage() 1107 FloatRect destRect = c->roundToDevicePixels(dstRect); in drawImage() local 1108 willDraw(destRect); in drawImage() 1111 c->clip(destRect); in drawImage() 1112 c->translate(destRect.x(), destRect.y()); in drawImage() [all …]
|
/external/webkit/WebCore/svg/graphics/filters/ |
D | SVGFEMerge.cpp | 81 FloatRect destRect = calculateDrawingRect(m_mergeInputs[i]->subRegion()); in apply() local 82 filterContext->drawImage(m_mergeInputs[i]->resultImage()->image(), destRect); in apply()
|
/external/webkit/WebCore/platform/graphics/qt/ |
D | ImageQt.cpp | 96 const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect) in drawPattern() argument 115 p->fillRect(destRect, b); in drawPattern()
|
/external/webkit/WebKitTools/DrawTest/ |
D | ScalingImageView.m | 52 …NSRect destRect = NSMakeRect(0,[self bounds].size.height - scaledHeight,imageSize.width * scale, s… 53 [[self image] drawInRect:destRect
|
/external/webkit/WebCore/platform/wx/ |
D | TemporaryLinkStubs.cpp | 121 …Transform, const FloatPoint& phase, CompositeOperator, const FloatRect& destRect) { notImplemented… in drawPattern() argument
|