Searched refs:normSrcRect (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/ |
D | NativeImageSkia.cpp | 406 FloatRect normSrcRect = floatSrcRect; in drawPattern() local 407 normSrcRect.intersect(FloatRect(0, 0, bitmap().width(), bitmap().height())); in drawPattern() 408 if (destRect.isEmpty() || normSrcRect.isEmpty()) in drawPattern() 420 totalMatrix.mapRect(&destRectTarget, normSrcRect); in drawPattern() 430 …resampling = computeResamplingMode(totalMatrix, normSrcRect.width(), normSrcRect.height(), destBit… in drawPattern() 443 float scaleX = destBitmapWidth / normSrcRect.width(); in drawPattern() 444 float scaleY = destBitmapHeight / normSrcRect.height(); in drawPattern() 451 … SkBitmap resampled = extractScaledImageFragment(normSrcRect, scaleX, scaleY, &scaledSrcRect); in drawPattern() 470 bitmap().extractSubset(&srcSubset, enclosingIntRect(normSrcRect)); in drawPattern() 488 float adjustedX = phase.x() + normSrcRect.x() * scale.width(); in drawPattern() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | BitmapImage.cpp | 267 FloatRect normSrcRect = adjustForNegativeSize(srcRect); in draw() local 268 normSrcRect.intersect(FloatRect(0, 0, bm->bitmap().width(), bm->bitmap().height())); in draw() 270 if (normSrcRect.isEmpty() || normDstRect.isEmpty()) in draw() 294 … bm->draw(ctxt, normSrcRect, normDstRect, WebCoreCompositeToSkiaComposite(compositeOp, blendMode)); in draw()
|