HomeSort by relevance Sort by last modified time
    Searched refs:destRect (Results 1 - 25 of 65) sorted by null

1 2 3

  /external/webkit/Source/WebCore/platform/graphics/cairo/
ContextShadowCairo.cpp 285 FloatRect destRect = tileRect;
286 destRect.move(shadowRect.x(), shadowRect.y());
287 destRect.setWidth(shadowRect.width() - topLeftRadius.width() - topRightRadius.width() - m_blurDistance * 4);
288 FloatPoint phase = getPhase(destRect, tileRect);
291 drawPatternToCairoContext(cr, m_layerImage, shadowTemplateSize, tileRect, patternTransform, phase, CAIRO_OPERATOR_OVER, destRect);
295 destRect = tileRect;
296 destRect.move(shadowRect.x(), shadowRect.y() + radiusTwice + rect.height() - shadowTemplateSize.height());
297 destRect.setWidth(shadowRect.width() - bottomLeftRadius.width() - bottomRightRadius.width() - m_blurDistance * 4);
298 phase = getPhase(destRect, tileRect);
299 drawPatternToCairoContext(cr, m_layerImage, shadowTemplateSize, tileRect, patternTransform, phase, CAIRO_OPERATOR_OVER, destRect);
    [all...]
CairoUtilities.cpp 125 const AffineTransform& patternTransform, const FloatPoint& phase, cairo_operator_t op, const FloatRect& destRect)
156 cairo_rectangle(cr, destRect.x(), destRect.y(), destRect.width(), destRect.height());
CairoUtilities.h 47 const AffineTransform& patternTransform, const FloatPoint& phase, cairo_operator_t op, const FloatRect& destRect);
  /external/webkit/Source/WebCore/svg/
SVGPreserveAspectRatio.cpp 159 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect)
162 float origDestWidth = destRect.width();
163 float origDestHeight = destRect.height();
170 destRect.setHeight(origDestWidth * widthToHeightMultiplier);
175 destRect.setY(destRect.y() + origDestHeight / 2 - destRect.height() / 2);
180 destRect.setY(destRect.y() + origDestHeight - destRect.height())
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/haiku/
StillImageHaiku.cpp 66 void StillImage::draw(GraphicsContext* context, const FloatRect& destRect,
74 context->platformContext()->DrawBitmap(&m_bitmap, sourceRect, destRect);
  /external/webkit/Source/WebCore/svg/graphics/filters/
SVGFEImage.cpp 69 FloatRect destRect(m_absoluteSubregion);
70 m_preserveAspectRatio.transformRect(destRect, srcRect);
73 destRect.move(-paintLocation.x(), -paintLocation.y());
75 resultImage->context()->drawImage(m_image.get(), ColorSpaceDeviceRGB, destRect, srcRect);
  /external/webkit/Source/WebCore/platform/graphics/cg/
ImageCG.cpp 170 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp)
179 fillWithSolidColor(ctxt, destRect, solidColor(), styleColorSpace, compositeOp);
194 FloatRect adjustedDestRect = destRect;
202 shouldUseSubimage = (interpolationQuality != kCGInterpolationNone) && (srcRect.size() != destRect.size() || !ctxt->getCTM().isIdentityOrTranslationOrFlipped());
203 float xScale = srcRect.width() / destRect.width();
204 float yScale = srcRect.height() / destRect.height();
225 adjustedDestRect.setLocation(FloatPoint(destRect.x() - srcRect.x() / xScale, destRect.y() - srcRect.y() / yScale));
229 CGContextClipToRect(context, destRect);
261 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/wince/
ImageBufferWinCE.cpp 48 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect);
61 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
63 m_data->m_bitmap->drawPattern(ctxt, tileRectIn, patternTransform, phase, styleColorSpace, op, destRect, size());
116 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect,
120 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale);
124 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
127 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
197 IntRect destRect(destPoint, sourceRect.size());
198 destRect.intersect(IntRect(0, 0, bitmap->width(), bitmap->height()));
200 if (destRect.isEmpty()
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/wx/
ImageBufferWx.cpp 107 void ImageBuffer::draw(GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect,
111 context->drawImage(imageCopy.get(), styleColorSpace, destRect, srcRect, op, useLowQualityScale);
115 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
118 imageCopy->drawPattern(context, srcRect, patternTransform, phase, styleColorSpace, op, destRect);
  /external/webkit/Source/WebCore/platform/graphics/
Image.cpp 108 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& scaledTileSize, ColorSpace styleColorSpace, CompositeOperator op)
111 fillWithSolidColor(ctxt, destRect, solidColor(), styleColorSpace, op);
125 oneTileRect.setX(destRect.x() + fmodf(fmodf(-srcPoint.x(), scaledTileSize.width()) - scaledTileSize.width(), scaledTileSize.width()));
126 oneTileRect.setY(destRect.y() + fmodf(fmodf(-srcPoint.y(), scaledTileSize.height()) - scaledTileSize.height(), scaledTileSize.height()));
130 if (oneTileRect.contains(destRect)) {
132 visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width());
133 visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height());
134 visibleSrcRect.setWidth(destRect.width() / scale.width());
135 visibleSrcRect.setHeight(destRect.height() / scale.height());
136 draw(ctxt, destRect, visibleSrcRect, styleColorSpace, op)
    [all...]
