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

1 2

  /external/chromium_org/third_party/WebKit/Source/platform/graphics/
GradientGeneratedImage.cpp 34 void GradientGeneratedImage::draw(GraphicsContext* destContext, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode)
38 destContext->clip(destRect);
39 destContext->translate(destRect.x(), destRect.y());
40 if (destRect.size() != srcRect.size())
41 destContext->scale(FloatSize(destRect.width() / srcRect.width(), destRect.height() / srcRect.height()));
48 const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing)
52 int firstColumn = static_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect.x()) / srcRect.width()));
53 int firstRow = static_cast<int>(floorf((((destRect.y() - phase.y()) / scale.height()) - srcRect.y()) / srcRect.height()))
    [all...]
Image.cpp 124 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& scaledTileSize, CompositeOperator op, blink::WebBlendMode blendMode, const IntSize& repeatSpacing)
127 fillWithSolidColor(ctxt, destRect, solidColor(), op);
145 oneTileRect.setX(destRect.x() + fmodf(fmodf(-srcPoint.x(), actualTileSize.width()) - actualTileSize.width(), actualTileSize.width()));
146 oneTileRect.setY(destRect.y() + fmodf(fmodf(-srcPoint.y(), actualTileSize.height()) - actualTileSize.height(), actualTileSize.height()));
150 if (oneTileRect.contains(destRect)) {
152 visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width());
153 visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height());
154 visibleSrcRect.setWidth(destRect.width() / scale.width());
155 visibleSrcRect.setHeight(destRect.height() / scale.height());
156 draw(ctxt, destRect, visibleSrcRect, op, blendMode)
    [all...]
GraphicsContext.h 250 void drawImage(Image*, const FloatRect& destRect);
251 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotRespectImageOrientation, bool useLowQualityScale = false);
252 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespectImageOrientation, bool useLowQualityScale = false);
254 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoint, const IntSize& tileSize,
256 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect,
263 void drawImageBuffer(ImageBuffer*, const IntRect& destRect, const IntRect& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal, bool useLowQualityScale = false);
264 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect);
265 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal, bool useLowQualityScale = false);
ImageBuffer.cpp 185 void ImageBuffer::draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect& srcRect,
193 context->drawImage(image.get(), destRect, srcRect, op, blendMode, DoNotRespectImageOrientation, useLowQualityScale);
204 const FloatPoint& phase, CompositeOperator op, const FloatRect& destRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing)
211 image->drawPattern(context, srcRect, scale, phase, op, destRect, blendMode, repeatSpacing);
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGPreserveAspectRatio.cpp 184 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect)
190 float origDestWidth = destRect.width();
191 float origDestHeight = destRect.height();
198 destRect.setHeight(origDestWidth * widthToHeightMultiplier);
203 destRect.setY(destRect.y() + origDestHeight / 2 - destRect.height() / 2);
208 destRect.setY(destRect.y() + origDestHeight - destRect.height())
    [all...]
