/external/chromium-trace/trace-viewer/src/base/ |
H A D | quad_test.js | 60 var srcRect = base.Rect.FromXYWH(0.1, 0.8, 0.8, 0.1); 61 var expectedRect = srcRect.scale(10); 64 container.projectUnitRectFast(q, srcRect); 71 var srcRect = base.Rect.FromXYWH(0.0, 0, 1, 1); 72 var expectedRect = srcRect; 75 container.projectUnitRectFast(q, srcRect); 82 var srcRect = base.Rect.FromXYWH(0.0, 0, 1, 1); 83 var expectedRect = srcRect.scale(2); 86 container.projectUnitRectFast(q, srcRect); 93 var srcRect [all...] |
/external/chromium_org/third_party/skia/src/pdf/ |
H A D | SkPDFImage.cpp | 30 const SkIRect& srcRect) { 33 return srcRect.width() * srcRect.height(); 35 return ((srcRect.width() * 3 + 1) / 2) * srcRect.height(); 37 return srcRect.width() * 3 * srcRect.height(); 40 return srcRect.width() * 3 * srcRect.height(); 50 const SkIRect& srcRect) { 29 get_uncompressed_size(const SkBitmap& bitmap, const SkIRect& srcRect) argument 49 extract_index8_image(const SkBitmap& bitmap, const SkIRect& srcRect) argument 63 extract_argb4444_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument 118 extract_rgb565_image(const SkBitmap& bitmap, const SkIRect& srcRect) argument 136 extract_argb8888_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument 170 extract_a8_alpha(const SkBitmap& bitmap, const SkIRect& srcRect, bool* isOpaque, bool* isTransparent) argument 210 extract_image_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isTransparent) argument 375 unpremultiply_bitmap(const SkBitmap& bitmap, const SkIRect& srcRect) argument 439 CreateImage(const SkBitmap& bitmap, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument 497 SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument [all...] |
/external/skia/src/pdf/ |
H A D | SkPDFImage.cpp | 29 const SkIRect& srcRect) { 32 return srcRect.width() * srcRect.height(); 34 return ((srcRect.width() * 3 + 1) / 2) * srcRect.height(); 36 return srcRect.width() * 3 * srcRect.height(); 39 return srcRect.width() * 3 * srcRect.height(); 49 const SkIRect& srcRect) { 28 get_uncompressed_size(const SkBitmap& bitmap, const SkIRect& srcRect) argument 48 extract_index8_image(const SkBitmap& bitmap, const SkIRect& srcRect) argument 62 extract_argb4444_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument 117 extract_rgb565_image(const SkBitmap& bitmap, const SkIRect& srcRect) argument 135 extract_argb8888_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument 169 extract_a8_alpha(const SkBitmap& bitmap, const SkIRect& srcRect, bool* isOpaque, bool* isTransparent) argument 209 extract_image_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isTransparent) argument 374 unpremultiply_bitmap(const SkBitmap& bitmap, const SkIRect& srcRect) argument 440 CreateImage(const SkBitmap& bitmap, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument 498 SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument [all...] |
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleTextureDomain.cpp | 47 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/samplecode/ |
H A D | SampleTextureDomain.cpp | 47 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/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | GradientGeneratedImage.cpp | 34 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...] |
H A D | CrossfadeGeneratedImage.cpp | 85 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);
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkGpuBlurUtils.cpp | 47 const SkRect& srcRect, 61 context->drawRectToRect(paint, dstRect, srcRect); 65 const SkRect& srcRect, 84 context->drawRectToRect(paint, dstRect, srcRect); 88 const SkRect& srcRect, 97 convolve_gaussian_1d(context, srcRect, dstRect, texture, 101 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 102 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 103 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 107 bounds[0] = SkScalarToFloat(srcRect 46 convolve_gaussian_1d(GrContext* context, const SkRect& srcRect, const SkRect& dstRect, GrTexture* texture, Gr1DKernelEffect::Direction direction, int radius, float sigma, bool useBounds, float bounds[2]) argument 64 convolve_gaussian_2d(GrContext* context, const SkRect& srcRect, const SkRect& dstRect, GrTexture* texture, int radiusX, int radiusY, SkScalar sigmaX, SkScalar sigmaY, bool useBounds, SkIRect bounds) argument 87 convolve_gaussian(GrContext* context, const SkRect& srcRect, const SkRect& dstRect, GrTexture* texture, Gr1DKernelEffect::Direction direction, int radius, float sigma, bool cropToSrcRect) argument [all...] |
H A D | SkTileImageFilter.cpp | 19 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);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/ |
H A D | SVGImageForContainer.cpp | 37 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/skia/include/effects/ |
H A D | SkTileImageFilter.h | 18 @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 D | SkMagnifierImageFilter.h | 17 static SkMagnifierImageFilter* Create(const SkRect& srcRect, SkScalar inset) { argument 18 return SkNEW_ARGS(SkMagnifierImageFilter, (srcRect, inset)); 24 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
H A D | SourceAlpha.cpp | 50 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 D | SourceGraphic.cpp | 46 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/skia/src/effects/ |
H A D | SkGpuBlurUtils.cpp | 47 const SkRect& srcRect, 61 context->drawRectToRect(paint, dstRect, srcRect); 65 const SkRect& srcRect, 74 convolve_gaussian_pass(context, srcRect, dstRect, texture, 78 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 79 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 80 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 84 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width(); 85 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width(); 86 size = srcRect 46 convolve_gaussian_pass(GrContext* context, const SkRect& srcRect, const SkRect& dstRect, GrTexture* texture, Gr1DKernelEffect::Direction direction, int radius, float sigma, bool useBounds, float bounds[2]) argument 64 convolve_gaussian(GrContext* context, const SkRect& srcRect, const SkRect& dstRect, GrTexture* texture, Gr1DKernelEffect::Direction direction, int radius, float sigma, bool cropToSrcRect) argument [all...] |
/external/chromium_org/third_party/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
H A D | ViESurfaceRenderer.java | 38 private Rect srcRect = new Rect(); field in class:ViESurfaceRenderer 67 " srcRect.left:" + srcRect.left + 68 " srcRect.top:" + srcRect.top + 69 " srcRect.right:" + srcRect.right + 70 " srcRect.bottom:" + srcRect.bottom + 88 " srcRect [all...] |
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
H A D | ImageBitmap.cpp | 43 IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height())); local 44 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size()); 45 m_bitmapOffset = srcRect.location(); 47 if (!srcRect.width() || !srcRect.height()) 64 IntRect srcRect = intersection(cropRect, videoRect); local 65 IntRect dstRect(IntPoint(), srcRect.size()); 72 c->translate(-srcRect.x(), -srcRect.y()); 75 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect 87 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), canvas->size())); local 97 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), data->size())); local 116 IntRect srcRect = intersection(cropRect, oldBitmapRect); local 132 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), image->size())); local 202 adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const argument [all...] |
/external/chromium_org/third_party/skia/include/effects/ |
H A D | SkTileImageFilter.h | 18 @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) {}
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/ |
H A D | SVGFEImage.cpp | 94 FloatRect srcRect; local 96 srcRect = getRendererRepaintRect(renderer); 104 srcRect = makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), destRect).mapRect(srcRect); 107 srcRect = filter()->mapLocalRectToAbsoluteRect(srcRect); 108 srcRect.move(destRect.x(), destRect.y()); 110 destRect.intersect(srcRect); 112 srcRect = FloatRect(FloatPoint(), m_image->size()); 113 m_preserveAspectRatio->transformRect(destRect, srcRect); 147 FloatRect srcRect; local [all...] |
/external/chromium_org/third_party/skia/gm/ |
H A D | matriximagefilter.cpp | 68 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 D | resizeimagefilter.cpp | 72 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...] |
/external/skia/gm/ |
H A D | matriximagefilter.cpp | 68 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 D | resizeimagefilter.cpp | 69 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/chromium_org/third_party/WebKit/Source/core/svg/ |
H A D | SVGPreserveAspectRatio.cpp | 199 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) argument 204 FloatSize imageSize = srcRect.size(); 211 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); 249 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); 252 float destToSrcMultiplier = srcRect.width() / destRect.width(); 253 srcRect.setHeight(destRect.height() * destToSrcMultiplier); 258 srcRect.setY(srcRect [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
H A D | ContentReadbackHandler.java | 78 * @param srcRect A subrect of the original content to capture. If this is empty, it will grab 83 public void getContentBitmapAsync(float scale, Rect srcRect, ContentViewCore view, argument 94 Bitmap.Config.ARGB_8888, srcRect.top, srcRect.left, srcRect.width(), 95 srcRect.height(), view);
|