Home
last modified time | relevance | path

Searched refs:SkToU16 (Results 1 – 25 of 36) sorted by relevance

12

/external/skia/src/effects/
DSkPaintFlagsDrawFilter.cpp13 fClearFlags = SkToU16(clearFlags & SkPaint::kAllFlags); in SkPaintFlagsDrawFilter()
14 fSetFlags = SkToU16(setFlags & SkPaint::kAllFlags); in SkPaintFlagsDrawFilter()
DSkEmbossMask.cpp64 uint16_t value = SkToU16((1 << 15) / SkSqrt32(dx * dx + dy * dy + kDelta*kDelta/4)); in SkEmbossMask_BuildTable()
/external/skia/src/animator/
DSkTypedArray.cpp65 fReserve = fCount = SkToU16(count); in SkDS32Array()
148 fReserve = SkToU16((U16CPU)size); in growBy()
150 fCount = SkToU16(fCount + extra); in growBy()
DSkTDArray_Experimental.h59 fCount = SkToU16(fCount - count);
85 fCount = SkToU16(count); in setCount()
DSkBoundable.h25 void clearBounds() { fBounds.fLeft = (int16_t) SkToU16(0x8000); }; // mark bounds as unset in clearBounds()
DSkScript2.h193 : fOffset(SkToU16(offset)), fOpStackDepth(depth), fOperator(op) in Branch()
/external/skia/src/core/
DSkUtils.cpp242 dst[0] = SkToU16((0xD800 - 64) + (uni >> 10)); in SkUTF16_FromUnichar()
243 dst[1] = SkToU16(0xDC00 | (uni & 0x3FF)); in SkUTF16_FromUnichar()
248 dst[0] = SkToU16(uni); in SkUTF16_FromUnichar()
DSkScalerContext.cpp163 glyph->fWidth = SkToU16(mask.fBounds.width()); in getMetrics()
164 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics()
177 glyph->fWidth = SkToU16(ir.width()); in getMetrics()
178 glyph->fHeight = SkToU16(ir.height()); in getMetrics()
218 glyph->fWidth = SkToU16(dst.fBounds.width()); in getMetrics()
219 glyph->fHeight = SkToU16(dst.fBounds.height()); in getMetrics()
DSkDebug.cpp29 uint16_t SkToU16(uintmax_t x) { in SkToU16() function
DSkPixmap.cpp117 return SkToU16(pixel); in pack_8888_to_4444()
DSkMetaData.cpp128 rec->fDataCount = SkToU16(count); in set()
/external/skia/src/views/
DSkProgressView.cpp34 fMax = SkToU16(max); in setMax()
54 fValue = SkToU16(value); in setValue()
DSkEventSink.cpp114 fExtra16 = SkToU16(count); in SkListenersTagList()
195 list->fExtra16 = SkToU16(count - 1); in removeListenerID()
/external/skia/src/fonts/
DSkRandomScalerContext.cpp118 glyph->fWidth = SkToU16(ir.width()); in generateMetrics()
119 glyph->fHeight = SkToU16(ir.height()); in generateMetrics()
DSkTestScalerContext.cpp151 info->fLastGlyphID = SkToU16(onCountGlyphs() - 1); in onGetAdvancedTypefaceMetrics()
/external/skia/include/gpu/
DGrResourceKey.h89 SkASSERT(SkToU16(size) == size); in Builder()
90 SkASSERT(SkToU16(domain) == domain); in Builder()
/external/skia/src/gpu/vk/
DGrVkProgramDesc.cpp33 k16[i] = SkToU16(caps.configTextureSwizzle(texture->config()).asKey()); in add_texture_key()
/external/skia/src/gpu/gl/
DGrGLProgramDesc.cpp45 k16[i] = SkToU16(caps.configTextureSwizzle(texture->config()).asKey() | in add_texture_key()
/external/skia/include/core/
DSkTypes.h263 SK_API uint16_t SkToU16(uintmax_t);
273 #define SkToU16(x) ((uint16_t)(x)) macro
DSkColorPriv.h255 return SkToU16((r << SK_R16_SHIFT) | (g << SK_G16_SHIFT) | (b << SK_B16_SHIFT)); in SkPackRGB16()
623 #define SkPixel32ToPixel16_ToU16(src) SkToU16(SkPixel32ToPixel16(src))
701 SkASSERT(src == SkToU16(src)); in SkPixel16ToPixel32()
716 SkASSERT(src == SkToU16(src)); in SkPixel16ToColor()
/external/skia/src/gpu/
DGrClipMaskManager.cpp587 builder[1] = SkToU16(bounds.fLeft) | (SkToU16(bounds.fRight) << 16); in GetClipMaskKey()
588 builder[2] = SkToU16(bounds.fTop) | (SkToU16(bounds.fBottom) << 16); in GetClipMaskKey()
/external/skia/src/ports/
DSkFontHost_FreeType.cpp989 return SkToU16(FT_Get_Char_Index( fFace, uni )); in generateCharToGlyph()
1146 glyph->fWidth = SkToU16(SkFDot6Floor(bbox.xMax - bbox.xMin)); in generateMetrics()
1147 glyph->fHeight = SkToU16(SkFDot6Floor(bbox.yMax - bbox.yMin)); in generateMetrics()
1169 glyph->fWidth = SkToU16(fFace->glyph->bitmap.width); in generateMetrics()
1170 glyph->fHeight = SkToU16(fFace->glyph->bitmap.rows); in generateMetrics()
1506 glyphs[i] = SkToU16(id); in onCharsToGlyphs()
DSkScalerContext_win_dw.cpp453 glyph->fWidth = SkToU16(bbox.right - bbox.left); in glyph_check_and_set_bounds()
454 glyph->fHeight = SkToU16(bbox.bottom - bbox.top); in glyph_check_and_set_bounds()
/external/skia/src/sfnt/
DSkOTUtils.cpp132 nameRecords[i].length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(wchar_t))); in RenameFont()
/external/skia/src/opts/
DSkBitmapProcState_matrixProcs_neon.cpp181 *xx++ = SkToU16(fx >> 16); fx += dx; in decal_nofilter_scale_neon()

12