/external/webkit/WebCore/platform/graphics/ |
D | Image.cpp | 78 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color,… in fillWithSolidColor() argument 85 ctxt->fillRect(dstRect, color); in fillWithSolidColor() 89 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, I… in calculatePatternScale() argument 94 scaleX = dstRect.width() / srcRect.width(); in calculatePatternScale() 96 scaleY = dstRect.height() / srcRect.height(); in calculatePatternScale() 147 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, Ti… in drawTiled() argument 150 fillWithSolidColor(ctxt, dstRect, solidColor(), op); in drawTiled() 160 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule); in drawTiled() 168 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f; in drawTiled() 170 vPhase -= fmodf(dstRect.height(), scale.height() * srcRect.height()) / 2.0f; in drawTiled() [all …]
|
D | GeneratedImage.cpp | 37 void GeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcR… in draw() argument 41 context->clip(dstRect); in draw() 42 context->translate(dstRect.x(), dstRect.y()); in draw() 43 if (dstRect.size() != srcRect.size()) in draw() 44 … context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height())); in draw()
|
D | Image.h | 161 …static void fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color… 164 …virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize… in drawFrameMatchingSourceSize() argument 166 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO… 167 …void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const Float… 168 …void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRul…
|
D | BitmapImage.h | 165 …virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize… 167 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
|
D | GeneratedImage.h | 60 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
|
D | GraphicsContext.h | 353 …void drawBitmap(SharedBitmap*, const IntRect& dstRect, const IntRect& srcRect, CompositeOperator c… 355 void drawIcon(HICON icon, const IntRect& dstRect, UINT flags);
|
/external/webkit/WebCore/platform/graphics/cairo/ |
D | ImageCairo.cpp | 95 FloatRect dstRect(dst); in draw() local 97 if (dstRect.width() == 0.0f || dstRect.height() == 0.0f || in draw() 108 fillWithSolidColor(context, dstRect, solidColor(), op); in draw() 134 float scaleX = srcRect.width() / dstRect.width(); in draw() 135 float scaleY = srcRect.height() / dstRect.height(); in draw() 140 cairo_translate(cr, dstRect.x(), dstRect.y()); in draw() 143 cairo_rectangle(cr, 0, 0, dstRect.width(), dstRect.height()); in draw()
|
/external/webkit/WebCore/platform/graphics/win/ |
D | GraphicsContextCairoWin.cpp | 82 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument 89 if (dstRect.isEmpty()) in releaseWindowsContext() 109 cairo_translate(m_data->cr, 0, dstRect.height()); in releaseWindowsContext() 110 cairo_scale(m_data->cr, dstRect.width(), -dstRect.height()); in releaseWindowsContext() 111 cairo_set_source_surface (m_data->cr, image, dstRect.x(), dstRect.y()); in releaseWindowsContext()
|
D | GraphicsContextWin.cpp | 102 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCrea… in getWindowsContext() argument 106 if (dstRect.isEmpty()) in getWindowsContext() 110 BitmapInfo bitmapInfo = BitmapInfo::create(dstRect.size()); in getWindowsContext() 128 XFORM xform = TransformationMatrix().translate(-dstRect.x(), -dstRect.y()); in getWindowsContext()
|
D | ImageCGWin.cpp | 66 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, cons… in drawFrameMatchingSourceSize() argument 74 … draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), compositeOp); in drawFrameMatchingSourceSize() 82 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), compositeOp); in drawFrameMatchingSourceSize()
|
D | ImageCairoWin.cpp | 74 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, cons… in drawFrameMatchingSourceSize() argument 82 … draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), compositeOp); in drawFrameMatchingSourceSize() 90 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), compositeOp); in drawFrameMatchingSourceSize()
|
D | GraphicsContextCGWin.cpp | 80 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument 83 if (dstRect.isEmpty()) in releaseWindowsContext() 101 CGContextDrawImage(m_data->m_cgContext, dstRect, image); in releaseWindowsContext()
|
/external/webkit/WebCore/platform/graphics/wx/ |
D | ImageWx.cpp | 179 …tionMatrix& patternTransform, const FloatPoint& phase, CompositeOperator, const FloatRect& dstRect) in drawPattern() argument 196 ctxt->clip(IntRect(dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height())); in drawPattern() 218 while ( currentW < dstRect.width() && currentW < clientSize.x - origin.x ) { in drawPattern() 219 while ( currentH < dstRect.height() && currentH < clientSize.y - origin.y) { in drawPattern() 227 context->Blit((wxCoord)dstRect.x() + currentW, (wxCoord)dstRect.y() + currentH, in drawPattern()
|
/external/webkit/WebCore/svg/graphics/ |
D | SVGImage.cpp | 176 void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, C… in draw() argument 185 context->clip(enclosingIntRect(dstRect)); in draw() 188 context->translate(dstRect.location().x(), dstRect.location().y()); in draw() 189 … context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height())); in draw()
|
/external/webkit/WebCore/platform/graphics/cg/ |
D | PDFDocumentImage.cpp | 144 void PDFDocumentImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& sr… in draw() argument 153 float hScale = dstRect.width() / srcRect.width(); in draw() 154 float vScale = dstRect.height() / srcRect.height(); in draw() 159 …CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() … in draw()
|
D | PDFDocumentImage.h | 61 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
|
/external/webkit/WebCore/svg/graphics/filters/ |
D | SVGFEOffset.cpp | 82 FloatRect dstRect = FloatRect(dx() + m_in->subRegion().x() - subRegion().x(), in apply() local 87 filterContext->drawImage(m_in->resultImage()->image(), dstRect); in apply()
|
/external/webkit/WebCore/platform/graphics/wince/ |
D | GraphicsContextWince.cpp | 607 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCrea… in getWindowsContext() argument 614 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument 1248 IntRect dstRect = fillRect; in fillRoundedRect() local 1250 dstRect.move(shadowSize); in fillRoundedRect() 1251 dstRect.inflate(shadowBlur); in fillRoundedRect() 1252 dstRect = m_data->mapRect(dstRect); in fillRoundedRect() 1259 TransparentLayerDC transparentDc(m_data, dstRect, &fillRect); in fillRoundedRect() 1264 dstRect.move(transparentDc.toShift()); in fillRoundedRect() 1266 RECT rectWin = dstRect; in fillRoundedRect() 1855 IntRect dstRect = m_data->mapRect(dstRectIn); in drawBitmap() local [all …]
|
/external/webkit/WebCore/platform/graphics/skia/ |
D | ImageSkia.cpp | 412 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, in draw() argument 427 FloatRect normDstRect = normalizeRect(dstRect); in draw() 443 const FloatRect& dstRect, in draw() argument 447 FloatRect normDstRect = normalizeRect(dstRect); in draw()
|
D | BitmapImageSingleFrameSkia.h | 75 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
|
/external/webkit/WebCore/platform/graphics/qt/ |
D | GraphicsContextQt.cpp | 1189 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCrea… in getWindowsContext() argument 1194 if (dstRect.isEmpty()) in getWindowsContext() 1200 bitmapInfo.bmiHeader.biWidth = dstRect.width(); in getWindowsContext() 1201 bitmapInfo.bmiHeader.biHeight = dstRect.height(); in getWindowsContext() 1240 xform.eDx = -dstRect.x(); in getWindowsContext() 1241 xform.eDy = -dstRect.y(); in getWindowsContext() 1248 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument 1255 if (!dstRect.isEmpty()) { in releaseWindowsContext() 1263 m_data->p()->drawPixmap(dstRect, pixmap); in releaseWindowsContext()
|
D | StillImageQt.h | 49 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
|
/external/webkit/WebCore/html/canvas/ |
D | CanvasRenderingContext2D.h | 159 …void drawImage(HTMLImageElement*, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCod… 162 …void drawImage(HTMLCanvasElement*, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCo… 166 …void drawImage(HTMLVideoElement*, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCod…
|
D | CanvasRenderingContext2D.cpp | 972 …ngContext2D::drawImage(HTMLImageElement* image, const FloatRect& srcRect, const FloatRect& dstRect, in drawImage() argument 985 if (!dstRect.width() || !dstRect.height()) in drawImage() 1005 FloatRect destRect = c->roundToDevicePixels(dstRect); in drawImage() 1025 const FloatRect& dstRect, ExceptionCode& ec) in drawImage() argument 1037 if (!dstRect.width() || !dstRect.height()) in drawImage() 1047 FloatRect destRect = c->roundToDevicePixels(dstRect); in drawImage() 1079 …ngContext2D::drawImage(HTMLVideoElement* video, const FloatRect& srcRect, const FloatRect& dstRect, in drawImage() argument 1091 if (!dstRect.width() || !dstRect.height()) in drawImage() 1107 FloatRect destRect = c->roundToDevicePixels(dstRect); in drawImage()
|
/external/webkit/WebCore/platform/graphics/android/ |
D | ImageAndroid.cpp | 188 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, in draw() argument 210 SkRect dstR(dstRect); in draw()
|