Searched refs:dstRect (Results 1 - 25 of 44) sorted by relevance

12

/external/skia/gm/
H A Dnocolorbleed.cpp48 SkRect dstRect; local
53 dstRect.setXYWH(SkIntToScalar(0), SkIntToScalar(0)
55 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
56 dstRect.setXYWH(SkIntToScalar(100), SkIntToScalar(0)
58 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
61 dstRect.setXYWH(SkIntToScalar(25), SkIntToScalar(125)
63 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
64 dstRect.setXYWH(SkIntToScalar(125), SkIntToScalar(125)
66 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
H A Ddrawbitmaprect.cpp84 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; local
116 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect);
123 SkScalar baseline = dstRect.height() +
131 canvas->drawRect(dstRect, blackPaint);
133 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0);
135 if ((dstRect.width() + kPadX) * rowCount > gSize) {
137 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY);
/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
41 context->clip(dstRect);
42 context->translate(dstRect.x(), dstRect.y());
43 if (dstRect.size() != srcRect.size())
44 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()));
H A DImage.cpp79 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, ColorSpace styleColorSpace, CompositeOperator op) argument
86 ctxt->fillRect(dstRect, color, styleColorSpace);
90 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
151 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, op);
161 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule);
169 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f;
171 vPhase -= fmodf(dstRect
[all...]
H A DImage.h164 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, const Color&, ColorSpace styleColorSpace, CompositeOperator);
168 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator) { } argument
170 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator) = 0;
171 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize, ColorSpace styleColorSpace, CompositeOperator);
172 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator);
H A DGeneratedImage.h60 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
/external/skia/samplecode/
H A DSampleTextureDomain.cpp50 SkRect dstRect; local
57 dstRect.setXYWH(5.0f, 5.0f, 305.0f, 305.0f);
58 canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint);
71 dstRect.setXYWH(1.0f, 1.0f, 3.0f, 3.0f);
72 secondCanvas.drawBitmapRect(fBM, &srcRect, dstRect, &paint);
77 dstRect.setXYWH(405.0f, 5.0f, 305.0f, 305.0f);
78 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
83 dstRect.setXYWH(5.0f, 405.0f, 305.0f, 305.0f);
90 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
103 dstRect
[all...]
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DImageCairo.cpp99 FloatRect dstRect(dst);
101 if (dstRect.width() == 0.0f || dstRect.height() == 0.0f ||
112 fillWithSolidColor(context, dstRect, solidColor(), styleColorSpace, op);
134 float scaleX = srcRect.width() / dstRect.width();
135 float scaleY = srcRect.height() / dstRect.height();
142 cairo_t* shadowContext = shadow->beginShadowLayer(context, dstRect);
144 cairo_translate(shadowContext, dstRect.x(), dstRect.y());
146 cairo_rectangle(shadowContext, 0, 0, dstRect
[all...]
/external/chromium/chrome/browser/ui/cocoa/
H A Dimage_utils.h19 - (void)drawInRect:(NSRect)dstRect
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DGLES2Canvas.h88 void drawTexturedRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, CompositeOperator);
90 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, CompositeOperator);
92 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha, ColorSpace, CompositeOperator, bool clip);
105 void drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
106 void drawTexturedQuad(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
107 void drawTexturedQuadMitchell(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
108 void convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth);
H A DGLES2Canvas.cpp395 void GLES2Canvas::drawTexturedRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace colorSpace, CompositeOperator compositeOp) argument
405 drawTexturedQuad(textureSize, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha);
408 void GLES2Canvas::drawTexturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace colorSpace, CompositeOperator compositeOp) argument
410 drawTexturedRect(texture, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha, colorSpace, compositeOp, m_state->clippingEnabled());
414 void GLES2Canvas::drawTexturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha, ColorSpace colorSpace, CompositeOperator compositeOp, bool clip) argument
426 drawTexturedRectTile(texture, tiles.tileIndex(x, y), srcRect, dstRect, transform, alpha);
430 void GLES2Canvas::drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha) argument
432 if (dstRect.isEmpty())
441 tiles.intersectDrawQuad(srcRect, dstRect, tile, &srcRectClippedInTileSpace, &dstRectIntersected);
448 void GLES2Canvas::convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, floa argument
490 drawTexturedQuad(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha) argument
508 drawTexturedQuadMitchell(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha) argument
858 FloatRect dstRect = srcRect; local
[all...]
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DImageHaiku.cpp112 BRect dstRect(dst);
117 ctxt->platformContext()->DrawBitmapAsync(image, srcRect, dstRect);
124 void Image::drawPattern(GraphicsContext* context, const FloatRect& tileRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator op, const FloatRect& dstRect) argument
152 context->clip(enclosingIntRect(dstRect));
155 while (currentW < dstRect.x() + dstRect.width()) {
157 while (currentH < dstRect.y() + dstRect.height()) {
H A DStillImageHaiku.h48 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DBitmapImageSingleFrameSkia.h76 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
/external/webkit/Source/WebCore/platform/graphics/wx/
H A DImageWx.cpp180 void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator, const FloatRect& dstRect) argument
196 ctxt->clip(IntRect(dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height()));
218 while ( currentW < dstRect.width() && currentW < clientSize.x - origin.x ) {
219 while ( currentH < dstRect.height() && currentH < clientSize.y - origin.y) {
227 context->Blit((wxCoord)dstRect.x() + currentW, (wxCoord)dstRect.y() + currentH,
/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);
H A DPDFDocumentImage.h66 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
/external/webkit/Source/WebCore/platform/graphics/win/
H A DGraphicsContextCairoWin.cpp123 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument
131 if (dstRect.isEmpty())
146 drawBitmapToContext(m_data, platformContext()->cr(), pixelData, IntSize(dstRect.x(), dstRect.height() + dstRect.y()));
H A DGraphicsContextWin.cpp100 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument
104 if (dstRect.isEmpty())
108 BitmapInfo bitmapInfo = BitmapInfo::create(dstRect.size());
126 XFORM xform = TransformationMatrix().translate(-dstRect.x(), -dstRect.y());
H A DImageCGWin.cpp89 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
97 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
105 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
H A DImageCairoWin.cpp95 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
103 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), ColorSpaceDeviceRGB, compositeOp);
111 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), ColorSpaceDeviceRGB, compositeOp);
/external/webkit/Source/WebCore/platform/graphics/gpu/
H A DTilingData.cpp205 void TilingData::intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile, argument
229 srcRectIntersectedNormX * dstRect.width() + dstRect.x(),
230 srcRectIntersectedNormY * dstRect.height() + dstRect.y(),
231 srcRectIntersectedNormW * dstRect.width(),
232 srcRectIntersectedNormH * dstRect.height());
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DStillImageQt.h54 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DImageWinCE.cpp91 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
101 draw(ctxt, dstRect, FloatRect(0, 0, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
108 draw(ctxt, dstRect, FloatRect(0, 0, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
111 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRectIn, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
117 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, compositeOp);
130 bmp->draw(ctxt, enclosingIntRect(dstRect), intSrcRect, styleColorSpace, compositeOp);
/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
187 context->clip(enclosingIntRect(dstRect));
191 FloatSize scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height());
196 FloatPoint destOffset = dstRect.location() - topLeftOffset;

Completed in 1867 milliseconds

12