Home
last modified time | relevance | path

Searched refs:SkTCast (Results 1 – 17 of 17) sorted by relevance

/external/skia/include/private/
DSkFloatingPoint.h126 #define SK_FloatNaN (*SkTCast<const float*>(&gIEEENotANumber))
127 #define SK_FloatInfinity (*SkTCast<const float*>(&gIEEEInfinity))
128 #define SK_FloatNegativeInfinity (*SkTCast<const float*>(&gIEEENegativeInfinity))
132 int i = *SkTCast<int*>(&x); in sk_float_rsqrt_portable()
134 float estimate = *SkTCast<float*>(&i); in sk_float_rsqrt_portable()
/external/skia/src/effects/
DSkMergeImageFilter.cpp22 fModes = SkTCast<uint8_t*>(fStorage); in initAllocModes()
24 fModes = SkTCast<uint8_t*>(sk_malloc_throw(size)); in initAllocModes()
53 if (fModes != SkTCast<uint8_t*>(fStorage)) { in ~SkMergeImageFilter()
/external/skia/include/core/
DSkTLazy.h54 fPtr = new (SkTCast<T*>(fStorage.get())) T(std::forward<Args>(args)...); in init()
68 fPtr = new (SkTCast<T*>(fStorage.get())) T(src); in set()
DSkTypes.h465 template <typename Dst> Dst SkTCast(const void* ptr) { in SkTCast() function
/external/skia/src/gpu/
DGrSwizzle.h146 uint32_t* asUIntPtr() { return SkTCast<uint32_t*>(fSwiz); } in asUIntPtr()
147 uint32_t asUInt() const { return *SkTCast<const uint32_t*>(fSwiz); } in asUInt()
/external/skia/src/utils/
DSkCamera.cpp220 SkScalar dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&fZenith), axis); in doUpdate()
226 SkTCast<SkPoint3D*>(&zenith)->normalize(&zenith); in doUpdate()
264 dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&diff), in patchToMatrix()
265 *SkTCast<const SkUnit3D*>(SkTCast<const SkScalar*>(&fOrientation) + 6)); in patchToMatrix()
/external/skia/bench/
DMathBench.cpp77 uint32_t* d = SkTCast<uint32_t*>(dst); in performTest()
78 const uint32_t* s = SkTCast<const uint32_t*>(src); in performTest()
129 uint32_t i = *SkTCast<uint32_t*>(&x); in SkFastInvSqrt()
131 x = *SkTCast<float*>(&i); in SkFastInvSqrt()
DRectBench.cpp191 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); in onDraw()
268 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); in onDraw()
/external/skia/tests/
DPointTest.cpp18 const SkScalar* pPtr = SkTCast<const SkScalar*>(&p); in test_casts()
19 const SkScalar* rPtr = SkTCast<const SkScalar*>(&r); in test_casts()
DRectangleTextureTest.cpp109 uint8_t* expectedBytes0 = SkTCast<uint8_t*>(&expectedColor0); in test_clear()
124 uint8_t* expectedBytes1 = SkTCast<uint8_t*>(&expectedColor1); in test_clear()
DMatrixTest.cpp40 int aValI = *SkTCast<int*>(&aVal); in are_equal()
41 int bValI = *SkTCast<int*>(&bVal); in are_equal()
54 int aValI = *SkTCast<int*>(&aVal); in are_equal()
55 int bValI = *SkTCast<int*>(&bVal); in are_equal()
/external/skia/src/core/
DSkTLList.h55 SkTCast<T*>(node->fObj)->~T(); in ~SkTLList()
253 SkTCast<T*>(node->fObj)->~T(); in removeNode()
DSkBitmapProcState.cpp82 matrix.mapPoints(SkTCast<SkPoint*>(&dst), in just_trans_clamp()
83 SkTCast<const SkPoint*>(&src), in just_trans_clamp()
DSkScan_AntiPath.cpp498 while (SkTCast<intptr_t>(alpha) & 0x3) { in add_aa_span()
DSkDraw.cpp791 return SkTCast<const SkPoint*>(&r); in rect_points()
795 return SkTCast<SkPoint*>(&r); in rect_points()
/external/skia/src/gpu/vk/
DGrVkProgramDesc.cpp29 uint16_t* k16 = SkTCast<uint16_t*>(b->add32n(word32Count)); in add_texture_key()
/external/skia/src/gpu/gl/
DGrGLProgramDesc.cpp41 uint16_t* k16 = SkTCast<uint16_t*>(b->add32n(word32Count)); in add_texture_key()