Searched defs:srcRect (Results 1 - 25 of 97) sorted by relevance

1234

/external/chromium_org/third_party/skia/include/effects/
H A DSkTileImageFilter.h18 @param srcRect Defines the pixels to tile
20 @param input Input from which the subregion defined by srcRect will be tiled
22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect,
33 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input, uint32_t uniqueID) argument
34 : INHERITED(1, &input, NULL, uniqueID), fSrcRect(srcRect), fDstRect(dstRect) {}
H A DSkBitmapSource.h19 static SkBitmapSource* Create(const SkBitmap& bitmap, const SkRect& srcRect, argument
21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect));
29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
/external/skia/include/effects/
H A DSkMagnifierImageFilter.h17 static SkMagnifierImageFilter* Create(const SkRect& srcRect, SkScalar inset) { argument
18 return SkNEW_ARGS(SkMagnifierImageFilter, (srcRect, inset));
24 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset);
H A DSkTileImageFilter.h18 @param srcRect Defines the pixels to tile
20 @param input Input from which the subregion defined by srcRect will be tiled
22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, argument
24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input));
35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) argument
36 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
H A DSkBitmapSource.h19 static SkBitmapSource* Create(const SkBitmap& bitmap, const SkRect& srcRect, argument
21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect));
29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/
H A DSVGImageForContainer.cpp37 const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode)
39 m_image->drawForContainer(context, m_containerSize, m_zoom, dstRect, srcRect, compositeOp, blendMode);
42 void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, argument
45 m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
36 draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) argument
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
H A DSourceAlpha.cpp50 FloatRect srcRect = filter()->sourceImageRect(); local
51 srcRect.intersect(requestedRect);
52 addAbsolutePaintRect(srcRect);
53 return srcRect;
69 IntRect srcRect = filter->sourceImageRect(); local
72 FloatRect(IntPoint(srcRect.location() - absolutePaintRect().location()), sourceImageBuffer->size()),
H A DSourceGraphic.cpp46 FloatRect srcRect = filter()->sourceImageRect(); local
47 srcRect.intersect(requestedRect);
48 addAbsolutePaintRect(srcRect);
49 return srcRect;
59 IntRect srcRect = filter->sourceImageRect();
62 FloatRect(IntPoint(srcRect.location() - absolutePaintRect().location()), sourceImageBuffer->size()));
/external/chromium_org/third_party/skia/gm/
H A Dbitmapsource.cpp55 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); variable
61 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRect(SkBitmapSource::Create(fBitmap, srcRect, srcRect));
62 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect));
69 // Draw an unscaled subset of the source bitmap (srcRect -> srcRect).
73 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect).
H A Dpictureimagefilter.cpp57 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); variable
61 SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(SkPictureImageFilter::Create(fPicture, srcRect));
H A Dmatriximagefilter.cpp68 SkRect srcRect = SkRect::MakeWH(96, 96); local
71 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kNone_FilterLevel);
73 canvas->translate(srcRect.width() + margin, 0);
74 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kLow_FilterLevel);
78 canvas->translate(srcRect.width() + margin, 0);
79 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kMedium_FilterLevel);
81 canvas->translate(srcRect.width() + margin, 0);
82 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kHigh_FilterLevel);
H A Dresizeimagefilter.cpp72 SkRect srcRect = SkRect::MakeWH(96, 96); local
76 srcRect,
80 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
82 srcRect,
86 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
88 srcRect,
92 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
94 srcRect,
113 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
115 srcRect,
[all...]
H A Dtileimagefilter.cpp80 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(bitmap->width()/4), local
90 SkTileImageFilter::Create(srcRect, dstRect, tileInput));
109 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width()), local
113 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, NULL));
/external/chromium_org/third_party/skia/samplecode/
H A DSampleTextureDomain.cpp47 SkRect srcRect; local
54 srcRect.setXYWH(1, 1, 3, 3);
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint);
65 srcRect.setXYWH(1, 1, 3, 3);
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect,
72 srcRect.setXYWH(1, 1, 3, 3);
74 canvas->drawImageRect(image, &srcRect, dstRect, &paint);
78 srcRect.setXYWH(1, 1, 3, 3);
86 canvas->drawImageRect(image, &srcRect, dstRect, &paint);
/external/skia/gm/
H A Dbitmapsource.cpp54 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); variable
60 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRect(SkBitmapSource::Create(fBitmap, srcRect, srcRect));
61 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect));
68 // Draw an unscaled subset of the source bitmap (srcRect -> srcRect).
72 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect).
H A Dpictureimagefilter.cpp56 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); variable
60 SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(SkPictureImageFilter::Create(fPicture, srcRect));
H A Dmatriximagefilter.cpp68 SkRect srcRect = SkRect::MakeWH(96, 96); local
71 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kNone_FilterLevel);
73 canvas->translate(srcRect.width() + margin, 0);
74 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kLow_FilterLevel);
78 canvas->translate(srcRect.width() + margin, 0);
79 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kMedium_FilterLevel);
81 canvas->translate(srcRect.width() + margin, 0);
82 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kHigh_FilterLevel);
H A Dresizeimagefilter.cpp69 SkRect srcRect = SkRect::MakeWH(96, 96); local
73 srcRect,
77 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
79 srcRect,
83 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
85 srcRect,
89 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
91 srcRect,
110 canvas->translate(srcRect.width() + SkIntToScalar(10), 0);
112 srcRect,
[all...]
/external/skia/samplecode/
H A DSampleTextureDomain.cpp47 SkRect srcRect; local
54 srcRect.setXYWH(1, 1, 3, 3);
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint);
65 srcRect.setXYWH(1, 1, 3, 3);
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect,
72 srcRect.setXYWH(1, 1, 3, 3);
74 image->draw(canvas, &srcRect, dstRect, &paint);
78 srcRect.setXYWH(1, 1, 3, 3);
86 image->draw(canvas, &srcRect, dstRect, &paint);
/external/skia/src/effects/
H A DSkBitmapSource.cpp23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) argument
26 , fSrcRect(srcRect)
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DCanvasImageSource.h65 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { } argument
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DCrossfadeGeneratedImage.cpp85 void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, WebBlendMode blendMode) argument
91 if (dstRect.size() != srcRect.size())
92 context->scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height());
93 context->translate(-srcRect.x(), -srcRect.y());
98 void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, WebBlendMode blendMode, const IntSize& repeatSpacing) argument
109 imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
H A DGradientGeneratedImage.cpp34 void GradientGeneratedImage::draw(GraphicsContext* destContext, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator compositeOp, WebBlendMode blendMode) argument
40 if (destRect.size() != srcRect.size())
41 destContext->scale(destRect.width() / srcRect.width(), destRect.height() / srcRect.height());
42 destContext->translate(-srcRect.x(), -srcRect.y());
47 void GradientGeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const FloatSize& scale, argument
50 float stepX = srcRect.width() + repeatSpacing.width();
51 float stepY = srcRect.height() + repeatSpacing.height();
52 int firstColumn = static_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect
[all...]
/external/chromium_org/third_party/skia/src/effects/
H A DSkBitmapSource.cpp23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) argument
26 , fSrcRect(srcRect)
H A DSkTileImageFilter.cpp19 SkTileImageFilter* SkTileImageFilter::Create(const SkRect& srcRect, const SkRect& dstRect, argument
21 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) {
24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input, uniqueID));
47 SkRect srcRect; local
48 ctx.ctm().mapRect(&srcRect, fSrcRect);
50 srcRect.roundOut(&srcIRect);
88 SkRect srcRect; local
89 ctm.mapRect(&srcRect, fSrcRect);
91 srcRect.roundOut(&srcIRect);

Completed in 5503 milliseconds

1234