/external/skia/gm/ |
H A D | nocolorbleed.cpp | 48 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 D | drawbitmaprect.cpp | 84 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/skia/samplecode/ |
H A D | SampleTextureDomain.cpp | 50 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/ |
H A D | GeneratedImage.cpp | 37 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 D | Image.cpp | 79 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 D | Image.h | 164 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);
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
H A D | ImageCairoWin.cpp | 95 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);
|
H A D | GraphicsContextCairoWin.cpp | 123 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 D | ImageCGWin.cpp | 89 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 D | GraphicsContextWin.cpp | 100 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 D | GraphicsContextCGWin.cpp | 90 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument 98 if (dstRect.isEmpty()) 112 CGContextDrawImage(m_data->m_cgContext.get(), dstRect, image);
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
H A D | PDFDocumentImage.cpp | 156 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);
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
H A D | Texture.cpp | 178 IntRect dstRect = updateRectIntersected; local 179 dstRect.move(-tileBoundsWithBorder.x(), -tileBoundsWithBorder.y()); 198 dstRect.x(), 199 dstRect.y(),
|
H A D | TilingData.cpp | 205 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/haiku/ |
H A D | ImageHaiku.cpp | 112 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()) {
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
H A D | ImageWinCE.cpp | 91 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);
|
H A D | ImageBufferWinCE.cpp | 46 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator); 53 void BufferedImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument 55 IntRect intDstRect = enclosingIntRect(dstRect);
|
H A D | SharedBitmap.cpp | 239 void SharedBitmap::draw(GraphicsContext* ctxt, const IntRect& dstRect, const IntRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument 243 ctxt->drawBitmap(this, dstRect, srcRect, styleColorSpace, compositeOp); 246 void SharedBitmap::draw(HDC hdc, const IntRect& dstRect, const IntRect& srcRect, CompositeOperator compositeOp) argument 251 if (dstRect.isEmpty() || srcRect.isEmpty()) 275 StretchDIBits(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), 285 bool success = alphaBlendIfSupported(hdc, dstRect.x(), dstRect [all...] |
/external/webkit/Source/WebCore/platform/graphics/wx/ |
H A D | ImageWx.cpp | 180 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,
|
H A D | GraphicsContextWx.cpp | 611 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument 613 if (dstRect.isEmpty()) 619 bitmapInfo.bmiHeader.biWidth = dstRect.width(); 620 bitmapInfo.bmiHeader.biHeight = dstRect.height(); 651 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument 655 if (!dstRect.isEmpty()) { 668 m_data->context->DrawBitmap(bmp, dstRect.x(), dstRect.y(), supportAlphaBlend);
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
H A D | ImageAndroid.cpp | 174 void BitmapImage::draw(GraphicsContext* gc, const FloatRect& dstRect, argument 197 SkRect dstR(dstRect);
|
/external/webkit/Source/WebCore/svg/graphics/ |
H A D | SVGImage.cpp | 178 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;
|
/external/qemu/distrib/sdl-1.2.15/test/ |
H A D | testblitspeed.c | 149 SDL_Rect dstRect; local 153 dstRect.x = x; 154 dstRect.y = y; 155 dstRect.w = srcRect.w = src->w; /* SDL will clip as appropriate. */ 156 dstRect.h = srcRect.h = src->h; 159 SDL_BlitSurface(src, &srcRect, dst, &dstRect);
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
H A D | ImageSkia.cpp | 434 static void drawBitmapGLES2(GraphicsContext* ctxt, NativeImageSkia* bitmap, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument 447 gpuCanvas->drawTexturedRect(texture, srcRect, dstRect, styleColorSpace, compositeOp); 474 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, argument 489 FloatRect normDstRect = normalizeRect(dstRect); 512 const FloatRect& dstRect, 517 FloatRect normDstRect = normalizeRect(dstRect); 524 drawBitmapGLES2(ctxt, &m_nativeImage, srcRect, dstRect, styleColorSpace, compositeOp); 511 draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
|
/external/webkit/Source/WebCore/html/canvas/ |
H A D | CanvasRenderingContext2D.cpp | 1240 void CanvasRenderingContext2D::drawImage(HTMLImageElement* image, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCode& ec) argument 1242 drawImage(image, srcRect, dstRect, state().m_globalComposite, ec); 1245 void CanvasRenderingContext2D::drawImage(HTMLImageElement* image, const FloatRect& srcRect, const FloatRect& dstRect, const CompositeOperator& op, ExceptionCode& ec) argument 1254 if (!isfinite(dstRect.x()) || !isfinite(dstRect.y()) || !isfinite(dstRect.width()) || !isfinite(dstRect.height()) 1258 if (!dstRect.width() || !dstRect.height()) 1265 FloatRect normalizedDstRect = normalizeRect(dstRect); 1317 drawImage(HTMLCanvasElement* sourceCanvas, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCode& ec) argument 1402 drawImage(HTMLVideoElement* video, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCode& ec) argument [all...] |