/external/chromium_org/third_party/WebKit/Source/core/frame/ |
ImageBitmap.cpp | 45 IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height())); 46 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()); 47 m_bitmapOffset = srcRect.location(); 49 if (!srcRect.width() || !srcRect.height()) 63 IntRect srcRect = intersection(cropRect, videoRect); 64 IntRect dstRect(IntPoint(), srcRect.size()); 71 c->translate(-srcRect.x(), -srcRect.y()); 74 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()) [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkTileImageFilter.cpp | 35 SkRect srcRect; 36 ctm.mapRect(&srcRect, fSrcRect); 38 srcRect.roundOut(&srcIRect);
|
SkXfermodeImageFilter.cpp | 142 SkRect srcRect; 143 src.getBounds(&srcRect); 148 context->drawRect(paint, srcRect); 153 context->drawRect(backgroundPaint, srcRect); 158 context->drawRect(foregroundPaint, srcRect);
|
SkBicubicImageFilter.cpp | 115 SkRect srcRect; 116 src.getBounds(&srcRect); 118 inverse.setRectToRect(dstRect, srcRect, SkMatrix::kFill_ScaleToFit); 194 SkRect srcRect; 195 srcBM.getBounds(&srcRect); 196 context->drawRectToRect(paint, dstRect, srcRect);
|
SkDisplacementMapEffect.cpp | 357 SkRect srcRect = SkRect::Make(bounds); 358 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 359 context->drawRectToRect(paint, dstRect, srcRect);
|
/external/skia/gm/ |
bitmapsource.cpp | 56 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); 62 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRect(new SkBitmapSource(fBitmap, srcRect, srcRect)); 63 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(new SkBitmapSource(fBitmap, srcRect, dstRect)); 70 // Draw an unscaled subset of the source bitmap (srcRect -> srcRect). 74 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect).
|
pictureimagefilter.cpp | 54 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); 58 SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(new SkPictureImageFilter(&fPicture, srcRect));
|
tileimagefilter.cpp | 92 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(bitmap->width()/4), 102 SkTileImageFilter, (srcRect, dstRect, tileInput)));
|
drawbitmaprect.cpp | 127 SkIRect srcRect = SkIRect::MakeXYWH((kBmpSize - w) / 2, 130 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect); 161 SkIRect srcRect; 168 srcRect.setXYWH(1, 1, 3, 3); 175 canvas->drawBitmapRect(bm, &srcRect, dstRect, &paint);
|
/external/skia/src/effects/ |
SkTileImageFilter.cpp | 35 SkRect srcRect; 36 ctm.mapRect(&srcRect, fSrcRect); 38 srcRect.roundOut(&srcIRect);
|
SkXfermodeImageFilter.cpp | 142 SkRect srcRect; 143 src.getBounds(&srcRect); 148 context->drawRect(paint, srcRect); 153 context->drawRect(backgroundPaint, srcRect); 158 context->drawRect(foregroundPaint, srcRect);
|
SkBicubicImageFilter.cpp | 115 SkRect srcRect; 116 src.getBounds(&srcRect); 118 inverse.setRectToRect(dstRect, srcRect, SkMatrix::kFill_ScaleToFit); 194 SkRect srcRect; 195 srcBM.getBounds(&srcRect); 196 context->drawRectToRect(paint, dstRect, srcRect);
|
SkDisplacementMapEffect.cpp | 357 SkRect srcRect = SkRect::Make(bounds); 358 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 359 context->drawRectToRect(paint, dstRect, srcRect);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/ |
SVGFEImage.cpp | 69 FloatRect srcRect; 71 srcRect.setSize(m_image->size()); 72 m_preserveAspectRatio.transformRect(paintRect, srcRect); 74 srcRect = filter()->absoluteTransform().mapRect(renderer->repaintRectInLocalCoordinates()); 105 FloatRect srcRect; 107 srcRect = filter()->absoluteTransform().mapRect(renderer->repaintRectInLocalCoordinates()); 109 srcRect = FloatRect(FloatPoint(), m_image->size()); 110 m_preserveAspectRatio.transformRect(destRect, srcRect); 139 resultImage->context()->drawImage(m_image.get(), destRect, srcRect);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
FETile.cpp | 100 FloatRect srcRect = inputEffect(0) ? inputEffect(0)->effectBoundaries() : FloatRect(); 101 return adoptRef(new SkTileImageFilter(srcRect, effectBoundaries(), input.get()));
|
/external/chromium_org/third_party/skia/src/core/ |
SkDevice.cpp | 85 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap->width(), 88 if (!srcRect.intersect(devbounds)) { 105 SkIRect subrect = srcRect; 111 srcRect.fLeft, 112 srcRect.fTop,
|
SkImageFilter.cpp | 137 SkRect srcRect = SkRect::Make(bounds); 138 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 160 context->drawRectToRect(paint, dstRect, srcRect);
|
SkBitmapDevice.cpp | 121 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap.width(), bitmap.height()); 125 if (!src.extractSubset(&subset, srcRect)) {
|
/external/skia/src/core/ |
SkDevice.cpp | 85 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap->width(), 88 if (!srcRect.intersect(devbounds)) { 105 SkIRect subrect = srcRect; 111 srcRect.fLeft, 112 srcRect.fTop,
|
SkImageFilter.cpp | 137 SkRect srcRect = SkRect::Make(bounds); 138 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 160 context->drawRectToRect(paint, dstRect, srcRect);
|
SkBitmapDevice.cpp | 121 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap.width(), bitmap.height()); 125 if (!src.extractSubset(&subset, srcRect)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
IconFactory.java | 86 Rect srcRect = null; 89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); 102 srcRect = new Rect(); 103 rec.roundOut(srcRect); 106 canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG));
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/ |
NativeImageSkia.cpp | 183 // scaledSrcRect = srcRect * (approximateScaleX, approximateScaleY) 189 SkBitmap NativeImageSkia::extractScaledImageFragment(const SkRect& srcRect, float scaleX, float scaleY, SkRect* scaledSrcRect) const 200 scaleTransform.mapRect(scaledSrcRect, srcRect); 223 void NativeImageSkia::drawResampledBitmap(GraphicsContext* context, SkPaint& paint, const SkRect& srcRect, const SkRect& destRect) const 228 // in canvas and explicit scaling (srcRect and destRect). 231 float realScaleX = screenRect.width() / srcRect.width(); 232 float realScaleY = screenRect.height() / srcRect.height(); 246 destToSrcTransform.setRectToRect(destRect, srcRect, SkMatrix::kFill_ScaleToFit); 320 void NativeImageSkia::draw(GraphicsContext* context, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode> compOp) const 344 SkScalarToFloat(srcRect.width()), SkScalarToFloat(srcRect.height()) [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
testblitspeed.c | 148 SDL_Rect srcRect; 151 srcRect.x = 0; 152 srcRect.y = 0; 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/skia/bench/ |
MatrixBench.cpp | 421 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(10), SkIntToScalar(10)); 423 inv.mapRect(&transformedRect, srcRect);
|