Home
last modified time | relevance | path

Searched refs:dstRect (Results 1 – 25 of 26) sorted by relevance

12

/external/webkit/WebCore/platform/graphics/
DImage.cpp78 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 …]
DGeneratedImage.cpp37 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()
DImage.h161 …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…
DBitmapImage.h165 …virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize…
167 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
DGeneratedImage.h60 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
DGraphicsContext.h353 …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/
DImageCairo.cpp95 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/
DGraphicsContextCairoWin.cpp82 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()
DGraphicsContextWin.cpp102 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()
DImageCGWin.cpp66 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()
DImageCairoWin.cpp74 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()
DGraphicsContextCGWin.cpp80 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/
DImageWx.cpp179 …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/
DSVGImage.cpp176 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/
DPDFDocumentImage.cpp144 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()
DPDFDocumentImage.h61 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
/external/webkit/WebCore/svg/graphics/filters/
DSVGFEOffset.cpp82 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/
DGraphicsContextWince.cpp607 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/
DImageSkia.cpp412 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()
DBitmapImageSingleFrameSkia.h75 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
/external/webkit/WebCore/platform/graphics/qt/
DGraphicsContextQt.cpp1189 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()
DStillImageQt.h49 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeO…
/external/webkit/WebCore/html/canvas/
DCanvasRenderingContext2D.h159 …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…
DCanvasRenderingContext2D.cpp972 …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/
DImageAndroid.cpp188 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, in draw() argument
210 SkRect dstR(dstRect); in draw()

12