/external/chromium_org/third_party/skia/samplecode/ |
SampleTextureDomain.cpp | 48 SkRect dstRect; 55 dstRect.setXYWH(5, 5, 305, 305); 56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); 66 dstRect.setXYWH(1, 1, 3, 3); 67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, 73 dstRect.setXYWH(405, 5, 305, 305); 74 image->draw(canvas, &srcRect, dstRect, &paint); 79 dstRect.setXYWH(5, 405, 305, 305); 86 image->draw(canvas, &srcRect, dstRect, &paint); 98 dstRect.setXYWH(-150, -150, 300, 300) [all...] |
/external/skia/samplecode/ |
SampleTextureDomain.cpp | 48 SkRect dstRect; 55 dstRect.setXYWH(5, 5, 305, 305); 56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); 66 dstRect.setXYWH(1, 1, 3, 3); 67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, 73 dstRect.setXYWH(405, 5, 305, 305); 74 image->draw(canvas, &srcRect, dstRect, &paint); 79 dstRect.setXYWH(5, 405, 305, 305); 86 image->draw(canvas, &srcRect, dstRect, &paint); 98 dstRect.setXYWH(-150, -150, 300, 300) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/ |
SVGImageForContainer.cpp | 36 void SVGImageForContainer::draw(GraphicsContext* context, const FloatRect& dstRect, 39 m_image->drawForContainer(context, m_containerSize, m_zoom, dstRect, srcRect, compositeOp, blendMode); 43 const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) 45 m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
/external/chromium_org/third_party/skia/include/effects/ |
SkTileImageFilter.h | 19 @param dstRect Defines the pixels where tiles are drawn 22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, 24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input)); 35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) 36 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
|
SkBitmapSource.h | 20 const SkRect& dstRect) { 21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect)); 29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
|
/external/skia/include/effects/ |
SkTileImageFilter.h | 19 @param dstRect Defines the pixels where tiles are drawn 22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, 24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input)); 35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) 36 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
|
SkBitmapSource.h | 20 const SkRect& dstRect) { 21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect)); 29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
|
/external/chromium_org/third_party/skia/src/effects/ |
SkBitmapSource.cpp | 23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) 27 , fDstRect(dstRect) {} 49 SkRect bounds, dstRect; 51 ctx.ctm().mapRect(&dstRect, fDstRect); 52 if (fSrcRect == bounds && dstRect == bounds) { 59 dstRect.roundOut(&dstIRect); 70 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 75 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? 77 canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint) [all...] |
SkGpuBlurUtils.cpp | 48 const SkRect& dstRect, 61 context->drawRectToRect(paint, dstRect, srcRect); 66 const SkRect& dstRect, 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; 88 lowerDstRect.fRight = dstRect.left() + rad; 90 upperDstRect.fLeft = dstRect.right() - rad; 98 lowerDstRect.fBottom = dstRect.top() + rad [all...] |
SkTileImageFilter.cpp | 29 SkRect dstRect; 30 ctx.ctm().mapRect(&dstRect, fDstRect); 32 dstRect.roundOut(&dstIRect); 70 canvas.translate(-dstRect.fLeft, -dstRect.fTop); 71 canvas.drawRect(dstRect, paint);
|
/external/skia/src/effects/ |
SkBitmapSource.cpp | 23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) 27 , fDstRect(dstRect) {} 49 SkRect bounds, dstRect; 51 ctx.ctm().mapRect(&dstRect, fDstRect); 52 if (fSrcRect == bounds && dstRect == bounds) { 59 dstRect.roundOut(&dstIRect); 70 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); 75 fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ? 77 canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint) [all...] |
SkGpuBlurUtils.cpp | 48 const SkRect& dstRect, 61 context->drawRectToRect(paint, dstRect, srcRect); 66 const SkRect& dstRect, 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; 88 lowerDstRect.fRight = dstRect.left() + rad; 90 upperDstRect.fLeft = dstRect.right() - rad; 98 lowerDstRect.fBottom = dstRect.top() + rad [all...] |
SkTileImageFilter.cpp | 29 SkRect dstRect; 30 ctx.ctm().mapRect(&dstRect, fDstRect); 32 dstRect.roundOut(&dstIRect); 70 canvas.translate(-dstRect.fLeft, -dstRect.fTop); 71 canvas.drawRect(dstRect, paint);
|
/external/chromium_org/third_party/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
ViESurfaceRenderer.java | 40 private Rect dstRect = new Rect(); 55 dstRect.right = (int)(dstRect.left + dstRightScale * dstWidth); 56 dstRect.bottom = (int)(dstRect.top + dstBottomScale * dstHeight); 71 " dstRect.left:" + dstRect.left + 72 " dstRect.top:" + dstRect.top + 73 " dstRect.right:" + dstRect.right [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
CrossfadeGeneratedImage.cpp | 87 void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) 91 context->clip(dstRect); 92 context->translate(dstRect.x(), dstRect.y()); 93 if (dstRect.size() != srcRect.size()) 94 context->scale(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()); 100 void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) 111 imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
Image.cpp | 94 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, CompositeOperator op) 101 ctxt->fillRect(dstRect, color); 119 void Image::draw(GraphicsContext* ctx, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator op, blink::WebBlendMode blendMode, RespectImageOrientationEnum) 121 draw(ctx, dstRect, srcRect, op, blendMode); 167 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, 171 fillWithSolidColor(ctxt, dstRect, solidColor(), op); 187 float hRepetitions = std::max(1.0f, roundf(dstRect.width() / (tileScaleFactor.width() * srcRect.width()))); 188 tileScaleFactor.setWidth(dstRect.width() / (srcRect.width() * hRepetitions)); 191 float vRepetitions = std::max(1.0f, roundf(dstRect.height() / (tileScaleFactor.height() * srcRect.height()))); 192 tileScaleFactor.setHeight(dstRect.height() / (srcRect.height() * vRepetitions)) [all...] |
Image.h | 128 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, const Color&, CompositeOperator); 131 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode) = 0; 132 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum); 133 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize, 135 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, const FloatSize& tileScaleFactor, TileRule hRule, TileRule vRule, CompositeOperator);
|
/external/deqp/framework/platform/raspi/ |
tcuRaspiPlatform.cpp | 127 VC_RECT_T dstRect, srcRect; 129 dstRect.x = 0; 130 dstRect.y = 0; 131 dstRect.width = width; 132 dstRect.height = height; 145 m_dispmanElement = vc_dispmanx_element_add(dispmanUpdate, m_dispmanDisplay, 0/*layer*/, &dstRect, 0/*src*/, &srcRect, DISPMANX_PROTECTION_NONE, 0/*alpha*/, 0/*clamp*/, DISPMANX_NO_ROTATE);
|
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
CanvasImageSource.h | 65 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { }
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/ |
SVGFEImage.cpp | 185 FloatRect dstRect = filterPrimitiveSubregion(); 197 transform = makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), dstRect); 199 transform.translate(dstRect.x(), dstRect.y()); 207 context->beginRecording(FloatRect(FloatPoint(), dstRect.size())); 212 RefPtr<SkImageFilter> result = adoptRef(SkPictureImageFilter::Create(displayList->picture(), dstRect)); 228 FloatRect dstRect = filterPrimitiveSubregion(); 232 if (dstRect.isEmpty()) 233 dstRect = srcRect; 235 m_preserveAspectRatio->transformRect(dstRect, srcRect) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
FrameImage2D.java | 145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { 150 idShader.setTargetRect(dstRect); 158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { 164 Rect dstIRect = new Rect((int) dstRect.left * srcImage.getWidth(), 165 (int) dstRect.top * srcImage.getHeight(), 166 (int) dstRect.right * srcImage.getWidth(), 167 (int) dstRect.bottom * srcImage.getHeight());
|
/external/chromium_org/third_party/skia/gm/ |
tileimagefilter.cpp | 83 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), 89 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); 110 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() * 2), 112 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, NULL)); 120 canvas->clipRect(dstRect); 121 canvas->saveLayer(&dstRect, &paint);
|
bitmapsource.cpp | 55 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); 61 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect)); 62 SkAutoTUnref<SkImageFilter> bitmapSourceDstRectOnly(SkBitmapSource::Create(fBitmap, bounds, dstRect)); 72 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 76 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect).
|
/external/skia/gm/ |
tileimagefilter.cpp | 83 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), 89 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); 110 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() * 2), 112 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, NULL)); 120 canvas->clipRect(dstRect); 121 canvas->saveLayer(&dstRect, &paint);
|
bitmapsource.cpp | 55 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); 61 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect)); 62 SkAutoTUnref<SkImageFilter> bitmapSourceDstRectOnly(SkBitmapSource::Create(fBitmap, bounds, dstRect)); 72 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect). 76 // Draw the entire bitmap scaled to a destination rect (bounds -> dstRect).
|