GeneratedImage.cpp 51 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator compositeOp, const FloatRect& destRect)
68 imageBuffer->drawPattern(context, adjustedSrcRect, patternTransform, phase, styleColorSpace, compositeOp, destRect);
GeneratedImage.h 62 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect);
FloatRect.cpp 196 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect)
201 float widthScale = destRect.width() / srcRect.width();
202 float heightScale = destRect.height() / srcRect.height();
203 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale,
204 destRect.y() + (r.y() - srcRect.y()) * heightScale,
ImageBuffer.h 108 void draw(GraphicsContext*, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect = FloatRect(0, 0, -1, -1),
111 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect);
ShadowBlur.cpp 750 FloatRect destRect = FloatRect(shadowBounds.x() + leftSlice, shadowBounds.y(), centerWidth, topSlice);
751 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect);
756 destRect.setY(shadowBounds.maxY() - bottomSlice);
757 destRect.setHeight(bottomSlice);
758 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect);
762 destRect = FloatRect(shadowBounds.x(), shadowBounds.y() + topSlice, leftSlice, centerHeight);
763 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect);
768 destRect.setX(shadowBounds.maxX() - rightSlice);
769 destRect.setWidth(rightSlice);
770 graphicsContext->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, destRect, tileRect)
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/chromium/
TransparencyWin.cpp 94 SkRect destRect;
95 destRect.fLeft = devices[i].x;
96 destRect.fTop = devices[i].y;
97 destRect.fRight = destRect.fLeft + srcBmp.width();
98 destRect.fBottom = destRect.fTop + srcBmp.height();
100 destCanvas.drawBitmapRect(srcBmp, 0, destRect);
438 SkRect destRect;
449 destRect.set(m_transformedSourceRect.x(), m_transformedSourceRect.y(), m_transformedSourceRect.maxX(), m_tr (…)
    [all...]
LayerTilerChromium.cpp 331 IntRect destRect(IntPoint(sourceRect.x() - anchor.x(), sourceRect.y() - anchor.y()), sourceRect.size());
332 if (destRect.x() < 0)
334 if (destRect.y() < 0)
343 if (paintOffset.x() + destRect.width() > paintRect.width())
345 if (paintOffset.y() + destRect.height() > paintRect.height())
354 for (int row = 0; row < destRect.height(); ++row)
355 memcpy(&m_tilePixels[destRect.width() * 4 * row],
357 destRect.width() * 4);
368 GLC(context, context->texSubImage2D(GraphicsContext3D::TEXTURE_2D, 0, destRect.x(), destRect.y(), destRect.width(), destRect.height(), GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYT (…)
    [all...]
  /frameworks/base/core/java/android/view/
FocusFinder.java 361 * Is destRect a candidate for the next focus given the direction? This
368 boolean isCandidate(Rect srcRect, Rect destRect, int direction) {
371 return (srcRect.right > destRect.right || srcRect.left >= destRect.right)
372 && srcRect.left > destRect.left;
374 return (srcRect.left < destRect.left || srcRect.right <= destRect.left)
375 && srcRect.right < destRect.right;
377 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom
    [all...]
FocusFinderHelper.java 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) {
45 return mFocusFinder.isCandidate(srcRect, destRect, direction);
  /external/webkit/Source/WebCore/platform/graphics/skia/
ImageSkia.cpp 166 static void drawResampledBitmap(SkCanvas& canvas, SkPaint& paint, const NativeImageSkia& bitmap, const SkIRect& srcIRect, const SkRect& destRect)
181 destRect.round(&destRectRounded);
185 // Apply forward transform to destRect to estimate required size of
189 canvas.getTotalMatrix().mapRect(&destRectTransformed, destRect);
196 canvas.drawBitmapRect(resampled, 0, destRect, &paint);
204 ClipRectToCanvas(canvas, destRect, &destBitmapSubsetSk);
207 destBitmapSubsetSk.offset(-destRect.fLeft, -destRect.fTop);
231 canvas.drawBitmapRect(resampled, 0, destRect, &paint);
250 destBitmapSubsetSkI.offset(destRect.fLeft, destRect.fTop)
    [all...]
SkiaUtils.h 69 // srcRect and destRect can be the same.
70 void ClipRectToCanvas(const SkCanvas&, const SkRect& srcRect, SkRect* destRect);
SkiaUtils.cpp 163 void IntersectRectAndRegion(const SkRegion& region, const SkRect& srcRect, SkRect* destRect) {
172 destRect->setEmpty();
184 destRect->set(currentVisibleRect);
187 void ClipRectToCanvas(const SkCanvas& canvas, const SkRect& srcRect, SkRect* destRect) {
200 inverseTransform.mapRect(destRect, transformedDest);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
IconFactory.java 83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight);
106 canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint());
  /frameworks/base/media/java/android/media/videoeditor/
VideoEditor.java 234 final Rect destRect;
238 destRect = new Rect(0, 0, overlayCanvas.getWidth(),
270 destRect = new Rect(left, top, right, bottom);
301 destRect = new Rect(0, 0, overlayCanvas.getWidth(), overlayCanvas.getHeight());
311 overlayCanvas.drawBitmap(mOverlayBitmap, srcRect, destRect, sResizePaint);
  /external/webkit/Source/WebCore/rendering/svg/
RenderSVGImage.cpp 126 FloatRect destRect = m_objectBoundingBox;
131 imageElement->preserveAspectRatio().transformRect(destRect, srcRect);
133 childPaintInfo.context->drawImage(image.get(), ColorSpaceDeviceRGB, destRect, srcRect);

Completed in 310 milliseconds

1 2 3