/external/chromium_org/third_party/WebKit/Source/core/page/ |
ImageBitmap.cpp | 28 static inline PassRefPtr<Image> cropImage(Image* image, const IntRect& cropRect) 31 image->nativeImageForCurrentFrame()->bitmap().extractSubset(&cropped, cropRect); 35 ImageBitmap::ImageBitmap(HTMLImageElement* image, const IntRect& cropRect) 36 : m_cropRect(cropRect) 40 IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height())); 41 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()); 52 ImageBitmap::ImageBitmap(HTMLVideoElement* video, const IntRect& cropRect) 53 : m_cropRect(cropRect) 58 IntRect srcRect = intersection(cropRect, videoRect) [all...] |
/external/chromium_org/third_party/skia/include/effects/ |
SkColorFilterImageFilter.h | 19 const SkIRect* cropRect = NULL); 36 const SkIRect* cropRect = NULL);
|
SkLightingImageFilter.h | 54 SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 57 SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 61 SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 64 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 67 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 71 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 80 const SkIRect* cropRect = NULL);
|
SkBlurImageFilter.h | 19 const SkIRect* cropRect = NULL);
|
/external/skia/include/effects/ |
SkColorFilterImageFilter.h | 19 const SkIRect* cropRect = NULL); 36 const SkIRect* cropRect = NULL);
|
SkLightingImageFilter.h | 54 SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 57 SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 61 SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 64 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 67 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 71 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 80 const SkIRect* cropRect = NULL);
|
SkBlurImageFilter.h | 19 const SkIRect* cropRect = NULL);
|
/external/chromium_org/third_party/skia/include/core/ |
SkImageFilter.h | 139 const SkIRect& cropRect() const { return fCropRect; } 142 SkImageFilter(int inputCount, SkImageFilter** inputs, const SkIRect* cropRect = NULL); 145 explicit SkImageFilter(SkImageFilter* input, const SkIRect* cropRect = NULL); 148 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const SkIRect* cropRect = NULL);
|
/external/skia/include/core/ |
SkImageFilter.h | 139 const SkIRect& cropRect() const { return fCropRect; } 142 SkImageFilter(int inputCount, SkImageFilter** inputs, const SkIRect* cropRect = NULL); 145 explicit SkImageFilter(SkImageFilter* input, const SkIRect* cropRect = NULL); 148 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const SkIRect* cropRect = NULL);
|
/external/skia/tests/ |
ImageFilterTest.cpp | 27 static SkImageFilter* make_grayscale(SkImageFilter* input = NULL, const SkIRect* cropRect = NULL) { 35 return SkColorFilterImageFilter::Create(filter, input, cropRect); 69 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); 70 SkAutoTUnref<SkImageFilter> grayWithCrop(make_grayscale(NULL, &cropRect));
|
/external/chromium_org/third_party/skia/src/effects/ |
SkColorFilterImageFilter.cpp | 60 SkImageFilter* input, const SkIRect* cropRect) { 72 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect)); 75 return SkNEW_ARGS(SkColorFilterImageFilter, (cf, input, cropRect)); 79 SkImageFilter* input, const SkIRect* cropRect) 80 : INHERITED(input, cropRect), fColorFilter(cf) { 129 if (cropRect().isLargest()) {
|
SkLightingImageFilter.cpp | 265 SkScalar kd, SkImageFilter* input, const SkIRect* cropRect); 287 SkSpecularLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect); 760 SkLightingImageFilter::SkLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkImageFilter* input, const SkIRect* cropRect) 761 : INHERITED(input, cropRect), 772 SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) { 775 input, cropRect)); 780 SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) { 783 input, cropRect)); 790 SkImageFilter* input, const SkIRect* cropRect) { 794 surfaceScale, kd, input, cropRect)); [all...] |
SkBlurImageFilter.cpp | 27 const SkIRect* cropRect) 28 : INHERITED(input, cropRect), fSigma(SkSize::Make(sigmaX, sigmaY)) {
|
/external/skia/src/effects/ |
SkColorFilterImageFilter.cpp | 60 SkImageFilter* input, const SkIRect* cropRect) { 72 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect)); 75 return SkNEW_ARGS(SkColorFilterImageFilter, (cf, input, cropRect)); 79 SkImageFilter* input, const SkIRect* cropRect) 80 : INHERITED(input, cropRect), fColorFilter(cf) { 129 if (cropRect().isLargest()) {
|
SkLightingImageFilter.cpp | 265 SkScalar kd, SkImageFilter* input, const SkIRect* cropRect); 287 SkSpecularLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect); 760 SkLightingImageFilter::SkLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkImageFilter* input, const SkIRect* cropRect) 761 : INHERITED(input, cropRect), 772 SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) { 775 input, cropRect)); 780 SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) { 783 input, cropRect)); 790 SkImageFilter* input, const SkIRect* cropRect) { 794 surfaceScale, kd, input, cropRect)); [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkImageFilter.cpp | 21 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const SkIRect* cropRect) 24 fCropRect(cropRect ? *cropRect : SkIRect::MakeLargest()) { 31 SkImageFilter::SkImageFilter(SkImageFilter* input, const SkIRect* cropRect) 34 fCropRect(cropRect ? *cropRect : SkIRect::MakeLargest()) { 39 SkImageFilter::SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const SkIRect* cropRect) 41 fCropRect(cropRect ? *cropRect : SkIRect::MakeLargest()) {
|
/external/skia/src/core/ |
SkImageFilter.cpp | 21 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const SkIRect* cropRect) 24 fCropRect(cropRect ? *cropRect : SkIRect::MakeLargest()) { 31 SkImageFilter::SkImageFilter(SkImageFilter* input, const SkIRect* cropRect) 34 fCropRect(cropRect ? *cropRect : SkIRect::MakeLargest()) { 39 SkImageFilter::SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const SkIRect* cropRect) 41 fCropRect(cropRect ? *cropRect : SkIRect::MakeLargest()) {
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 307 RectF cropRect = mCropView.getCrop(); 309 float cropScale = mCropView.getWidth() / (float) cropRect.width(); 322 float extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; 324 float maxExtraSpace = defaultWallpaperWidth / cropScale - cropRect.width(); 328 cropRect.right += extraSpace; 330 cropRect.left -= extraSpace; 335 cropRect.bottom = cropRect.top + portraitHeight / cropScale; 338 portraitHeight / cropScale - cropRect.height() [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
WallpaperCropActivity.java | 307 RectF cropRect = mCropView.getCrop(); 309 float cropScale = mCropView.getWidth() / (float) cropRect.width(); 322 float extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; 324 float maxExtraSpace = defaultWallpaperWidth / cropScale - cropRect.width(); 328 cropRect.right += extraSpace; 330 cropRect.left -= extraSpace; 335 cropRect.bottom = cropRect.top + portraitHeight / cropScale; 338 portraitHeight / cropScale - cropRect.height() [all...] |
/external/skia/gm/ |
imagefilterscropped.cpp | 86 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); 88 c.drawRect(SkRect::Make(cropRect), paint); 134 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); 139 SkColorFilterImageFilter::Create(cf, NULL, &cropRect), 140 new SkBlurImageFilter(1.0f, 1.0f, NULL, &cropRect), 141 new SkBlurImageFilter(8.0f, 0.0f, NULL, &cropRect), 142 new SkBlurImageFilter(0.0f, 8.0f, NULL, &cropRect), 143 new SkBlurImageFilter(8.0f, 8.0f, NULL, &cropRect),
|
lighting.cpp | 87 SkIRect cropRect = SkIRect::MakeXYWH(20, 10, 60, 65); 91 const SkIRect* cr = (i == 0) ? NULL : &cropRect;
|
/frameworks/base/core/java/android/app/ |
WallpaperManager.java | 526 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); 528 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 547 RectF cropRect = new RectF(); 550 cropRect.top = 0; 551 cropRect.bottom = inHeight; 553 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; 554 cropRect.right = cropRect.left + cropWidth; 556 cropRect.left = 0; 557 cropRect.right = inWidth [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardCircleFramedDrawable.java | 71 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square); 90 canvas.drawBitmap(bitmap, cropRect, circleRect, mPaint);
|
/frameworks/native/libs/gui/ |
GLConsumer.cpp | 799 Rect cropRect = mCurrentCrop; 803 if (!cropRect.isEmpty()) { 832 if (cropRect.width() < bufferWidth) { 833 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; 834 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / 837 if (cropRect.height() < bufferHeight) { 838 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / 840 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
CircleFramedDrawable.java | 92 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square); 111 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
|