Home
last modified time | relevance | path

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

/external/skia/src/effects/
DSkMergeImageFilter.cpp39 fModes = SkTCast<uint8_t*>(fStorage); in initAllocModes()
41 fModes = SkTCast<uint8_t*>(sk_malloc_throw(size)); in initAllocModes()
70 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.h427 template <typename Dst> Dst SkTCast(const void* ptr) { in SkTCast() function
/external/skia/src/utils/
DSkCamera.cpp221 SkScalar dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&fZenith), axis); in doUpdate()
227 SkTCast<SkPoint3D*>(&zenith)->normalize(&zenith); in doUpdate()
279 dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&diff), in patchToMatrix()
280 *SkTCast<const SkUnit3D*>(SkTCast<const SkScalar*>(&fOrientation) + 6)); in patchToMatrix()
/external/skia/include/private/
DGrSwizzle.h41 uint32_t* asUIntPtr() { return SkTCast<uint32_t*>(fSwiz); } in asUIntPtr()
42 uint32_t asUInt() const { return *SkTCast<const uint32_t*>(fSwiz); } in asUInt()
DSkFloatingPoint.h103 #define SK_FloatNaN (*SkTCast<const float*>(&kIEEENotANumber))
/external/skia/tests/
DPointTest.cpp17 const SkScalar* pPtr = SkTCast<const SkScalar*>(&p); in test_casts()
18 const SkScalar* rPtr = SkTCast<const SkScalar*>(&r); in test_casts()
DRectangleTextureTest.cpp58 uint8_t* expectedBytes0 = SkTCast<uint8_t*>(&expectedColor0); in test_clear()
73 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/bench/
DRectBench.cpp186 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); in onDraw()
264 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); in onDraw()
DMathBench.cpp79 uint32_t* d = SkTCast<uint32_t*>(dst); in performTest()
80 const uint32_t* s = SkTCast<const uint32_t*>(src); in performTest()
/external/skia/src/core/
DSkTLList.h53 SkTCast<T*>(node->fObj)->~T(); in ~SkTLList()
266 SkTCast<T*>(node->fObj)->~T(); in removeNode()
DSkBitmapProcState.cpp71 matrix.mapPoints(SkTCast<SkPoint*>(&dst), in just_trans_clamp()
72 SkTCast<const SkPoint*>(&src), in just_trans_clamp()
DSkScan_AntiPath.cpp496 while (SkTCast<intptr_t>(alpha) & 0x3) { in add_aa_span()
DSkDraw.cpp760 return SkTCast<const SkPoint*>(&r); in rect_points()
764 return SkTCast<SkPoint*>(&r); in rect_points()
/external/skia/src/gpu/
DGrProgramDesc.cpp81 uint16_t* k16 = SkTCast<uint16_t*>(b->add32n(word32Count)); in add_sampler_and_image_keys()