/external/chromium/chrome/browser/ui/cocoa/ |
image_utils.h | 20 fromRect:(NSRect)srcRect
|
/external/skia/include/pdf/ |
SkPDFImage.h | 41 * @param srcRect The rectangle to cut out of bitmap. 47 const SkIRect& srcRect, 72 * @param srcRect The clipping applied to bitmap before generating 78 const SkIRect& srcRect, bool alpha, const SkPaint& paint);
|
/external/webkit/Source/WebCore/platform/graphics/wx/ |
ImageBufferWx.cpp | 107 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, 111 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale); 114 void ImageBuffer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, 118 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
ImageAndroid.cpp | 189 const FloatRect& srcRect, ColorSpace, 215 round_scaled(&srcR, srcRect, invScaleX, invScaleY); 251 void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, 282 round_scaled(&srcR, srcRect, 1 / scaleX, 1 / scaleY); 284 round(&srcR, srcRect); 316 float tx = phase.x() + srcRect.x() * patternTransform.a(); 317 float ty = phase.y() + srcRect.y() * patternTransform.d(); 322 srcRect.x(), srcRect.y(), srcRect.width(), srcRect.height() [all...] |
/external/webkit/Source/WebCore/platform/graphics/wince/ |
ImageBufferWinCE.cpp | 46 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator); 47 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const AffineTransform& patternTransform, 53 void BufferedImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) 56 IntRect intSrcRect(srcRect); 116 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, 120 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale); 123 void ImageBuffer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, 127 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
|
SharedBitmap.cpp | 239 void SharedBitmap::draw(GraphicsContext* ctxt, const IntRect& dstRect, const IntRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) 243 ctxt->drawBitmap(this, dstRect, srcRect, styleColorSpace, compositeOp); 246 void SharedBitmap::draw(HDC hdc, const IntRect& dstRect, const IntRect& srcRect, CompositeOperator compositeOp) 251 if (dstRect.isEmpty() || srcRect.isEmpty()) 276 srcRect.x(), srcRect.y(), srcRect.width(), srcRect.height(), m_pixels, &m_bmpInfo, DIB_RGB_COLORS, rop); 286 srcRect.x(), srcRect.y(), srcRect.width(), srcRect.height(), blend) [all...] |
/external/webkit/Source/WebCore/platform/graphics/ |
Gradient.cpp | 69 void Gradient::adjustParametersForTiledDrawing(IntSize& size, FloatRect& srcRect) 74 if (srcRect.isEmpty()) 79 srcRect.setWidth(1); 80 srcRect.setX(0); 87 srcRect.setHeight(1); 88 srcRect.setY(0);
|
FloatRect.cpp | 196 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect) 198 if (srcRect.width() == 0 || srcRect.height() == 0) 201 float widthScale = destRect.width() / srcRect.width(); 202 float heightScale = destRect.height() / srcRect.height(); 203 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale, 204 destRect.y() + (r.y() - srcRect.y()) * heightScale,
|
GeneratedImage.h | 60 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator); 61 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const AffineTransform& patternTransform,
|
Generator.h | 41 virtual void adjustParametersForTiledDrawing(IntSize& /* size */, FloatRect& /* srcRect */) { }
|
GraphicsContext.cpp | 367 void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntPoint& dest, const IntRect& srcRect, CompositeOperator op) 369 drawImage(image, styleColorSpace, IntRect(dest, srcRect.size()), srcRect, op); 372 void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntRect& dest, const IntRect& srcRect, CompositeOperator op, bool useLowQualityScale) 374 drawImage(image, styleColorSpace, FloatRect(dest), srcRect, op, useLowQualityScale); 487 void GraphicsContext::drawTiledImage(Image* image, ColorSpace styleColorSpace, const IntRect& dest, const IntRect& srcRect, Image::TileRule hRule, Image::TileRule vRule, CompositeOperator op, bool useLowQualityScale) 494 drawImage(image, styleColorSpace, dest, srcRect, op); 501 image->drawTiled(this, dest, srcRect, hRule, vRule, styleColorSpace, op); 504 image->drawTiled(this, dest, srcRect, hRule, vRule, styleColorSpace, op); 517 void GraphicsContext::drawImageBuffer(ImageBuffer* image, ColorSpace styleColorSpace, const IntPoint& dest, const IntRect& srcRect, CompositeOperator op [all...] |
/external/webkit/Source/WebCore/platform/graphics/skia/ |
ImageSkia.cpp | 171 SkRect srcRect; 172 srcRect.set(srcIRect); 259 static void paintSkBitmap(PlatformContextSkia* platformContext, const NativeImageSkia& bitmap, const SkIRect& srcRect, const SkRect& destRect, const SkXfermode::Mode& compOp) 274 computeResamplingMode(platformContext, bitmap, srcRect.width(), srcRect.height(), 279 drawResampledBitmap(*canvas, paint, bitmap, srcRect, destRect); 286 canvas->drawBitmapRect(bitmap, &srcRect, destRect, &paint); 358 SkIRect srcRect = enclosingIntRect(normSrcRect); 359 bitmap->extractSubset(&srcSubset, srcRect); 368 TransformDimensions(patternTransform, srcRect.width(), srcRect.height() [all...] |
SkiaUtils.h | 69 // srcRect and destRect can be the same. 70 void ClipRectToCanvas(const SkCanvas&, const SkRect& srcRect, SkRect* destRect);
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
ImageCG.cpp | 170 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) 184 if (currHeight <= srcRect.y()) 196 if (srcRect.size() != selfSize) { 202 shouldUseSubimage = (interpolationQuality != kCGInterpolationNone) && (srcRect.size() != destRect.size() || !ctxt->getCTM().isIdentityOrTranslationOrFlipped()); 203 float xScale = srcRect.width() / destRect.width(); 204 float yScale = srcRect.height() / destRect.height(); 206 FloatRect subimageRect = srcRect; 207 float leftPadding = srcRect.x() - floorf(srcRect.x()); 208 float topPadding = srcRect.y() - floorf(srcRect.y()) [all...] |
ImageBufferCG.cpp | 200 void ImageBuffer::draw(GraphicsContext* destContext, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, 207 destContext->drawImage(copy.get(), ColorSpaceDeviceRGB, destRect, srcRect, op, useLowQualityScale); 210 destContext->drawImage(imageForRendering.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale); 215 destContext->drawImage(copy.get(), colorSpace, destRect, srcRect, op, useLowQualityScale); 219 void ImageBuffer::drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const AffineTransform& patternTransform, 226 copy->drawPattern(destContext, srcRect, patternTransform, phase, styleColorSpace, op, destRect); 229 imageForRendering->drawPattern(destContext, srcRect, patternTransform, phase, styleColorSpace, op, destRect); 233 copy->drawPattern(destContext, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
|
/external/skia/src/core/ |
SkDevice.cpp | 114 bool SkDevice::readPixels(const SkIRect& srcRect, SkBitmap* bitmap) { 119 if (!bounds.intersect(srcRect)) { 168 const SkIRect* srcRect, 173 if (srcRect) { 174 if (!bitmap.extractSubset(&tmp, *srcRect)) {
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
TilingData.h | 69 IntRect overlappedTileIndices(const IntRect& srcRect) const; 70 IntRect overlappedTileIndices(const FloatRect& srcRect) const; 74 void intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile, FloatRect* newSrc, FloatRect* newDst) const;
|
/external/webkit/Source/WebKit2/UIProcess/win/ |
BackingStoreWin.cpp | 93 IntRect srcRect = updateRect; 94 srcRect.move(-updateRectLocation.x(), -updateRectLocation.y()); 96 bitmap->paint(graphicsContext, updateRect.location(), srcRect);
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_stretch_c.h | 27 extern int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
|
SDL_blit.c | 43 static int SDL_SoftBlit(SDL_Surface *src, SDL_Rect *srcrect, 73 if ( okay && srcrect->w && srcrect->h ) { 79 (Uint16)srcrect->y*src->pitch + 80 (Uint16)srcrect->x*src->format->BytesPerPixel; 81 info.s_width = srcrect->w; 82 info.s_height = srcrect->h;
|
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/ |
SDL_fbmatrox.c | 120 static int HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect, 134 return(src->map->sw_blit(src, srcrect, dst, dstrect)); 152 srcX += srcrect->x; 153 srcY += srcrect->y;
|
SDL_fbriva.c | 111 static int HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect, 122 return(src->map->sw_blit(src, srcrect, dst, dstrect)); 140 srcX += srcrect->x; 141 srcY += srcrect->y;
|
/external/skia/src/gpu/ |
SkGpuDevice.cpp | 219 bool SkGpuDevice::readPixels(const SkIRect& srcRect, SkBitmap* bitmap) { 222 if (!bounds.intersect(srcRect)) { 899 SkIRect srcRect; 901 srcRect.set(0, 0, bitmap.width(), bitmap.height()); 903 srcRect = *srcRectPtr; 921 this->internalDrawBitmap(draw, bitmap, srcRect, m, &grPaint); 926 int DX = SkMax32(0, srcRect.fLeft); 927 int DY = SkMax32(0, srcRect.fTop); 956 if (!srcR.intersect(srcRect)) { 986 const SkIRect& srcRect, [all...] |
/external/webkit/Source/WebCore/svg/graphics/ |
SVGImage.cpp | 178 void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp) 191 FloatSize scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()); 195 FloatSize topLeftOffset(srcRect.location().x() * scale.width(), srcRect.location().y() * scale.height());
|
/frameworks/base/core/tests/coretests/src/android/view/ |
FocusFinderTest.java | 493 * @param srcRect The src rectangle. 497 private void assertBetterCandidate(int direction, Rect srcRect, 505 expectedBetter, expectedWorse, srcRect, directionStr); 508 mFocusFinder.isBetterCandidate(direction, srcRect, 515 expectedWorse, expectedBetter, srcRect, directionStr); 518 mFocusFinder.isBetterCandidate(direction, srcRect, 532 private void assertBeamBeats(int direction, Rect srcRect, 538 rect1, rect2, srcRect, directionStr); 539 assertTrue(assertMsg, mFocusFinder.beamBeats(direction, srcRect, rect1, rect2));
|