/external/webkit/Source/WebCore/platform/graphics/cairo/ |
D | ImageCairo.cpp | 99 FloatRect dstRect(dst); in draw() local 101 if (dstRect.width() == 0.0f || dstRect.height() == 0.0f || in draw() 112 fillWithSolidColor(context, dstRect, solidColor(), styleColorSpace, op); in draw() 134 float scaleX = srcRect.width() / dstRect.width(); in draw() 135 float scaleY = srcRect.height() / dstRect.height(); in draw() 142 cairo_t* shadowContext = shadow->beginShadowLayer(context, dstRect); in draw() 144 cairo_translate(shadowContext, dstRect.x(), dstRect.y()); in draw() 146 cairo_rectangle(shadowContext, 0, 0, dstRect.width(), dstRect.height()); in draw() 153 cairo_translate(cr, dstRect.x(), dstRect.y()); in draw() 156 cairo_rectangle(cr, 0, 0, dstRect.width(), dstRect.height()); in draw()
|
/external/skia/gm/ |
D | nocolorbleed.cpp | 48 SkRect dstRect; in onDraw() local 53 dstRect.setXYWH(SkIntToScalar(0), SkIntToScalar(0) in onDraw() 55 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint); in onDraw() 56 dstRect.setXYWH(SkIntToScalar(100), SkIntToScalar(0) in onDraw() 58 canvas->drawBitmapRect(sprite, &srcRect, dstRect); in onDraw() 61 dstRect.setXYWH(SkIntToScalar(25), SkIntToScalar(125) in onDraw() 63 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint); in onDraw() 64 dstRect.setXYWH(SkIntToScalar(125), SkIntToScalar(125) in onDraw() 66 canvas->drawBitmapRect(sprite, &srcRect, dstRect); in onDraw()
|
D | drawbitmaprect.cpp | 100 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 132 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect); in onDraw() 139 SkScalar baseline = dstRect.height() + in onDraw() 147 canvas->drawRect(dstRect, blackPaint); in onDraw() 149 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 151 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw() 153 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw() 177 canvas->drawBitmapRect(bm, &srcRect, dstRect, &paint); in onDraw()
|
/external/webkit/Source/WebCore/platform/graphics/ |
D | Image.cpp | 79 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color,… in fillWithSolidColor() argument 86 ctxt->fillRect(dstRect, color, styleColorSpace); in fillWithSolidColor() 90 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, I… in calculatePatternScale() argument 95 scaleX = dstRect.width() / srcRect.width(); in calculatePatternScale() 97 scaleY = dstRect.height() / srcRect.height(); in calculatePatternScale() 148 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, Ti… in drawTiled() argument 151 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, op); in drawTiled() 161 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule); in drawTiled() 169 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f; in drawTiled() 171 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 | 164 …static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, const Color&, ColorSpac… 168 …virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize… in drawFrameMatchingSourceSize() argument 170 …virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace… 171 …void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const Float… 172 …void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRul…
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
D | ImageHaiku.cpp | 112 BRect dstRect(dst); in draw() local 117 ctxt->platformContext()->DrawBitmapAsync(image, srcRect, dstRect); in draw() 124 …ternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator op, const FloatRect& dstRect) in drawPattern() argument 152 context->clip(enclosingIntRect(dstRect)); in drawPattern() 155 while (currentW < dstRect.x() + dstRect.width()) { in drawPattern() 157 while (currentH < dstRect.y() + dstRect.height()) { in drawPattern()
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
D | GLES2Canvas.h | 88 …, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, Comp… 90 …void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, Co… 92 …void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTr… 105 …e(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTran… 106 …d(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTran… 107 …l(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTran… 108 …, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncre…
|
D | GLES2Canvas.cpp | 395 …, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace color… in drawTexturedRect() argument 405 drawTexturedQuad(textureSize, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha); in drawTexturedRect() 408 …exturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace color… in drawTexturedRect() argument 410 …drawTexturedRect(texture, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha, colorSpace, composit… in drawTexturedRect() 414 …exturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTran… in drawTexturedRect() argument 426 … drawTexturedRectTile(texture, tiles.tileIndex(x, y), srcRect, dstRect, transform, alpha); in drawTexturedRect() 430 …e(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTran… in drawTexturedRectTile() argument 432 if (dstRect.isEmpty()) in drawTexturedRectTile() 441 … tiles.intersectDrawQuad(srcRect, dstRect, tile, &srcRectClippedInTileSpace, &dstRectIntersected); in drawTexturedRectTile() 448 …, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncre… in convolveRect() argument [all …]
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | image_utils.mm | 9 - (void)drawInRect:(NSRect)dstRect 25 dstRect.origin.y -= NSMaxY(dstRect) + NSMinY(dstRect); 28 [self drawInRect:dstRect
|
/external/webkit/Source/WebCore/platform/graphics/wx/ |
D | ImageWx.cpp | 180 …patternTransform, const FloatPoint& phase, ColorSpace, 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()
|
D | GraphicsContextWx.cpp | 611 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCrea… in getWindowsContext() argument 613 if (dstRect.isEmpty()) in getWindowsContext() 619 bitmapInfo.bmiHeader.biWidth = dstRect.width(); in getWindowsContext() 620 bitmapInfo.bmiHeader.biHeight = dstRect.height(); in getWindowsContext() 651 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument 655 if (!dstRect.isEmpty()) { in releaseWindowsContext() 668 m_data->context->DrawBitmap(bmp, dstRect.x(), dstRect.y(), supportAlphaBlend); in releaseWindowsContext()
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
D | TilingData.cpp | 205 void TilingData::intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile, in intersectDrawQuad() argument 229 srcRectIntersectedNormX * dstRect.width() + dstRect.x(), in intersectDrawQuad() 230 srcRectIntersectedNormY * dstRect.height() + dstRect.y(), in intersectDrawQuad() 231 srcRectIntersectedNormW * dstRect.width(), in intersectDrawQuad() 232 srcRectIntersectedNormH * dstRect.height()); in intersectDrawQuad()
|
D | Texture.cpp | 178 IntRect dstRect = updateRectIntersected; in updateSubRect() local 179 dstRect.move(-tileBoundsWithBorder.x(), -tileBoundsWithBorder.y()); in updateSubRect() 198 dstRect.x(), in updateSubRect() 199 dstRect.y(), in updateSubRect()
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
D | ImageWinCE.cpp | 91 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, cons… in drawFrameMatchingSourceSize() argument 101 …draw(ctxt, dstRect, FloatRect(0, 0, srcSize.width(), srcSize.height()), styleColorSpace, composite… in drawFrameMatchingSourceSize() 108 …draw(ctxt, dstRect, FloatRect(0, 0, imageSize.width(), imageSize.height()), styleColorSpace, compo… in drawFrameMatchingSourceSize() 111 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRectIn,… in draw() argument 117 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, compositeOp); in draw() 130 bmp->draw(ctxt, enclosingIntRect(dstRect), intSrcRect, styleColorSpace, compositeOp); in draw()
|
D | SharedBitmap.cpp | 239 void SharedBitmap::draw(GraphicsContext* ctxt, const IntRect& dstRect, const IntRect& srcRect, Colo… in draw() argument 243 ctxt->drawBitmap(this, dstRect, srcRect, styleColorSpace, compositeOp); in draw() 246 void SharedBitmap::draw(HDC hdc, const IntRect& dstRect, const IntRect& srcRect, CompositeOperator … in draw() argument 251 if (dstRect.isEmpty() || srcRect.isEmpty()) in draw() 275 StretchDIBits(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), in draw() 285 …bool success = alphaBlendIfSupported(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.heigh… in draw() 289 … TransparentBlt(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), hmemdc.get(), in draw()
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
D | GraphicsContextWin.cpp | 100 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCrea… in getWindowsContext() argument 104 if (dstRect.isEmpty()) in getWindowsContext() 108 BitmapInfo bitmapInfo = BitmapInfo::create(dstRect.size()); in getWindowsContext() 126 XFORM xform = TransformationMatrix().translate(-dstRect.x(), -dstRect.y()); in getWindowsContext()
|
D | GraphicsContextCairoWin.cpp | 123 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument 131 if (dstRect.isEmpty()) in releaseWindowsContext() 146 …text(m_data, platformContext()->cr(), pixelData, IntSize(dstRect.x(), dstRect.height() + dstRect.y… in releaseWindowsContext()
|
D | ImageCairoWin.cpp | 95 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, cons… in drawFrameMatchingSourceSize() argument 103 …draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), ColorSpaceDeviceRGB,… in drawFrameMatchingSourceSize() 111 …draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), ColorSpaceDevice… in drawFrameMatchingSourceSize()
|
D | ImageCGWin.cpp | 89 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, cons… in drawFrameMatchingSourceSize() argument 97 …draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), styleColorSpace, com… in drawFrameMatchingSourceSize() 105 …draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), styleColorSpace,… in drawFrameMatchingSourceSize()
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
D | PDFDocumentImage.cpp | 156 void PDFDocumentImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& sr… in draw() argument 165 float hScale = dstRect.width() / srcRect.width(); in draw() 166 float vScale = dstRect.height() / srcRect.height(); in draw() 171 …CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() … in draw()
|
/external/webkit/Source/WebCore/svg/graphics/ |
D | SVGImage.cpp | 178 void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, C… in draw() argument 187 context->clip(enclosingIntRect(dstRect)); in draw() 191 FloatSize scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()); in draw() 196 FloatPoint destOffset = dstRect.location() - topLeftOffset; in draw()
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
D | ImageSkia.cpp | 434 …txt, NativeImageSkia* bitmap, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace style… in drawBitmapGLES2() argument 447 gpuCanvas->drawTexturedRect(texture, srcRect, dstRect, styleColorSpace, compositeOp); in drawBitmapGLES2() 474 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, in draw() argument 489 FloatRect normDstRect = normalizeRect(dstRect); in draw() 512 const FloatRect& dstRect, in draw() argument 517 FloatRect normDstRect = normalizeRect(dstRect); in draw() 524 drawBitmapGLES2(ctxt, &m_nativeImage, srcRect, dstRect, styleColorSpace, compositeOp); in draw()
|
/external/qemu/distrib/sdl-1.2.15/test/ |
D | testblitspeed.c | 149 SDL_Rect dstRect; in blit() local 153 dstRect.x = x; in blit() 154 dstRect.y = y; in blit() 155 dstRect.w = srcRect.w = src->w; /* SDL will clip as appropriate. */ in blit() 156 dstRect.h = srcRect.h = src->h; in blit() 159 SDL_BlitSurface(src, &srcRect, dst, &dstRect); in blit()
|
/external/skia/src/effects/ |
D | SkBicubicImageFilter.cpp | 91 SkRect dstRect = SkRect::MakeWH(SkScalarMul(SkIntToScalar(src.width()), fScale.fWidth), in onFilterImage() local 94 dstRect.roundOut(&dstIRect); in onFilterImage() 104 inverse.setRectToRect(dstRect, srcRect, SkMatrix::kFill_ScaleToFit); in onFilterImage() 343 SkRect dstRect = SkRect::MakeWH(srcBM.width() * fScale.fWidth, in filterImageGPU() local 348 desc.fWidth = SkScalarCeilToInt(dstRect.width()); in filterImageGPU() 349 desc.fHeight = SkScalarCeilToInt(dstRect.height()); in filterImageGPU() 362 context->drawRectToRect(paint, dstRect, srcRect); in filterImageGPU()
|