/external/skia/src/core/ |
H A D | SkBlitRow_D32.cpp | 193 void SkBlitRow::ColorRect32(SkPMColor* dst, int width, int height, argument 195 if (width <= 0 || height <= 0 || 0 == color) { 206 if (!isOpaque || width >= MIN_WIDTH_FOR_SCANLINE_PROC) { 209 (*proc)(dst, dst, width, color); 213 switch (width) { 234 assignLoop(dst, color, width);
|
H A D | SkBlitter.cpp | 39 void SkBlitter::blitH(int x, int y, int width) { argument 62 void SkBlitter::blitRect(int x, int y, int width, int height) { argument 63 SkASSERT(width > 0); 65 this->blitH(x, y++, width); 72 void SkBlitter::blitAntiRect(int x, int y, int width, int height, argument 75 if (width > 0) { 76 this->blitRect(x, y, width, height); 77 x += width; 178 int width = clip.width(); local 234 blitH(int x, int y, int width) argument 241 blitRect(int x, int y, int width, int height) argument 254 int width = 0; local 277 blitH(int left, int y, int width) argument [all...] |
H A D | SkBlitter_A8.cpp | 28 void SkA8_Blitter::blitH(int x, int y, int width) { argument 30 (unsigned)(x + width) <= (unsigned)fDevice.width()); 39 memset(device, 0xFF, width); 44 for (int i = 0; i < width; i++) { 140 int width = clip.width(); local 147 for (int i = width - 1; i >= 0; --i) { 200 void SkA8_Blitter::blitRect(int x, int y, int width, int height) { argument 202 (unsigned)(x + width) < 239 int width = device.width(); local 249 blitH(int x, int y, int width) argument 330 int width = clip.width(); local 386 blitH(int x, int y, int width) argument 403 blitRect(int x, int y, int width, int height) argument 417 int width = clip.width(); local [all...] |
H A D | SkBlitter_ARGB32.cpp | 28 int width = clip.width(); local 35 proc(dstRow, srcRow, width, alpha); 72 void SkARGB32_Blitter::blitH(int x, int y, int width) { argument 73 SkASSERT(x >= 0 && y >= 0 && x + width <= fDevice.width()); 76 fColor32Proc(device, device, width, fPMColor); 206 void SkARGB32_Blitter::blitRect(int x, int y, int width, int height) { argument 207 SkASSERT(x >= 0 && y >= 0 && x + width <= fDevice.width() 318 blitH(int x, int y, int width) argument 336 blitRect(int x, int y, int width, int height) argument 512 const int width = clip.width(); local [all...] |
H A D | SkBlitter_RGB16.cpp | 56 virtual void blitH(int x, int y, int width); 60 virtual void blitRect(int x, int y, int width, int height); 83 virtual void blitH(int x, int y, int width); 87 virtual void blitRect(int x, int y, int width, int height); 113 virtual void blitH(int x, int y, int width); 116 virtual void blitRect(int x, int y, int width, int height); 135 virtual void blitH(int x, int y, int width); 138 virtual void blitRect(int x, int y, int width, int height); 149 virtual void blitH(int x, int y, int width); 214 unsigned width local 276 blitH(int x, int y, int width) argument 384 int width = clip.width(); local 489 blitRect(int x, int y, int width, int height) argument 565 blitH(int x, int y, int width) argument 634 int width = clip.width(); local 670 blitRect(int x, int y, int width, int height) argument 691 blitH(int x, int y, int width) argument 707 blitRect(int x, int y, int width, int height) argument 839 blitH(int x, int y, int width) argument 847 blitRect(int x, int y, int width, int height) argument 943 int width = device.width(); local 953 blitH(int x, int y, int width) argument [all...] |
H A D | SkBlitter_Sprite.cpp | 29 void SkSpriteBlitter::blitH(int x, int y, int width) { argument
|
H A D | SkCanvas.cpp | 144 int width = fDevice->width(); local 159 fClip.op(SkIRect::MakeWH(width, height), SkRegion::kIntersect_Op); 164 updateClip->op(SkIRect::MakeXYWH(x, y, width, height), 173 deviceR.set(0, 0, width, height); 470 SkCanvas::SkCanvas(int width, int height) argument 476 bitmap.setInfo(SkImageInfo::MakeUnknown(width, height)); 537 return d ? SkISize::Make(d->width(), d->height()) : SkISize::Make(0, 0); 547 return d ? SkISize::Make(d->width(), d->height()) : SkISize::Make(0, 0); 603 bounds.set(0, 0, device->width(), devic 2217 SkScalar width = 0; local [all...] |
H A D | SkConfig8888.cpp | 67 bool SkSrcPixelInfo::convertPixelsTo(SkDstPixelInfo* dst, int width, int height) const { argument 68 if (width <= 0 || height <= 0) { 112 proc(dstP, srcP, width);
|
H A D | SkDistanceFieldGen.cpp | 35 static bool found_edge(const unsigned char* imagePtr, int width, int neighborFlags) { argument 38 const int offsets[8] = {-1, 1, -width-1, -width, -width+1, width-1, width, width+1 }; 148 static void init_distances(DFData* data, unsigned char* edges, int width, int height) { argument 151 DFData* prevData = data - width; 152 DFData* nextData = data + width; 196 F1(DFData* curr, int width) argument 242 F2(DFData* curr, int width) argument 257 B1(DFData* curr, int width) argument 271 B2(DFData* curr, int width) argument 332 generate_distance_field_from_image(unsigned char* distanceField, const unsigned char* copyPtr, int width, int height) argument 462 SkGenerateDistanceFieldFromA8Image(unsigned char* distanceField, const unsigned char* image, int width, int height, int rowBytes) argument 490 SkGenerateDistanceFieldFromBWImage(unsigned char* distanceField, const unsigned char* image, int width, int height, int rowBytes) argument [all...] |
H A D | SkDraw.cpp | 243 const int widthBytes = rect.width() << shiftPerPixel; 261 devRect.set(0, 0, fBitmap->width(), fBitmap->height()); 452 SkScalar width = paint.getStrokeWidth(); local 453 if (0 == width) { 474 fRadius = SkScalarToFixed(SkScalarMul(width, sx)) >> 1; 591 SkScalar width = newPaint.getStrokeWidth(); local 592 SkScalar radius = SkScalarHalf(width); 617 r.fRight = r.fLeft + width; 618 r.fBottom = r.fTop + width; 756 const SkScalar width local 1206 clipped_out(const SkMatrix& matrix, const SkRasterClip& clip, int width, int height) argument [all...] |
H A D | SkFontHost.cpp | 63 SkFontStyle::SkFontStyle(int weight, int width, Slant slant) { argument 66 fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width); 220 SkFontStyle::Width width = SkFontStyle::kNormal_Width; 224 return SkFontStyle(weight, width, slant);
|
H A D | SkGlyph.h | 45 * Compute the rowbytes for the specified width and mask-format. 47 static unsigned ComputeRowBytes(unsigned width, SkMask::Format format) { argument 48 unsigned rb = width;
|
H A D | SkImageFilter.cpp | 185 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); 190 desc.fWidth = bounds.width(); 213 WrapTexture(resultTex, bounds.width(), bounds.height(), result); 263 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds->width(), bounds->height())); 320 void SkImageFilter::WrapTexture(GrTexture* texture, int width, int height, SkBitmap* result) { argument 321 SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
|
H A D | SkMaskFilter.cpp | 53 blitter->blitRect(r.left(), r.top(), r.width(), r.height()); 80 if (m.fBounds.width() > 0 && m.fBounds.height() > 0) { 90 if (m.fBounds.width() > 0 && m.fBounds.height() > 0) { 92 m.fBounds.offsetTo(outerR.right() - m.fBounds.width(), outerR.top()); 100 if (m.fBounds.width() > 0 && m.fBounds.height() > 0) { 110 if (m.fBounds.width() > 0 && m.fBounds.height() > 0) { 112 m.fBounds.offsetTo(outerR.right() - m.fBounds.width(), 126 const int innerW = innerR.width(); 138 int width = r.width(); local 151 int width = r.width(); local [all...] |
H A D | SkMatrix.cpp | 538 SkScalar tx, sx = dst.width() / src.width(); 557 diff = dst.width() - src.width() * sy; 1641 bool SkTreatAsSprite(const SkMatrix& mat, int width, int height, argument 1659 SkIRect isrc = { 0, 0, width, height };
|
H A D | SkMatrixUtils.h | 20 * Given a matrix and width/height, return true if the computed dst-rect would 25 * The src-rect is defined to be { 0, 0, width, height } 31 bool SkTreatAsSprite(const SkMatrix&, int width, int height, 39 int width, int height) { 40 return SkTreatAsSprite(matrix, width, height, kSkSubPixelBitsForBilerp); 38 SkTreatAsSpriteFilter(const SkMatrix& matrix, int width, int height) argument
|
H A D | SkMipMap.cpp | 21 if (x < src.width() - 1) { 31 if (x < src.width() - 1) { 59 if (x < src.width() - 1) { 69 if (x < src.width() - 1) { 94 if (x < src.width() - 1) { 104 if (x < src.width() - 1) { 152 int width = src.width(); local 155 width >>= 1; 157 if (0 == width || 175 int width = src.width(); local [all...] |
H A D | SkPaint.cpp | 352 void SkPaint::setStrokeWidth(SkScalar width) { argument 353 if (width >= 0) { 354 GEN_ID_INC_EVAL(width != fWidth); 355 fWidth = width; 1152 SkScalar width = 0; local 1157 width = paint.measure_text(cache, text, length, &tempCount, bounds); 1159 width = SkScalarMul(width, scale); 1171 return width; 1236 Sk48Dot16 width local 1983 GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, int* width, int* height) argument 2002 int width, height; local 2616 SkScalar width = SkScalarMul(fPaint.measure_text(fCache, text, length, local [all...] |
H A D | SkPicture.cpp | 133 SkPicture::SkPicture(int width, int height, argument 136 : fWidth(width) 337 SkPicture::SkPicture(SkPicturePlayback* playback, int width, int height) argument 339 , fWidth(width)
|
H A D | SkPictureRecorder.cpp | 28 SkCanvas* SkPictureRecorder::beginRecording(int width, int height, argument 32 fWidth = width; 35 const SkISize size = SkISize::Make(width, height); 38 SkAutoTUnref<SkBBoxHierarchy> tree((*bbhFactory)(width, height)); 49 SkCanvas* SkPictureRecorder::EXPERIMENTAL_beginRecording(int width, int height, argument 52 fWidth = width; 57 fRecorder = SkNEW_ARGS(SkRecorder, (fRecord, width, height));
|
H A D | SkReadBuffer.cpp | 195 const int width = this->readInt(); local 229 if (bitmap->width() == width && bitmap->height() == height) { 236 fDecodedBitmapIndex, width, height, length, xOffset, 240 // If the width and height match, there should be no offset. 246 // the recorded width and height must be smaller than or equal to 247 // the encoded width and height. 249 // sources encoder agree on the width and height which may not 252 //SkASSERT(width <= bitmap->width() [all...] |
H A D | SkRecorder.cpp | 11 // SkCanvas will fail in mysterious ways if it doesn't know the real width and height. 12 SkRecorder::SkRecorder(SkRecord* record, int width, int height) argument 13 : SkCanvas(width, height), fRecord(record) {}
|
H A D | SkRecording.cpp | 26 SkRecording::SkRecording(int width, int height) argument 28 , fRecorder(SkNEW_ARGS(SkRecorder, (fRecord.get(), width, height)))
|
H A D | SkRegion_path.cpp | 46 virtual void blitH(int x, int y, int width); 158 void SkRgnBuilder::blitH(int x, int y, int width) { argument 189 fCurrXPtr[-1] = (SkRegion::RunType)(x + width); 192 fCurrXPtr[1] = (SkRegion::RunType)(x + width);
|
H A D | SkScaledImageCache.cpp | 356 return SkIRect::MakeXYWH(origin.fX, origin.fY, bm.width(), bm.height()); 361 int32_t width, 365 SkIRect::MakeWH(width, height)); 433 int32_t width, 436 Key key(genID, SK_Scalar1, SK_Scalar1, SkIRect::MakeWH(width, height)); 713 int32_t width, 717 return get_cache()->findAndLock(pixelGenerationID, width, height, scaled); 722 int32_t width, 726 return get_cache()->addAndLock(pixelGenerationID, width, height, scaled); 360 findAndLock(uint32_t genID, int32_t width, int32_t height, SkBitmap* bitmap) argument 432 addAndLock(uint32_t genID, int32_t width, int32_t height, const SkBitmap& bitmap) argument 711 FindAndLock( uint32_t pixelGenerationID, int32_t width, int32_t height, SkBitmap* scaled) argument 720 AddAndLock( uint32_t pixelGenerationID, int32_t width, int32_t height, const SkBitmap& scaled) argument
|