Searched refs:destRect (Results 1 - 25 of 36) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DGradientGeneratedImage.cpp34 void GradientGeneratedImage::draw(GraphicsContext* destContext, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator compositeOp, WebBlendMode blendMode) argument
38 destContext->clip(destRect);
39 destContext->translate(destRect.x(), destRect.y());
40 if (destRect.size() != srcRect.size())
41 destContext->scale(destRect.width() / srcRect.width(), destRect.height() / srcRect.height());
48 const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, WebBlendMode blendMode, const IntSize& repeatSpacing)
52 int firstColumn = static_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect.x()) / srcRect.width()));
53 int firstRow = static_cast<int>(floorf((((destRect
47 drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, WebBlendMode blendMode, const IntSize& repeatSpacing) argument
[all...]
H A DImage.cpp124 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& scaledTileSize, CompositeOperator op, WebBlendMode blendMode, const IntSize& repeatSpacing) argument
127 fillWithSolidColor(ctxt, destRect, solidColor(), op);
145 oneTileRect.setX(destRect.x() + fmodf(fmodf(-srcPoint.x(), actualTileSize.width()) - actualTileSize.width(), actualTileSize.width()));
146 oneTileRect.setY(destRect.y() + fmodf(fmodf(-srcPoint.y(), actualTileSize.height()) - actualTileSize.height(), actualTileSize.height()));
150 if (oneTileRect.contains(destRect)) {
152 visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width());
153 visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height());
154 visibleSrcRect.setWidth(destRect.width() / scale.width());
155 visibleSrcRect.setHeight(destRect.height() / scale.height());
156 draw(ctxt, destRect, visibleSrcRec
225 drawPattern(GraphicsContext* context, const FloatRect& floatSrcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, WebBlendMode blendMode, const IntSize& repeatSpacing) argument
[all...]
H A DImageBuffer.cpp256 void ImageBuffer::draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect* srcPtr, CompositeOperator op, WebBlendMode blendMode) argument
264 context->drawPicture(picture.release(), destRect, srcRect, op, blendMode);
278 context->drawImage(image.get(), destRect, srcRect, op, blendMode, DoNotRespectImageOrientation);
289 const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect, WebBlendMode blendMode, const IntSize& repeatSpacing)
296 image->drawPattern(context, srcRect, scale, phase, op, destRect, blendMode, repeatSpacing);
288 drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect, WebBlendMode blendMode, const IntSize& repeatSpacing) argument
H A DGraphicsContext.h281 void drawImage(Image*, const FloatRect& destRect);
282 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotRespectImageOrientation);
283 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, WebBlendMode, RespectImageOrientationEnum = DoNotRespectImageOrientation);
285 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoint, const IntSize& tileSize,
287 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect,
291 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRect* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlendModeNormal);
412 const SkRect& destRect,
H A DGraphicsContext.cpp1101 void GraphicsContext::drawTiledImage(Image* image, const IntRect& destRect, const IntPoint& srcPoint, const IntSize& tileSize, CompositeOperator op, WebBlendMode blendMode, const IntSize& repeatSpacing) argument
1105 image->drawTiled(this, destRect, srcPoint, tileSize, op, blendMode, repeatSpacing);
1667 void GraphicsContext::setURLForRect(const KURL& link, const IntRect& destRect) argument
1674 SkAnnotateRectWithURL(m_canvas, destRect, url.get());
1974 const SkRect& destRect,
1984 paint->setAntiAlias(shouldDrawAntiAliased(this, destRect));
1995 SkRect destRectTarget = destRect;
1998 totalMatrix.mapRect(&destRectTarget, destRect);
1971 preparePaintForDrawRectToRect( SkPaint* paint, const SkRect& srcRect, const SkRect& destRect, CompositeOperator compositeOp, WebBlendMode blendMode, bool isLazyDecoded, bool isDataComplete) const argument
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGPreserveAspectRatio.cpp199 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) argument
205 float origDestWidth = destRect.width();
206 float origDestHeight = destRect.height();
213 destRect.setHeight(origDestWidth * widthToHeightMultiplier);
218 destRect.setY(destRect.y() + origDestHeight / 2 - destRect.height() / 2);
223 destRect.setY(destRect.y() + origDestHeight - destRect
[all...]
H A DSVGPreserveAspectRatio.h72 void transformRect(FloatRect& destRect, FloatRect& srcRect);
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/
H A DSVGFEImage.cpp93 FloatRect destRect = filter()->mapLocalRectToAbsoluteRect(filterPrimitiveSubregion()); local
104 srcRect = makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), destRect).mapRect(srcRect);
108 srcRect.move(destRect.x(), destRect.y());
110 destRect.intersect(srcRect);
113 m_preserveAspectRatio->transformRect(destRect, srcRect);
116 destRect.intersect(requestedRect);
117 addAbsolutePaintRect(destRect);
118 return destRect;
146 FloatRect destRect local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/paint/
H A DSVGImagePainter.cpp59 FloatRect destRect = renderer.objectBoundingBox(); local
63 imageElement->preserveAspectRatio()->currentValue()->transformRect(destRect, srcRect);
67 interpolationQuality = ImageQualityController::imageQualityController()->chooseInterpolationQuality(paintInfo.context, &renderer, image.get(), image.get(), LayoutSize(destRect.size()));
71 paintInfo.context->drawImage(image.get(), destRect, srcRect, CompositeSourceOver);
H A DBackgroundImageGeometry.h26 IntRect destRect() const { return m_destRect; } function in class:blink::BackgroundImageGeometry
27 void setDestRect(const IntRect& destRect) argument
29 m_destRect = destRect;
74 bool m_hasNonLocalGeometry; // Has background-attachment: fixed. Implies that we can't always cheaply compute destRect.
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
H A DNativeImageSkia.h96 const SkRect& destRect,
106 const FloatRect& destRect,
H A DNativeImageSkia.cpp160 const SkRect& destRect,
169 context->preparePaintForDrawRectToRect(&paint, srcRect, destRect, compositeOp, blendMode, isLazyDecoded, isDataComplete());
174 context->drawBitmapRect(bitmap(), &srcRect, destRect, &paint); local
178 context->didDrawRect(destRect, paint, &bitmap());
202 const FloatRect& destRect,
208 if (destRect.isEmpty() || normSrcRect.isEmpty())
305 context->drawRect(destRect, paint);
157 draw( GraphicsContext* context, const SkRect& srcRect, const SkRect& destRect, CompositeOperator compositeOp, WebBlendMode blendMode) const argument
196 drawPattern( GraphicsContext* context, const FloatRect& floatSrcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, WebBlendMode blendMode, const IntSize& repeatSpacing) const argument
H A DSkiaUtils.h107 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect);
H A DSkiaUtils.cpp288 bool shouldDrawAntiAliased(const GraphicsContext* context, const SkRect& destRect)
314 return destRect.width() * fabs(widthExpansion) < 1 || destRect.height() * fabs(heightExpansion) < 1;
/external/chromium_org/third_party/WebKit/Source/platform/
H A DDragImage.cpp87 FloatRect destRect(FloatPoint(), sizeRespectingOrientation);
89 destRect = destRect.transposedRect();
97 canvas.drawBitmapRect(bitmap->bitmap(), 0, destRect);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
H A DFEComponentTransfer.cpp168 IntRect destRect = drawingRegionOfInputImage(in->absolutePaintRect()); local
172 resultImage->context()->drawBitmap(nativeImage->bitmap(), destRect.x(), destRect.y(), &paint);
176 resultImage->context()->clipOut(destRect);
H A DFilterEffect.h140 FloatRect getSourceRect(const FloatRect& destRect, const FloatRect& clipRect);
H A DFilterEffect.cpp115 FloatRect FilterEffect::getSourceRect(const FloatRect& destRect, const FloatRect& destClipRect) argument
117 FloatRect sourceRect = mapRect(destRect, false);
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
H A DFloatRect.cpp251 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect) argument
256 float widthScale = destRect.width() / srcRect.width();
257 float heightScale = destRect.height() / srcRect.height();
258 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale,
259 destRect.y() + (r.y() - srcRect.y()) * heightScale,
H A DFloatRect.h235 // Map supplied rect from srcRect to an equivalent rect in destRect.
236 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, const FloatRect& destRect);
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DHTMLVideoElement.cpp202 void HTMLVideoElement::paintCurrentFrameInContext(GraphicsContext* context, const IntRect& destRect) const
209 webMediaPlayer()->paint(canvas, destRect, context->getNormalizedAlpha(), mode);
/external/pdfium/core/src/fxge/Microsoft SDK/include/
H A DGdiPlusGraphics.h1782 IN const RectF& destRect,
1795 destRect.X,
1796 destRect.Y,
1797 destRect.Width,
1798 destRect.Height,
1859 IN const Rect& destRect,
1872 destRect.X,
1873 destRect.Y,
1874 destRect.Width,
1875 destRect
1781 DrawImage(IN Image* image, IN const RectF& destRect, IN REAL srcx, IN REAL srcy, IN REAL srcwidth, IN REAL srcheight, IN Unit srcUnit, IN const ImageAttributes* imageAttributes = NULL, IN DrawImageAbort callback = NULL, IN VOID* callbackData = NULL) argument
1858 DrawImage(IN Image* image, IN const Rect& destRect, IN INT srcx, IN INT srcy, IN INT srcwidth, IN INT srcheight, IN Unit srcUnit, IN const ImageAttributes* imageAttributes = NULL, IN DrawImageAbort callback = NULL, IN VOID* callbackData = NULL) argument
1960 EnumerateMetafile( IN const Metafile * metafile, IN const RectF & destRect, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
1978 EnumerateMetafile( IN const Metafile * metafile, IN const Rect & destRect, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2080 EnumerateMetafile( IN const Metafile * metafile, IN const RectF & destRect, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2102 EnumerateMetafile( IN const Metafile * metafile, IN const Rect & destRect, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/include/
H A Dsvga_reg.h1228 SVGASignedRect destRect; member in struct:__anon14112
/external/mesa3d/src/gallium/drivers/svga/include/
H A Dsvga_reg.h1228 SVGASignedRect destRect; member in struct:__anon27523
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d9/
H A DBlit9.cpp300 RECT destRect = {xoffset, yoffset, xoffset + (sourceRect.right - sourceRect.left), yoffset + (sourceRect.bottom - sourceRect.top)}; local
301 HRESULT result = device->StretchRect(source, &sourceRect, dest, &destRect, D3DTEXF_POINT);

Completed in 3213 milliseconds

12