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

123

/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DContextShadowCairo.cpp285 FloatRect destRect = tileRect; local
286 destRect.move(shadowRect.x(), shadowRect.y());
287 destRect.setWidth(shadowRect.width() - topLeftRadius.width() - topRightRadius.width() - m_blurDistance * 4);
288 FloatPoint phase = getPhase(destRect, tileRect);
291 drawPatternToCairoContext(cr, m_layerImage, shadowTemplateSize, tileRect, patternTransform, phase, CAIRO_OPERATOR_OVER, destRect);
295 destRect = tileRect;
296 destRect.move(shadowRect.x(), shadowRect.y() + radiusTwice + rect.height() - shadowTemplateSize.height());
297 destRect.setWidth(shadowRect.width() - bottomLeftRadius.width() - bottomRightRadius.width() - m_blurDistance * 4);
298 phase = getPhase(destRect, tileRect);
299 drawPatternToCairoContext(cr, m_layerImage, shadowTemplateSize, tileRect, patternTransform, phase, CAIRO_OPERATOR_OVER, destRect);
[all...]
H A DCairoUtilities.cpp125 const AffineTransform& patternTransform, const FloatPoint& phase, cairo_operator_t op, const FloatRect& destRect)
156 cairo_rectangle(cr, destRect.x(), destRect.y(), destRect.width(), destRect.height());
124 drawPatternToCairoContext(cairo_t* cr, cairo_surface_t* image, const IntSize& imageSize, const FloatRect& tileRect, const AffineTransform& patternTransform, const FloatPoint& phase, cairo_operator_t op, const FloatRect& destRect) argument
H A DCairoUtilities.h47 const AffineTransform& patternTransform, const FloatPoint& phase, cairo_operator_t op, const FloatRect& destRect);
/external/webkit/Source/WebCore/svg/
H A DSVGPreserveAspectRatio.cpp159 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) argument
162 float origDestWidth = destRect.width();
163 float origDestHeight = destRect.height();
170 destRect.setHeight(origDestWidth * widthToHeightMultiplier);
175 destRect.setY(destRect.y() + origDestHeight / 2 - destRect.height() / 2);
180 destRect.setY(destRect.y() + origDestHeight - destRect
[all...]
H A DSVGPreserveAspectRatio.h63 void transformRect(FloatRect& destRect, FloatRect& srcRect);
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DStillImageHaiku.cpp66 void StillImage::draw(GraphicsContext* context, const FloatRect& destRect, argument
74 context->platformContext()->DrawBitmap(&m_bitmap, sourceRect, destRect);
/external/webkit/Source/WebCore/svg/graphics/filters/
H A DSVGFEImage.cpp69 FloatRect destRect(m_absoluteSubregion);
70 m_preserveAspectRatio.transformRect(destRect, srcRect);
73 destRect.move(-paintLocation.x(), -paintLocation.y());
75 resultImage->context()->drawImage(m_image.get(), ColorSpaceDeviceRGB, destRect, srcRect);
/external/webkit/Source/WebCore/platform/graphics/cg/
H A DImageCG.cpp170 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
179 fillWithSolidColor(ctxt, destRect, solidColor(), styleColorSpace, compositeOp);
194 FloatRect adjustedDestRect = destRect;
202 shouldUseSubimage = (interpolationQuality != kCGInterpolationNone) && (srcRect.size() != destRect.size() || !ctxt->getCTM().isIdentityOrTranslationOrFlipped());
203 float xScale = srcRect.width() / destRect.width();
204 float yScale = srcRect.height() / destRect.height();
225 adjustedDestRect.setLocation(FloatPoint(destRect.x() - srcRect.x() / xScale, destRect.y() - srcRect.y() / yScale));
229 CGContextClipToRect(context, destRect);
261 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
260 drawPattern(GraphicsContext* ctxt, const FloatRect& tileRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect) argument
[all...]
H A DImageBufferCG.cpp200 void ImageBuffer::draw(GraphicsContext* destContext, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, argument
207 destContext->drawImage(copy.get(), ColorSpaceDeviceRGB, destRect, srcRect, op, useLowQualityScale);
210 destContext->drawImage(imageForRendering.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale);
215 destContext->drawImage(copy.get(), colorSpace, destRect, srcRect, op, useLowQualityScale);
220 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
226 copy->drawPattern(destContext, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
229 imageForRendering->drawPattern(destContext, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
233 copy->drawPattern(destContext, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
219 drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect) argument
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DImageBufferWinCE.cpp48 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect);
61 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
63 m_data->m_bitmap->drawPattern(ctxt, tileRectIn, patternTransform, phase, styleColorSpace, op, destRect, size());
116 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, argument
120 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale);
124 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
127 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
197 IntRect destRect(destPoint, sourceRect.size());
198 destRect.intersect(IntRect(0, 0, bitmap->width(), bitmap->height()));
200 if (destRect
60 drawPattern(GraphicsContext* ctxt, const FloatRect& tileRectIn, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect) argument
123 drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect) argument
[all...]
H A DSharedBitmap.cpp346 static void drawPatternSimple(HDC hdc, const RECT& destRect, HBITMAP hbmp, const POINT& phase) argument
353 SetBrushOrgEx(hdc, destRect.left - phase.x, destRect.top - phase.y, &oldOrg);
354 FillRect(hdc, &destRect, hBrush.get());
358 static void drawPatternSimple(HDC hdc, const RECT& destRect, const SharedBitmap* bmp, const SIZE& bmpSize, const POINT& phase) argument
360 int dstY = destRect.top;
361 for (int sourceY = phase.y; dstY < destRect.bottom; ) {
362 int sourceH = std::min<int>(bmpSize.cy - sourceY, destRect.bottom - dstY);
363 int dstX = destRect.left;
364 for (int sourceX = phase.x; dstX < destRect
402 drawPattern(GraphicsContext* ctxt, const FloatRect& tileRectIn, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect, const IntSize& origSourceSize) argument
410 drawPattern(HDC hdc, const AffineTransform& transform, const FloatRect& tileRectIn, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect, const IntSize& origSourceSize) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/wx/
H A DImageBufferWx.cpp107 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, argument
111 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale);
115 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
118 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
114 drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect) argument
/external/webkit/Source/WebCore/platform/graphics/
H A DImage.cpp108 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& scaledTileSize, ColorSpace styleColorSpace, CompositeOperator op) argument
111 fillWithSolidColor(ctxt, destRect, solidColor(), styleColorSpace, op);
125 oneTileRect.setX(destRect.x() + fmodf(fmodf(-srcPoint.x(), scaledTileSize.width()) - scaledTileSize.width(), scaledTileSize.width()));
126 oneTileRect.setY(destRect.y() + fmodf(fmodf(-srcPoint.y(), scaledTileSize.height()) - scaledTileSize.height(), scaledTileSize.height()));
130 if (oneTileRect.contains(destRect)) {
132 visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width());
133 visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height());
134 visibleSrcRect.setWidth(destRect.width() / scale.width());
135 visibleSrcRect.setHeight(destRect.height() / scale.height());
136 draw(ctxt, destRect, visibleSrcRec
[all...]
H A DGeneratedImage.cpp51 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator compositeOp, const FloatRect& destRect)
68 imageBuffer->drawPattern(context, adjustedSrcRect, patternTransform, phase, styleColorSpace, compositeOp, destRect);
50 drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator compositeOp, const FloatRect& destRect) argument
H A DFloatRect.cpp196 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect) argument
201 float widthScale = destRect.width() / srcRect.width();
202 float heightScale = destRect.height() / srcRect.height();
203 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale,
204 destRect.y() + (r.y() - srcRect.y()) * heightScale,
H A DImageBuffer.h108 void draw(GraphicsContext*, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect = FloatRect(0, 0, -1, -1),
111 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect);
H A DShadowBlur.cpp750 FloatRect destRect = FloatRect(shadowBounds.x() + leftSlice, shadowBounds.y(), centerWidth, topSlice); local
751 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect);
756 destRect.setY(shadowBounds.maxY() - bottomSlice);
757 destRect.setHeight(bottomSlice);
758 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect);
762 destRect = FloatRect(shadowBounds.x(), shadowBounds.y() + topSlice, leftSlice, centerHeight);
763 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect);
768 destRect.setX(shadowBounds.maxX() - rightSlice);
769 destRect.setWidth(rightSlice);
770 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRec
[all...]
H A DGeneratedImage.h62 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect);
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DTransparencyWin.cpp94 SkRect destRect; local
95 destRect.fLeft = devices[i].x;
96 destRect.fTop = devices[i].y;
97 destRect.fRight = destRect.fLeft + srcBmp.width();
98 destRect.fBottom = destRect.fTop + srcBmp.height();
100 destCanvas.drawBitmapRect(srcBmp, 0, destRect);
438 SkRect destRect; local
449 destRect
490 SkRect destRect = { m_transformedSourceRect.x(), m_transformedSourceRect.y(), m_transformedSourceRect.maxX(), m_transformedSourceRect.maxY() }; local
[all...]
H A DLayerTilerChromium.cpp331 IntRect destRect(IntPoint(sourceRect.x() - anchor.x(), sourceRect.y() - anchor.y()), sourceRect.size());
332 if (destRect.x() < 0)
334 if (destRect.y() < 0)
343 if (paintOffset.x() + destRect.width() > paintRect.width())
345 if (paintOffset.y() + destRect.height() > paintRect.height())
354 for (int row = 0; row < destRect.height(); ++row)
355 memcpy(&m_tilePixels[destRect.width() * 4 * row],
357 destRect.width() * 4);
368 GLC(context, context->texSubImage2D(GraphicsContext3D::TEXTURE_2D, 0, destRect.x(), destRect
[all...]
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DImageSkia.cpp166 static void drawResampledBitmap(SkCanvas& canvas, SkPaint& paint, const NativeImageSkia& bitmap, const SkIRect& srcIRect, const SkRect& destRect) argument
181 destRect.round(&destRectRounded);
185 // Apply forward transform to destRect to estimate required size of
189 canvas.getTotalMatrix().mapRect(&destRectTransformed, destRect);
196 canvas.drawBitmapRect(resampled, 0, destRect, &paint);
204 ClipRectToCanvas(canvas, destRect, &destBitmapSubsetSk);
207 destBitmapSubsetSk.offset(-destRect.fLeft, -destRect.fTop);
231 canvas.drawBitmapRect(resampled, 0, destRect, &paint);
250 destBitmapSubsetSkI.offset(destRect
259 paintSkBitmap(PlatformContextSkia* platformContext, const NativeImageSkia& bitmap, const SkIRect& srcRect, const SkRect& destRect, const SkXfermode::Mode& compOp) argument
338 drawPattern(GraphicsContext* context, const FloatRect& floatSrcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator compositeOp, const FloatRect& destRect) argument
[all...]
H A DSkiaUtils.h69 // srcRect and destRect can be the same.
70 void ClipRectToCanvas(const SkCanvas&, const SkRect& srcRect, SkRect* destRect);
H A DSkiaUtils.cpp163 void IntersectRectAndRegion(const SkRegion& region, const SkRect& srcRect, SkRect* destRect) { argument
172 destRect->setEmpty();
184 destRect->set(currentVisibleRect);
187 void ClipRectToCanvas(const SkCanvas& canvas, const SkRect& srcRect, SkRect* destRect) { argument
200 inverseTransform.mapRect(destRect, transformedDest);
/external/webkit/Source/WebCore/rendering/svg/
H A DRenderSVGImage.cpp126 FloatRect destRect = m_objectBoundingBox; local
131 imageElement->preserveAspectRatio().transformRect(destRect, srcRect);
133 childPaintInfo.context->drawImage(image.get(), ColorSpaceDeviceRGB, destRect, srcRect);
/external/webkit/Source/WebCore/platform/graphics/android/
H A DImageBufferAndroid.cpp117 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator op, bool useLowQualityScale) argument
120 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale);
123 void ImageBuffer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect) argument
126 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);

Completed in 291 milliseconds

123