Searched defs:cropRect (Results 1 - 25 of 47) sorted by relevance

12

/external/chromium_org/third_party/skia/include/effects/
H A DSkPictureImageFilter.h24 * Refs the passed-in picture. cropRect can be used to crop or expand the destination rect when
27 static SkPictureImageFilter* Create(SkPicture* picture, const SkRect& cropRect) { argument
28 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect));
35 SkPictureImageFilter(SkPicture* picture, const SkRect& cropRect);
/external/skia/include/effects/
H A DSkPictureImageFilter.h24 * Refs the passed-in picture. cropRect can be used to crop or expand the destination rect when
27 static SkPictureImageFilter* Create(SkPicture* picture, const SkRect& cropRect) { argument
28 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect));
35 SkPictureImageFilter(SkPicture* picture, const SkRect& cropRect);
/external/chromium_org/third_party/WebKit/Source/modules/imagebitmap/
H A DImageBitmapFactories.h86 static ImageBitmapLoader* create(ImageBitmapFactories& factory, const IntRect& cropRect, ScriptState* scriptState) argument
88 return new ImageBitmapLoader(factory, cropRect, scriptState);
/external/chromium_org/third_party/skia/src/effects/
H A DSkPictureImageFilter.cpp23 SkPictureImageFilter::SkPictureImageFilter(SkPicture* picture, const SkRect& cropRect) argument
26 fCropRect(cropRect) {
H A DSkRectShaderImageFilter.cpp22 CropRect cropRect(rect, flags);
23 return SkNEW_ARGS(SkRectShaderImageFilter, (s, &cropRect));
26 SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const CropRect* cropRect) { argument
28 return SkNEW_ARGS(SkRectShaderImageFilter, (s, cropRect));
31 SkRectShaderImageFilter::SkRectShaderImageFilter(SkShader* s, const CropRect* cropRect) argument
32 : INHERITED(NULL, cropRect)
H A DSkDropShadowImageFilter.cpp31 SkImageFilter* input, const CropRect* cropRect)
32 : INHERITED(input, cropRect)
29 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor color, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkOffsetImageFilter.cpp100 const CropRect* cropRect) : INHERITED(input, cropRect) {
99 SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkColorFilterImageFilter.cpp61 SkImageFilter* input, const CropRect* cropRect) {
73 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect));
76 return SkNEW_ARGS(SkColorFilterImageFilter, (cf, input, cropRect));
80 SkImageFilter* input, const CropRect* cropRect)
81 : INHERITED(input, cropRect), fColorFilter(cf) {
60 Create(SkColorFilter* cf, SkImageFilter* input, const CropRect* cropRect) argument
79 SkColorFilterImageFilter(SkColorFilter* cf, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkMergeImageFilter.cpp45 const CropRect* cropRect) : INHERITED(first, second, cropRect) {
56 const CropRect* cropRect) : INHERITED(count, filters, cropRect) {
43 SkMergeImageFilter(SkImageFilter* first, SkImageFilter* second, SkXfermode::Mode mode, const CropRect* cropRect) argument
54 SkMergeImageFilter(SkImageFilter* filters[], int count, const SkXfermode::Mode modes[], const CropRect* cropRect) argument
H A DSkXfermodeImageFilter.cpp26 const CropRect* cropRect)
27 : INHERITED(background, foreground, cropRect), fMode(mode) {
23 SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* background, SkImageFilter* foreground, const CropRect* cropRect) argument
/external/skia/src/effects/
H A DSkPictureImageFilter.cpp23 SkPictureImageFilter::SkPictureImageFilter(SkPicture* picture, const SkRect& cropRect) argument
26 fCropRect(cropRect) {
H A DSkRectShaderImageFilter.cpp22 CropRect cropRect(rect, flags);
23 return SkNEW_ARGS(SkRectShaderImageFilter, (s, &cropRect));
26 SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const CropRect* cropRect) { argument
28 return SkNEW_ARGS(SkRectShaderImageFilter, (s, cropRect));
31 SkRectShaderImageFilter::SkRectShaderImageFilter(SkShader* s, const CropRect* cropRect) argument
32 : INHERITED(NULL, cropRect)
H A DSkDropShadowImageFilter.cpp31 SkImageFilter* input, const CropRect* cropRect)
32 : INHERITED(input, cropRect)
29 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor color, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkOffsetImageFilter.cpp100 const CropRect* cropRect) : INHERITED(input, cropRect) {
99 SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const CropRect* cropRect) argument
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
H A DFEOffset.cpp99 SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset()); local
100 return adoptRef(SkOffsetImageFilter::Create(SkFloatToScalar(filter->applyHorizontalScale(m_dx)), SkFloatToScalar(filter->applyVerticalScale(m_dy)), input.get(), &cropRect));
H A DFEDropShadow.cpp115 SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset()); local
116 return adoptRef(SkDropShadowImageFilter::Create(SkFloatToScalar(dx), SkFloatToScalar(dy), SkFloatToScalar(stdX), SkFloatToScalar(stdY), color.rgb(), input.get(), &cropRect));
/external/chromium_org/third_party/skia/gm/
H A Ddropshadowimagefilter.cpp80 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); local
82 c.drawRect(SkRect::Make(cropRect), paint);
129 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)),
140 SkDropShadowImageFilter::Create(7.0f, 7.0f, 3.0f, 3.0f, SK_ColorBLUE, NULL, &cropRect),
H A Dimagefilterscropped.cpp86 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); local
88 c.drawRect(SkRect::Make(cropRect), paint);
133 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::CropRect::kHasAll_CropEdge);
143 SkColorFilterImageFilter::Create(cf.get(), NULL, &cropRect),
144 SkBlurImageFilter::Create(1.0f, 1.0f, NULL, &cropRect),
145 SkBlurImageFilter::Create(8.0f, 0.0f, NULL, &cropRect),
146 SkBlurImageFilter::Create(0.0f, 8.0f, NULL, &cropRect),
147 SkBlurImageFilter::Create(8.0f, 8.0f, NULL, &cropRect),
148 SkMergeImageFilter::Create(NULL, cfOffset.get(), SkXfermode::kSrcOver_Mode, &cropRect),
H A Doffsetimagefilter.cpp66 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument
83 scaleMatrix.mapRect(&cropRectFloat, SkRect::Make(cropRect));
99 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, local
103 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
110 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect);
114 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); local
115 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
119 drawClippedBitmap(canvas, fBitmap, paint, SkIntToScalar(2), cropRect);
H A Dxfermodeimagefilter.cpp200 SkIRect cropRect = SkIRect::MakeXYWH(offsets[i][0], variable
204 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
/external/skia/gm/
H A Ddropshadowimagefilter.cpp80 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); local
82 c.drawRect(SkRect::Make(cropRect), paint);
129 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)),
140 SkDropShadowImageFilter::Create(7.0f, 7.0f, 3.0f, 3.0f, SK_ColorBLUE, NULL, &cropRect),
H A Dimagefilterscropped.cpp86 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); local
88 c.drawRect(SkRect::Make(cropRect), paint);
133 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::CropRect::kHasAll_CropEdge);
143 SkColorFilterImageFilter::Create(cf.get(), NULL, &cropRect),
144 SkBlurImageFilter::Create(1.0f, 1.0f, NULL, &cropRect),
145 SkBlurImageFilter::Create(8.0f, 0.0f, NULL, &cropRect),
146 SkBlurImageFilter::Create(0.0f, 8.0f, NULL, &cropRect),
147 SkBlurImageFilter::Create(8.0f, 8.0f, NULL, &cropRect),
148 SkMergeImageFilter::Create(NULL, cfOffset.get(), SkXfermode::kSrcOver_Mode, &cropRect),
H A Doffsetimagefilter.cpp66 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument
83 scaleMatrix.mapRect(&cropRectFloat, SkRect::Make(cropRect));
99 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, local
103 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
110 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect);
114 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); local
115 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
119 drawClippedBitmap(canvas, fBitmap, paint, SkIntToScalar(2), cropRect);
/external/chromium_org/third_party/WebKit/Source/core/frame/
H A DImageBitmap.cpp27 static inline PassRefPtr<Image> cropImage(Image* image, const IntRect& cropRect) argument
29 IntRect intersectRect = intersection(IntRect(IntPoint(), image->size()), cropRect);
38 ImageBitmap::ImageBitmap(HTMLImageElement* image, const IntRect& cropRect) argument
41 , m_cropRect(cropRect)
43 IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height()));
44 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size());
55 ImageBitmap::ImageBitmap(HTMLVideoElement* video, const IntRect& cropRect) argument
57 , m_cropRect(cropRect)
66 IntRect srcRect = intersection(cropRect, videoRec
82 ImageBitmap(HTMLCanvasElement* canvas, const IntRect& cropRect) argument
98 ImageBitmap(ImageData* data, const IntRect& cropRect) argument
117 ImageBitmap(ImageBitmap* bitmap, const IntRect& cropRect) argument
138 ImageBitmap(Image* image, const IntRect& cropRect) argument
157 create(HTMLImageElement* image, const IntRect& cropRect) argument
163 create(HTMLVideoElement* video, const IntRect& cropRect) argument
169 create(HTMLCanvasElement* canvas, const IntRect& cropRect) argument
175 create(ImageData* data, const IntRect& cropRect) argument
181 create(ImageBitmap* bitmap, const IntRect& cropRect) argument
187 create(Image* image, const IntRect& cropRect) argument
[all...]
H A DSmartClip.cpp79 SmartClipData SmartClip::dataForRect(const IntRect& cropRect) argument
81 IntRect resizedCropRect = applyScaleWithoutCollapsingToZero(cropRect, 1 / pageScaleFactor());
162 Node* SmartClip::findBestOverlappingNode(Node* rootNode, const IntRect& cropRect) argument
167 IntRect resizedCropRect = rootNode->document().view()->windowToContents(cropRect);
221 void SmartClip::collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect, WillBeHeapVector<RawPtrWillBeMember<Node> >& hitNodes) argument
225 IntRect resizedCropRect = parentNode->document().view()->windowToContents(cropRect);

Completed in 280 milliseconds

12