Searched defs:srcRect (Results 1 - 25 of 45) sorted by relevance

12

/external/webkit/Source/WebKit2/Shared/gtk/
H A DShareableBitmapGtk.cpp43 void ShareableBitmap::paint(WebCore::GraphicsContext&, const WebCore::IntPoint& dstPoint, const WebCore::IntRect& srcRect) argument
/external/skia/gm/
H A Dnocolorbleed.cpp47 SkIRect srcRect; local
52 srcRect.setXYWH(0, 0, 4, 4);
55 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
58 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
60 srcRect.setXYWH(1, 1, 2, 2);
63 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
66 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
H A Ddrawbitmaprect.cpp113 SkIRect srcRect = SkIRect::MakeXYWH((kBmpSize - w) / 2, local
116 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect);
/external/skia/samplecode/
H A DSampleTextureDomain.cpp49 SkIRect srcRect; local
56 srcRect.setXYWH(1, 1, 3, 3);
58 canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint);
70 srcRect.setXYWH(1, 1, 3, 3);
72 secondCanvas.drawBitmapRect(fBM, &srcRect, dstRect, &paint);
76 srcRect.setXYWH(1, 1, 3, 3);
78 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
82 srcRect.setXYWH(1, 1, 3, 3);
90 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
/external/webkit/Source/WebCore/platform/graphics/
H A DGeneratedImage.cpp37 void GeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp) argument
43 if (dstRect.size() != srcRect.size())
44 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()));
45 context->translate(-srcRect.x(), -srcRect.y());
50 void GeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, argument
55 FloatRect adjustedSrcRect = srcRect;
H A DGradient.cpp69 void Gradient::adjustParametersForTiledDrawing(IntSize& size, FloatRect& srcRect) argument
74 if (srcRect.isEmpty())
79 srcRect.setWidth(1);
80 srcRect.setX(0);
87 srcRect.setHeight(1);
88 srcRect.setY(0);
H A DImage.cpp90 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, Image::TileRule hRule, Image::TileRule vRule) argument
95 scaleX = dstRect.width() / srcRect.width();
97 scaleY = dstRect.height() / srcRect.height();
148 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator op) argument
161 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule);
166 float hPhase = scale.width() * srcRect.x();
167 float vPhase = scale.height() * srcRect.y();
169 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f;
171 vPhase -= fmodf(dstRect.height(), scale.height() * srcRect.height()) / 2.0f;
174 drawPattern(ctxt, srcRect, patternTransfor
[all...]
H A DFloatRect.cpp196 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect) argument
198 if (srcRect.width() == 0 || srcRect.height() == 0)
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,
/external/webkit/Source/WebKit2/Shared/qt/
H A DShareableBitmapQt.cpp50 void ShareableBitmap::paint(GraphicsContext& context, const IntPoint& dstPoint, const IntRect& srcRect) argument
54 painter->translate(-srcRect.x(), -srcRect.y());
55 painter->drawImage(dstPoint, image, QRect(srcRect));
56 painter->translate(srcRect.x(), srcRect.y());
/external/webkit/Source/WebKit2/Shared/cg/
H A DShareableBitmapCG.cpp65 void ShareableBitmap::paint(WebCore::GraphicsContext& context, const IntPoint& dstPoint, const IntRect& srcRect) argument
67 paintImage(context.platformContext(), makeCGImageCopy().get(), dstPoint, srcRect);
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
H A DGLExtras.cpp52 void GLExtras::drawRing(SkRect& srcRect, Color color, const TransformationMatrix* drawMat) argument
54 if (srcRect.fRight <= srcRect.fLeft || srcRect.fBottom <= srcRect.fTop) {
58 ALOGV("drawQuad [%fx%f, %f, %f]", srcRect.fLeft, srcRect.fTop,
59 srcRect.width(), srcRect.height());
67 drawMat, &srcRect, alph
[all...]
/external/webkit/Source/WebCore/platform/graphics/openvg/
H A DImageOpenVG.cpp115 static void adjustSourceRectForDownSampling(FloatRect& srcRect, const IntSize& origSize, const IntSize& scaledSize) argument
123 double temp = srcRect.right() * rate;
124 srcRect.setX(srcRect.x() * rate);
125 srcRect.setWidth(temp - srcRect.x());
126 temp = srcRect.bottom() * rate;
127 srcRect.setY(srcRect.y() * rate);
128 srcRect
[all...]
/external/webkit/Source/WebKit2/UIProcess/win/
H A DBackingStoreWin.cpp93 IntRect srcRect = updateRect; local
94 srcRect.move(-updateRectLocation.x(), -updateRectLocation.y());
96 bitmap->paint(graphicsContext, updateRect.location(), srcRect);
/external/webkit/Source/WebCore/platform/graphics/cg/
H A DPDFDocumentImage.cpp156 void PDFDocumentImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator op) argument
165 float hScale = dstRect.width() / srcRect.width();
166 float vScale = dstRect.height() / srcRect.height();
171 CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() - srcRect.y() * vScale);
174 CGContextTranslateCTM(context->platformContext(), 0, -srcRect.height());
175 CGContextClipToRect(context->platformContext(), CGRectIntegral(srcRect));
H A DImageCG.cpp170 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
184 if (currHeight <= srcRect.y())
196 if (srcRect.size() != selfSize) {
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();
206 FloatRect subimageRect = srcRect;
207 float leftPadding = srcRect.x() - floorf(srcRect.x());
208 float topPadding = srcRect
[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);
114 void ImageBuffer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, argument
118 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
H A DImageWx.cpp180 void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator, const FloatRect& dstRect) argument
204 float adjustedX = phase.x() + srcRect.x() *
206 float adjustedY = phase.y() + srcRect.y() *
222 gc->DrawBitmap(*bitmap, adjustedX + currentW, adjustedY + currentH, (wxDouble)srcRect.width(), (wxDouble)srcRect.height());
224 gc->DrawGraphicsBitmap(*bitmap, adjustedX + currentW, adjustedY + currentH, (wxDouble)srcRect.width(), (wxDouble)srcRect.height());
228 (wxCoord)srcRect.width(), (wxCoord)srcRect.height(), &mydc,
229 (wxCoord)srcRect
[all...]
/external/webkit/Source/WebCore/svg/
H A DSVGPreserveAspectRatio.cpp159 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) argument
161 FloatSize imageSize = srcRect.size();
168 float widthToHeightMultiplier = srcRect.height() / srcRect.width();
206 float widthToHeightMultiplier = srcRect.height() / srcRect.width();
209 float destToSrcMultiplier = srcRect.width() / destRect.width();
210 srcRect.setHeight(destRect.height() * destToSrcMultiplier);
215 srcRect.setY(destRect.y() + imageSize.height() / 2 - srcRect
[all...]
/external/skia/src/pdf/
H A DSkPDFImage.cpp25 void extractImageData(const SkBitmap& bitmap, const SkIRect& srcRect, argument
35 const int rowBytes = srcRect.width();
36 image = new SkMemoryStream(rowBytes * srcRect.height());
38 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) {
39 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
45 const int rowBytes = srcRect.width();
46 image = new SkMemoryStream(rowBytes * srcRect.height());
50 for (int y = srcRect.fTop; y < srcRect
252 CreateImage(const SkBitmap& bitmap, const SkIRect& srcRect, const SkPaint& paint) argument
294 SkPDFImage(SkStream* imageData, const SkBitmap& bitmap, const SkIRect& srcRect, bool doingAlpha, const SkPaint& paint) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/android/
H A DImageAndroid.cpp175 const FloatRect& srcRect, ColorSpace,
201 round_scaled(&srcR, srcRect, invScaleX, invScaleY);
230 void Image::drawPattern(GraphicsContext* gc, const FloatRect& srcRect, argument
253 round_scaled(&srcR, srcRect, 1 / scaleX, 1 / scaleY);
255 round(&srcR, srcRect);
273 float tx = phase.x() + srcRect.x() * patternTransform.a();
274 float ty = phase.y() + srcRect.y() * patternTransform.d();
174 draw(GraphicsContext* gc, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp) argument
/external/webkit/Source/WebCore/platform/graphics/filters/
H A DFEComposite.cpp230 FloatRect srcRect = FloatRect(0, 0, -1, -1); local
244 filterContext->drawImageBuffer(in2->asImageBuffer(), ColorSpaceDeviceRGB, drawingRegionOfInputImage(in2->absolutePaintRect()), srcRect, CompositeDestinationOut);
248 filterContext->drawImageBuffer(in->asImageBuffer(), ColorSpaceDeviceRGB, drawingRegionOfInputImage(in->absolutePaintRect()), srcRect, CompositeSourceAtop);
252 filterContext->drawImageBuffer(in->asImageBuffer(), ColorSpaceDeviceRGB, drawingRegionOfInputImage(in->absolutePaintRect()), srcRect, CompositeXOR);
/external/webkit/Source/WebCore/platform/graphics/gpu/
H A DTilingData.cpp191 IntRect TilingData::overlappedTileIndices(const WebCore::IntRect &srcRect) const
193 int x = tileXIndexFromSrcCoord(srcRect.x());
194 int y = tileYIndexFromSrcCoord(srcRect.y());
195 int r = tileXIndexFromSrcCoord(srcRect.maxX());
196 int b = tileYIndexFromSrcCoord(srcRect.maxY());
200 IntRect TilingData::overlappedTileIndices(const WebCore::FloatRect &srcRect) const
202 return overlappedTileIndices(enclosingIntRect(srcRect));
205 void TilingData::intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile, argument
210 FloatRect srcRectIntersected = srcRect;
218 float srcRectIntersectedNormX = (srcRectIntersected.x() - srcRect
[all...]
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DSkiaUtils.cpp163 void IntersectRectAndRegion(const SkRegion& region, const SkRect& srcRect, SkRect* destRect) { argument
166 srcRect.roundOut(&srcRectRounded);
187 void ClipRectToCanvas(const SkCanvas& canvas, const SkRect& srcRect, SkRect* destRect) { argument
191 canvas.getTotalMatrix().mapRect(&transformedSrc, srcRect);
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DImageBufferWinCE.cpp46 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
47 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const AffineTransform& patternTransform,
53 void BufferedImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
56 IntRect intSrcRect(srcRect);
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);
123 void ImageBuffer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, argument
127 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
/external/webkit/Source/WebCore/svg/graphics/
H A DSVGImage.cpp178 void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp) argument
191 FloatSize scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height());
195 FloatSize topLeftOffset(srcRect.location().x() * scale.width(), srcRect.location().y() * scale.height());

Completed in 374 milliseconds

12