Home
last modified time | relevance | path

Searched refs:srcRect (Results 1 – 25 of 135) sorted by relevance

123456

/external/chromium_org/third_party/skia/src/pdf/
DSkPDFImage.cpp29 const SkIRect& srcRect) { in get_uncompressed_size() argument
32 return srcRect.width() * srcRect.height(); in get_uncompressed_size()
34 return ((srcRect.width() * 3 + 1) / 2) * srcRect.height(); in get_uncompressed_size()
36 return srcRect.width() * 3 * srcRect.height(); in get_uncompressed_size()
39 return srcRect.width() * 3 * srcRect.height(); in get_uncompressed_size()
49 const SkIRect& srcRect) { in extract_index8_image() argument
50 const int rowBytes = srcRect.width(); in extract_index8_image()
52 (get_uncompressed_size(bitmap, srcRect))); in extract_index8_image()
55 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extract_index8_image()
56 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes); in extract_index8_image()
[all …]
/external/skia/src/pdf/
DSkPDFImage.cpp29 const SkIRect& srcRect) { in get_uncompressed_size() argument
32 return srcRect.width() * srcRect.height(); in get_uncompressed_size()
34 return ((srcRect.width() * 3 + 1) / 2) * srcRect.height(); in get_uncompressed_size()
36 return srcRect.width() * 3 * srcRect.height(); in get_uncompressed_size()
39 return srcRect.width() * 3 * srcRect.height(); in get_uncompressed_size()
49 const SkIRect& srcRect) { in extract_index8_image() argument
50 const int rowBytes = srcRect.width(); in extract_index8_image()
52 (get_uncompressed_size(bitmap, srcRect))); in extract_index8_image()
55 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extract_index8_image()
56 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes); in extract_index8_image()
[all …]
/external/chromium_org/third_party/skia/src/effects/
DSkGpuBlurUtils.cpp47 const SkRect& srcRect, in convolve_gaussian_pass() argument
61 context->drawRectToRect(paint, dstRect, srcRect); in convolve_gaussian_pass()
65 const SkRect& srcRect, in convolve_gaussian() argument
74 convolve_gaussian_pass(context, srcRect, dstRect, texture, in convolve_gaussian()
78 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in convolve_gaussian()
79 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; in convolve_gaussian()
80 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; in convolve_gaussian()
84 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width(); in convolve_gaussian()
85 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width(); in convolve_gaussian()
86 size = srcRect.width(); in convolve_gaussian()
[all …]
DSkTileImageFilter.cpp39 SkRect srcRect; in onFilterImage() local
40 ctx.ctm().mapRect(&srcRect, fSrcRect); in onFilterImage()
42 srcRect.roundOut(&srcIRect); in onFilterImage()
80 SkRect srcRect; in onFilterBounds() local
81 ctm.mapRect(&srcRect, fSrcRect); in onFilterBounds()
83 srcRect.roundOut(&srcIRect); in onFilterBounds()
/external/skia/src/effects/
DSkGpuBlurUtils.cpp47 const SkRect& srcRect, in convolve_gaussian_pass() argument
61 context->drawRectToRect(paint, dstRect, srcRect); in convolve_gaussian_pass()
65 const SkRect& srcRect, in convolve_gaussian() argument
74 convolve_gaussian_pass(context, srcRect, dstRect, texture, in convolve_gaussian()
78 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in convolve_gaussian()
79 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; in convolve_gaussian()
80 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; in convolve_gaussian()
84 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width(); in convolve_gaussian()
85 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width(); in convolve_gaussian()
86 size = srcRect.width(); in convolve_gaussian()
[all …]
DSkTileImageFilter.cpp39 SkRect srcRect; in onFilterImage() local
40 ctx.ctm().mapRect(&srcRect, fSrcRect); in onFilterImage()
42 srcRect.roundOut(&srcIRect); in onFilterImage()
80 SkRect srcRect; in onFilterBounds() local
81 ctm.mapRect(&srcRect, fSrcRect); in onFilterBounds()
83 srcRect.roundOut(&srcIRect); in onFilterBounds()
/external/chromium-trace/trace-viewer/src/base/
Dquad_test.js60 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 = base.Rect.FromXYWH(0.0, 0, 1, 1);
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DGradientGeneratedImage.cpp34 …raphicsContext* destContext, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperato… in draw() argument
40 if (destRect.size() != srcRect.size()) in draw()
41 … destContext->scale(destRect.width() / srcRect.width(), destRect.height() / srcRect.height()); in draw()
42 destContext->translate(-srcRect.x(), -srcRect.y()); in draw()
47 void GradientGeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, co… in drawPattern() argument
50 float stepX = srcRect.width() + repeatSpacing.width(); in drawPattern()
51 float stepY = srcRect.height() + repeatSpacing.height(); in drawPattern()
52 …_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect.x()) / srcRect.width())); in drawPattern()
53 …st<int>(floorf((((destRect.y() - phase.y()) / scale.height()) - srcRect.y()) / srcRect.height())); in drawPattern()
55 float dstX = (srcRect.x() + i * stepX) * scale.width() + phase.x(); in drawPattern()
[all …]
DCrossfadeGeneratedImage.cpp87 …raw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperato… in draw() argument
93 if (dstRect.size() != srcRect.size()) in draw()
94 context->scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()); in draw()
95 context->translate(-srcRect.x(), -srcRect.y()); in draw()
100 void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const… in drawPattern() argument
111 …imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSp… in drawPattern()
DImage.cpp119 void Image::draw(GraphicsContext* ctx, const FloatRect& dstRect, const FloatRect& srcRect, Composit… in draw() argument
121 draw(ctx, dstRect, srcRect, op, blendMode); in draw()
167 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, in drawTiled() argument
187 …epetitions = std::max(1.0f, roundf(dstRect.width() / (tileScaleFactor.width() * srcRect.width()))); in drawTiled()
188 tileScaleFactor.setWidth(dstRect.width() / (srcRect.width() * hRepetitions)); in drawTiled()
191 …titions = std::max(1.0f, roundf(dstRect.height() / (tileScaleFactor.height() * srcRect.height()))); in drawTiled()
192 tileScaleFactor.setHeight(dstRect.height() / (srcRect.height() * vRepetitions)); in drawTiled()
203 float hPhase = tileScaleFactor.width() * srcRect.x(); in drawTiled()
204 float vPhase = tileScaleFactor.height() * srcRect.y(); in drawTiled()
205 float scaledTileWidth = tileScaleFactor.width() * srcRect.width(); in drawTiled()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/frame/
DImageBitmap.cpp43 IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height())); in ImageBitmap() local
44 …apRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size()); in ImageBitmap()
45 m_bitmapOffset = srcRect.location(); in ImageBitmap()
47 if (!srcRect.width() || !srcRect.height()) in ImageBitmap()
66 IntRect srcRect = intersection(cropRect, videoRect); in ImageBitmap() local
67 IntRect dstRect(IntPoint(), srcRect.size()); in ImageBitmap()
74 c->translate(-srcRect.x(), -srcRect.y()); in ImageBitmap()
77 …apRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size()); in ImageBitmap()
91 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), canvas->size())); in ImageBitmap() local
92 …apRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size()); in ImageBitmap()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/
DSVGFEImage.cpp86 FloatRect srcRect; in determineAbsolutePaintRect() local
88 srcRect = getRendererRepaintRect(renderer); in determineAbsolutePaintRect()
96srcRect = makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), destRect).mapRect(srcRect); in determineAbsolutePaintRect()
99 srcRect = filter()->mapLocalRectToAbsoluteRect(srcRect); in determineAbsolutePaintRect()
100 srcRect.move(destRect.x(), destRect.y()); in determineAbsolutePaintRect()
102 destRect.intersect(srcRect); in determineAbsolutePaintRect()
104 srcRect = FloatRect(FloatPoint(), m_image->size()); in determineAbsolutePaintRect()
105 m_preserveAspectRatio->transformRect(destRect, srcRect); in determineAbsolutePaintRect()
139 FloatRect srcRect; in applySoftware() local
142 srcRect = FloatRect(FloatPoint(), m_image->size()); in applySoftware()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGPreserveAspectRatio.cpp209 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) in transformRect() argument
214 FloatSize imageSize = srcRect.size(); in transformRect()
221 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); in transformRect()
259 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); in transformRect()
262 float destToSrcMultiplier = srcRect.width() / destRect.width(); in transformRect()
263 srcRect.setHeight(destRect.height() * destToSrcMultiplier); in transformRect()
268 srcRect.setY(srcRect.y() + imageSize.height() / 2 - srcRect.height() / 2); in transformRect()
273 srcRect.setY(srcRect.y() + imageSize.height() - srcRect.height()); in transformRect()
281 float destToSrcMultiplier = srcRect.height() / destRect.height(); in transformRect()
282 srcRect.setWidth(destRect.width() * destToSrcMultiplier); in transformRect()
[all …]
/external/chromium_org/third_party/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
DViESurfaceRenderer.java38 private Rect srcRect = new Rect(); field in ViESurfaceRenderer
67 " srcRect.left:" + srcRect.left + in surfaceChanged()
68 " srcRect.top:" + srcRect.top + in surfaceChanged()
69 " srcRect.right:" + srcRect.right + in surfaceChanged()
70 " srcRect.bottom:" + srcRect.bottom + in surfaceChanged()
88 " srcRect.left:" + srcRect.left + in surfaceCreated()
89 " srcRect.top:" + srcRect.top + in surfaceCreated()
90 " srcRect.right:" + srcRect.right + in surfaceCreated()
91 " srcRect.bottom:" + srcRect.bottom + in surfaceCreated()
118 srcRect.left = 0; in CreateBitmap()
[all …]
/external/chromium_org/third_party/skia/samplecode/
DSampleTextureDomain.cpp47 SkRect srcRect; in onDrawContent() local
54 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); in onDrawContent()
65 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, in onDrawContent()
72 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
74 image->draw(canvas, &srcRect, dstRect, &paint); in onDrawContent()
78 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
86 image->draw(canvas, &srcRect, dstRect, &paint); in onDrawContent()
/external/skia/samplecode/
DSampleTextureDomain.cpp47 SkRect srcRect; in onDrawContent() local
54 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); in onDrawContent()
65 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, in onDrawContent()
72 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
74 image->draw(canvas, &srcRect, dstRect, &paint); in onDrawContent()
78 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
86 image->draw(canvas, &srcRect, dstRect, &paint); in onDrawContent()
/external/chromium_org/third_party/skia/gm/
Dresizeimagefilter.cpp69 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
73 srcRect, in onDraw()
77 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
79 srcRect, in onDraw()
83 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
85 srcRect, in onDraw()
89 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
91 srcRect, in onDraw()
110 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
112 srcRect, in onDraw()
Dmatriximagefilter.cpp68 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
71 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kNone_FilterLevel); in onDraw()
73 canvas->translate(srcRect.width() + margin, 0); in onDraw()
74 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kLow_FilterLevel); in onDraw()
78 canvas->translate(srcRect.width() + margin, 0); in onDraw()
79 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kMedium_FilterLevel); in onDraw()
81 canvas->translate(srcRect.width() + margin, 0); in onDraw()
82 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kHigh_FilterLevel); in onDraw()
/external/skia/gm/
Dresizeimagefilter.cpp69 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
73 srcRect, in onDraw()
77 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
79 srcRect, in onDraw()
83 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
85 srcRect, in onDraw()
89 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
91 srcRect, in onDraw()
110 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
112 srcRect, in onDraw()
Dmatriximagefilter.cpp68 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
71 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kNone_FilterLevel); in onDraw()
73 canvas->translate(srcRect.width() + margin, 0); in onDraw()
74 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kLow_FilterLevel); in onDraw()
78 canvas->translate(srcRect.width() + margin, 0); in onDraw()
79 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kMedium_FilterLevel); in onDraw()
81 canvas->translate(srcRect.width() + margin, 0); in onDraw()
82 draw(canvas, srcRect, checkerboard, matrix, SkPaint::kHigh_FilterLevel); in onDraw()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
DSourceGraphic.cpp45 FloatRect srcRect = filter()->sourceImageRect(); in determineAbsolutePaintRect() local
46 srcRect.intersect(requestedRect); in determineAbsolutePaintRect()
47 addAbsolutePaintRect(srcRect); in determineAbsolutePaintRect()
48 return srcRect; in determineAbsolutePaintRect()
58 IntRect srcRect = filter->sourceImageRect(); in applySoftware() local
61 …FloatRect(IntPoint(srcRect.location() - absolutePaintRect().location()), sourceImageBuffer->size()… in applySoftware()
DSourceAlpha.cpp48 FloatRect srcRect = filter()->sourceImageRect(); in determineAbsolutePaintRect() local
49 srcRect.intersect(requestedRect); in determineAbsolutePaintRect()
50 addAbsolutePaintRect(srcRect); in determineAbsolutePaintRect()
51 return srcRect; in determineAbsolutePaintRect()
67 IntRect srcRect = filter->sourceImageRect(); in applySoftware() local
70 …FloatRect(IntPoint(srcRect.location() - absolutePaintRect().location()), sourceImageBuffer->size()… in applySoftware()
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/
DSVGImageForContainer.cpp37 const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) in draw() argument
39 …m_image->drawForContainer(context, m_containerSize, m_zoom, dstRect, srcRect, compositeOp, blendMo… in draw()
42 void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const Fl… in drawPattern() argument
45 …m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, composit… in drawPattern()
/external/skia/include/effects/
DSkTileImageFilter.h22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, in Create() argument
24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input)); in Create()
35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
36 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
/external/chromium_org/third_party/skia/include/effects/
DSkTileImageFilter.h22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, in Create() argument
24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input)); in Create()
35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
36 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()

123456