SVGPreserveAspectRatio.h 63 void transformRect(FloatRect& destRect, FloatRect& srcRect);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
LetterTileDrawable.java 117 final Rect destRect = copyBounds();
120 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2);
122 destRect.set(destRect.centerX() - halfLength,
123 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()),
124 destRect.centerX() + halfLength,
125 (int) (destRect.centerY() + halfLength + mOffset * destRect.height()))
    [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/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
NativeImageSkia.h 129 void draw(GraphicsContext*, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode>) const;
136 const FloatRect& destRect,
178 void drawResampledBitmap(GraphicsContext*, SkPaint&, const SkRect& srcRect, const SkRect& destRect) const;
NativeImageSkia.cpp 223 void NativeImageSkia::drawResampledBitmap(GraphicsContext* context, SkPaint& paint, const SkRect& srcRect, const SkRect& destRect) const
226 // We want to scale |destRect| with transformation in the canvas to obtain
228 // in canvas and explicit scaling (srcRect and destRect).
230 context->getTotalMatrix().mapRect(&screenRect, destRect);
236 ClipRectToCanvas(context, destRect, &destRectVisibleSubset);
239 // original destRect. Intersecting gets us back inside.
240 if (!destRectVisibleSubset.intersect(destRect))
241 return; // Nothing visible in destRect.
246 destToSrcTransform.setRectToRect(destRect, srcRect, SkMatrix::kFill_ScaleToFit);
320 void NativeImageSkia::draw(GraphicsContext* context, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode> compOp) cons
    [all...]
SkiaUtils.h 85 // srcRect and destRect can be the same.
86 void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* destRect);
SkiaUtils.cpp 131 void ClipRectToCanvas(const GraphicsContext* context, const SkRect& srcRect, SkRect* destRect)
133 if (!context->getClipBounds(destRect) || !destRect->intersect(srcRect))
134 destRect->setEmpty();
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/win/
TransparencyWin.cpp 84 SkRect destRect;
85 destRect.fLeft = devices[i].x;
86 destRect.fTop = devices[i].y;
87 destRect.fRight = destRect.fLeft + srcBmp.width();
88 destRect.fBottom = destRect.fTop + srcBmp.height();
90 destCanvas.drawBitmapRect(srcBmp, 0, destRect);
434 SkRect destRect;
445 destRect.set(m_transformedSourceRect.x(), m_transformedSourceRect.y(), m_transformedSourceRect.maxX(), m_tr (…)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/
SVGFEImage.cpp 103 FloatRect destRect = filter()->absoluteTransform().mapRect(filterPrimitiveSubregion());
110 m_preserveAspectRatio.transformRect(destRect, srcRect);
114 destRect.move(-paintLocation.x(), -paintLocation.y());
128 resultImage->context()->concatCTM(makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), destRect));
139 resultImage->context()->drawImage(m_image.get(), destRect, srcRect);
  /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(Paint.FILTER_BITMAP_FLAG));
  /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);
OverlayFrame.java 345 final Rect destRect;
350 destRect = new Rect(0, 0, overlayCanvas.getWidth(),
382 destRect = new Rect(left, top, right, bottom);
413 destRect = new Rect(0, 0, overlayCanvas.getWidth(), overlayCanvas.getHeight());
422 overlayCanvas.drawBitmap(overlayBitmap, srcRect, destRect, sResizePaint);
  /external/chromium_org/third_party/WebKit/Source/core/platform/
DragImage.cpp 86 FloatRect destRect(FloatPoint(), sizeRespectingOrientation);
88 destRect = destRect.transposedRect();
98 canvas.drawBitmapRect(bitmap->bitmap(), 0, destRect);
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
RenderSVGImage.cpp 161 FloatRect destRect = m_objectBoundingBox;
165 imageElement->preserveAspectRatioCurrentValue().transformRect(destRect, srcRect);
169 useLowQualityScaling = ImageQualityController::imageQualityController()->shouldPaintAtLowQuality(paintInfo.context, this, image.get(), image.get(), LayoutSize(destRect.size()));
171 paintInfo.context->drawImage(image.get(), destRect, srcRect, CompositeSourceOver, DoNotRespectImageOrientation, useLowQualityScaling);
  /external/chromium_org/third_party/WebKit/Source/platform/geometry/
FloatRect.cpp 257 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect)
262 float widthScale = destRect.width() / srcRect.width();
263 float heightScale = destRect.height() / srcRect.height();
264 return FloatRect(destRect.x() + (r.x() - srcRect.x()) * widthScale,
265 destRect.y() + (r.y() - srcRect.y()) * heightScale,
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLVideoElement.cpp 184 void HTMLVideoElement::paintCurrentFrameInContext(GraphicsContext* context, const IntRect& destRect)
189 player->paint(context, destRect);
HTMLCanvasElement.cpp 210 FloatRect destRect = ro->contentBoxRect();
211 FloatRect r = mapRect(rect, FloatRect(0, 0, size().width(), size().height()), destRect);
212 r.intersect(destRect);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterTinyPlanet.java 144 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale);
145 paddedCanvas.drawBitmap(bitmapIn, null, destRect, null);
  /external/chromium_org/third_party/angle/src/libGLESv2/
Context.cpp     [all...]

Completed in 621 milliseconds

1 2