Home
last modified time | relevance | path

Searched refs:destRect (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DGradientGeneratedImage.cpp34 void GradientGeneratedImage::draw(GraphicsContext* destContext, const FloatRect& destRect, const Fl… in draw() argument
38 destContext->clip(destRect); in draw()
39 destContext->translate(destRect.x(), destRect.y()); in draw()
40 if (destRect.size() != srcRect.size()) in draw()
41 …destContext->scale(FloatSize(destRect.width() / srcRect.width(), destRect.height() / srcRect.heigh… in draw()
48 …const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, blink::WebBlend… in drawPattern() argument
52 …int firstColumn = static_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect.… in drawPattern()
53 …int firstRow = static_cast<int>(floorf((((destRect.y() - phase.y()) / scale.height()) - srcRect.y… in drawPattern()
57 ASSERT(i > firstColumn || dstX <= destRect.x()); in drawPattern()
58 ASSERT(i == firstColumn || dstX > destRect.x()); in drawPattern()
[all …]
DImage.cpp124 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint,… in drawTiled() argument
127 fillWithSolidColor(ctxt, destRect, solidColor(), op); in drawTiled()
145 …oneTileRect.setX(destRect.x() + fmodf(fmodf(-srcPoint.x(), actualTileSize.width()) - actualTileSiz… in drawTiled()
146 …oneTileRect.setY(destRect.y() + fmodf(fmodf(-srcPoint.y(), actualTileSize.height()) - actualTileSi… in drawTiled()
150 if (oneTileRect.contains(destRect)) { in drawTiled()
152 visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width()); in drawTiled()
153 visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height()); in drawTiled()
154 visibleSrcRect.setWidth(destRect.width() / scale.width()); in drawTiled()
155 visibleSrcRect.setHeight(destRect.height() / scale.height()); in drawTiled()
156 draw(ctxt, destRect, visibleSrcRect, op, blendMode); in drawTiled()
[all …]
DGraphicsContext.h250 void drawImage(Image*, const FloatRect& destRect);
251 …void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = Co…
252 …void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, bli…
254 …void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoint, const IntSize& tile…
256 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect,
263 …void drawImageBuffer(ImageBuffer*, const IntRect& destRect, const IntRect& srcRect, CompositeOpera…
264 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect);
265 …void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRect& srcRect, CompositeO…
DImageBuffer.cpp185 void ImageBuffer::draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect& srcRec… in draw() argument
193 …context->drawImage(image.get(), destRect, srcRect, op, blendMode, DoNotRespectImageOrientation, us… in draw()
204 …const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect, blink::WebBlendMode blen… in drawPattern() argument
211 image->drawPattern(context, srcRect, scale, phase, op, destRect, blendMode, repeatSpacing); in drawPattern()
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGPreserveAspectRatio.cpp184 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) in transformRect() argument
190 float origDestWidth = destRect.width(); in transformRect()
191 float origDestHeight = destRect.height(); in transformRect()
198 destRect.setHeight(origDestWidth * widthToHeightMultiplier); in transformRect()
203 destRect.setY(destRect.y() + origDestHeight / 2 - destRect.height() / 2); in transformRect()
208 destRect.setY(destRect.y() + origDestHeight - destRect.height()); in transformRect()
215 destRect.setWidth(origDestHeight / widthToHeightMultiplier); in transformRect()
220 destRect.setX(destRect.x() + origDestWidth / 2 - destRect.width() / 2); in transformRect()
225 destRect.setX(destRect.x() + origDestWidth - destRect.width()); in transformRect()
237 float destToSrcMultiplier = srcRect.width() / destRect.width(); in transformRect()
[all …]
DSVGPreserveAspectRatio.h63 void transformRect(FloatRect& destRect, FloatRect& srcRect);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/win/
DTransparencyWin.cpp84 SkRect destRect; in compositeToCopy() local
85 destRect.fLeft = devices[i].x; in compositeToCopy()
86 destRect.fTop = devices[i].y; in compositeToCopy()
87 destRect.fRight = destRect.fLeft + srcBmp.width(); in compositeToCopy()
88 destRect.fBottom = destRect.fTop + srcBmp.height(); in compositeToCopy()
90 destCanvas.drawBitmapRect(srcBmp, 0, destRect); in compositeToCopy()
434 SkRect destRect; in compositeOpaqueComposite() local
445destRect.set(m_transformedSourceRect.x(), m_transformedSourceRect.y(), m_transformedSourceRect.max… in compositeOpaqueComposite()
447 destRect.set(m_sourceRect.x(), m_sourceRect.y(), m_sourceRect.maxX(), m_sourceRect.maxY()); in compositeOpaqueComposite()
459 m_destContext->drawBitmapRect(*bitmap, &sourceRect, destRect, &paint); in compositeOpaqueComposite()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
DNativeImageSkia.cpp223 …tmap(GraphicsContext* context, SkPaint& paint, const SkRect& srcRect, const SkRect& destRect) const in drawResampledBitmap()
230 context->getTotalMatrix().mapRect(&screenRect, destRect); in drawResampledBitmap()
236 ClipRectToCanvas(context, destRect, &destRectVisibleSubset); in drawResampledBitmap()
240 if (!destRectVisibleSubset.intersect(destRect)) in drawResampledBitmap()
246 destToSrcTransform.setRectToRect(destRect, srcRect, SkMatrix::kFill_ScaleToFit); in drawResampledBitmap()
320 void NativeImageSkia::draw(GraphicsContext* context, const SkRect& srcRect, const SkRect& destRect,… in draw() argument
338 SkRect destRectTarget = destRect; in draw()
341 totalMatrix.mapRect(&destRectTarget, destRect); in draw()
369 drawResampledBitmap(context, paint, srcRect, destRect); in draw()
375 context->drawBitmapRect(bitmap(), &srcRect, destRect, &paint); in draw()
[all …]
DNativeImageSkia.h129 …void draw(GraphicsContext*, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode>)…
136 const FloatRect& destRect,
178 …awResampledBitmap(GraphicsContext*, SkPaint&, const SkRect& srcRect, const SkRect& destRect) const;
DSkiaUtils.cpp131 void ClipRectToCanvas(const GraphicsContext* context, const SkRect& srcRect, SkRect* destRect) in ClipRectToCanvas() argument
133 if (!context->getClipBounds(destRect) || !destRect->intersect(srcRect)) in ClipRectToCanvas()
134 destRect->setEmpty(); in ClipRectToCanvas()
DSkiaUtils.h86 void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* destRect);
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/
DSVGFEImage.cpp103 FloatRect destRect = filter()->absoluteTransform().mapRect(filterPrimitiveSubregion()); in applySoftware() local
110 m_preserveAspectRatio.transformRect(destRect, srcRect); in applySoftware()
114 destRect.move(-paintLocation.x(), -paintLocation.y()); in applySoftware()
128 …tImage->context()->concatCTM(makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), destRect)); in applySoftware()
139 resultImage->context()->drawImage(m_image.get(), destRect, srcRect); in applySoftware()
/external/chromium_org/chrome/browser/ui/cocoa/
Dhover_close_button.mm89 NSRect destRect = [self bounds];
90 destRect.origin.y = floor((NSHeight(destRect) / 2)
92 destRect.size = imageRect.size;
96 [image drawInRect:destRect
105 [image drawInRect:destRect
122 [previousImage drawInRect:destRect
129 [image drawInRect:destRect
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DRenderSVGImage.cpp161 FloatRect destRect = m_objectBoundingBox; in paintForeground() local
165 imageElement->preserveAspectRatioCurrentValue().transformRect(destRect, srcRect); in paintForeground()
169 …dPaintAtLowQuality(paintInfo.context, this, image.get(), image.get(), LayoutSize(destRect.size())); in paintForeground()
171 …paintInfo.context->drawImage(image.get(), destRect, srcRect, CompositeSourceOver, DoNotRespectImag… in paintForeground()
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DFloatRect.cpp257 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect) in mapRect() argument
262 float widthScale = destRect.width() / srcRect.width(); in mapRect()
263 float heightScale = destRect.height() / srcRect.height(); in mapRect()
264 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale, in mapRect()
265 destRect.y() + (r.y() - srcRect.y()) * heightScale, in mapRect()
/external/chromium_org/third_party/WebKit/Source/core/platform/
DDragImage.cpp86 FloatRect destRect(FloatPoint(), sizeRespectingOrientation); in create() local
88 destRect = destRect.transposedRect(); in create()
98 canvas.drawBitmapRect(bitmap->bitmap(), 0, destRect); in create()
/external/chromium_org/third_party/angle/src/libGLESv2/
DContext.cpp2717 Rectangle destRect; in blitFramebuffer() local
2722 destRect.x = dstX0; in blitFramebuffer()
2724 destRect.width = dstX1 - dstX0; in blitFramebuffer()
2729 destRect.x = dstX1; in blitFramebuffer()
2731 destRect.width = dstX0 - dstX1; in blitFramebuffer()
2737 destRect.height = dstY1 - dstY0; in blitFramebuffer()
2739 destRect.y = dstY0; in blitFramebuffer()
2744 destRect.height = dstY0 - srcY1; in blitFramebuffer()
2746 destRect.y = dstY1; in blitFramebuffer()
2750 Rectangle destScissoredRect = destRect; in blitFramebuffer()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/
DHTMLVideoElement.cpp184 void HTMLVideoElement::paintCurrentFrameInContext(GraphicsContext* context, const IntRect& destRect) in paintCurrentFrameInContext() argument
189 player->paint(context, destRect); in paintCurrentFrameInContext()
DHTMLCanvasElement.cpp210 FloatRect destRect = ro->contentBoxRect(); in didDraw() local
211 FloatRect r = mapRect(rect, FloatRect(0, 0, size().width(), size().height()), destRect); in didDraw()
212 r.intersect(destRect); in didDraw()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderBoxModelObject.h209 IntRect destRect() const { return m_destRect; } in destRect() function
210 void setDestRect(const IntRect& destRect) in setDestRect() argument
212 m_destRect = destRect; in setDestRect()
/external/chromium/chrome/browser/ui/cocoa/tabs/
Dthrobber_view.mm122 NSRect destRect;
127 destRect = NSMakeRect(0, -animationFrame_,
134 destRect = NSMakeRect(0, animationFrame_ -
142 [image drawInRect:destRect
/external/chromium_org/chrome/browser/ui/cocoa/tabs/
Dthrobber_view.mm123 NSRect destRect;
128 destRect = NSMakeRect(0, -animationFrame_,
135 destRect = NSMakeRect(0, animationFrame_ -
143 [image drawInRect:destRect
/external/chromium_org/chrome/browser/ui/cocoa/browser/
Davatar_button_controller.mm274 NSRect destRect = NSZeroRect;
275 destRect.size = [destination size];
286 [image drawInRect:destRect
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/
DRenderer11.cpp2487 gl::Rectangle destRect; in copyImage() local
2488 destRect.x = xoffset; in copyImage()
2489 destRect.y = yoffset; in copyImage()
2490 destRect.width = sourceRect.width; in copyImage()
2491 destRect.height = sourceRect.height; in copyImage()
2494 … dest, destRect, destRenderTarget->getWidth(), destRenderTarget->getHeight(), destFormat); in copyImage()
2544 gl::Rectangle destRect; in copyImage() local
2545 destRect.x = xoffset; in copyImage()
2546 destRect.y = yoffset; in copyImage()
2547 destRect.width = sourceRect.width; in copyImage()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
DFilterEffect.h127 FloatRect getSourceRect(const FloatRect& destRect, const FloatRect& clipRect);

12