Home
last modified time | relevance | path

Searched refs:skstd (Results 1 – 25 of 170) sorted by relevance

1234567

/external/skqp/include/private/
DSkTLogic.h23 namespace skstd {
66 template <typename T> using underlying_type_t = typename skstd::underlying_type<T>::type;
77 struct make_index_sequence_combine<skstd::index_sequence<I1...>, skstd::index_sequence<I2...>>
78 : skstd::index_sequence<I1..., (sizeof...(I1)+I2)...>
82 : make_index_sequence_combine<typename skstd::make_index_sequence< N/2>::type,
83 typename skstd::make_index_sequence<N - N/2>::type>{};
84 template<> struct make_index_sequence<0> : skstd::index_sequence< >{};
85 template<> struct make_index_sequence<1> : skstd::index_sequence<0>{};
97 using type = skstd::conditional_t<std::is_const<S>::value, skstd::add_const_t<D>, D>;
102 using type = skstd::conditional_t<std::is_volatile<S>::value, skstd::add_volatile_t<D>, D>;
[all …]
DSkBitmaskEnum.h12 namespace skstd {
16 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E) operator|(E l, E r) {
17 using U = skstd::underlying_type_t<E>;
21 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E&) operator|=(E& l, E r) {
25 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E) operator&(E l, E r) { in SK_WHEN()
26 using U = skstd::underlying_type_t<E>; in SK_WHEN()
30 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E&) operator&=(E& l, E r) { in SK_WHEN()
DSkTemplates.h439 constexpr auto SkMakeArrayFromIndexSequence(C c, skstd::index_sequence<Is...>)
440 -> std::array<skstd::result_of_t<C(std::size_t)>, sizeof...(Is)> {
445 -> std::array<skstd::result_of_t<C(std::size_t)>, N> {
446 return SkMakeArrayFromIndexSequence(c, skstd::make_index_sequence<N>{});
/external/skia/include/private/
DSkTLogic.h23 namespace skstd {
55 struct make_index_sequence_combine<skstd::index_sequence<I1...>, skstd::index_sequence<I2...>>
56 : skstd::index_sequence<I1..., (sizeof...(I1)+I2)...>
60 : make_index_sequence_combine<typename skstd::make_index_sequence< N/2>::type,
61 typename skstd::make_index_sequence<N - N/2>::type>{};
62 template<> struct make_index_sequence<0> : skstd::index_sequence< >{};
63 template<> struct make_index_sequence<1> : skstd::index_sequence<0>{};
75 using type = skstd::conditional_t<std::is_const<S>::value, skstd::add_const_t<D>, D>;
80 using type = skstd::conditional_t<std::is_volatile<S>::value, skstd::add_volatile_t<D>, D>;
92 template <typename D, typename S> using same_const = copy_const<skstd::remove_const_t<D>, S>;
[all …]
DSkBitmaskEnum.h12 namespace skstd {
16 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E) operator|(E l, E r) {
21 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E&) operator|=(E& l, E r) {
25 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E) operator&(E l, E r) { in SK_WHEN()
30 template <typename E> SK_WHEN(skstd::is_bitmask_enum<E>::value, E&) operator&=(E& l, E r) { in SK_WHEN()
DSkTemplates.h439 constexpr auto SkMakeArrayFromIndexSequence(C c, skstd::index_sequence<Is...>)
440 -> std::array<skstd::result_of_t<C(std::size_t)>, sizeof...(Is)> {
445 -> std::array<skstd::result_of_t<C(std::size_t)>, N> {
446 return SkMakeArrayFromIndexSequence(c, skstd::make_index_sequence<N>{});
/external/skqp/tests/
DVptrTest.cpp36 std::unique_ptr<Base> a = skstd::make_unique<SubclassA>(21), in DEF_TEST()
37 b = skstd::make_unique<SubclassB>(), in DEF_TEST()
38 c = skstd::make_unique<SubclassA>(22), in DEF_TEST()
39 d = skstd::make_unique<SubclassB>(); in DEF_TEST()
DStreamBufferTest.cpp98 { [&data]() { return skstd::make_unique<SkMemoryStream>(data); }, false }, in DEF_TEST()
99 { [&data]() { return skstd::make_unique<NotAssetMemStream>(data); }, false }, in DEF_TEST()
102 : skstd::make_unique<SkFILEStream>(path.c_str()); }, true }, in DEF_TEST()
115 auto halting = skstd::make_unique<HaltingStream>(data, 6); in DEF_TEST()
/external/skia/tests/
DVptrTest.cpp36 std::unique_ptr<Base> a = skstd::make_unique<SubclassA>(21), in DEF_TEST()
37 b = skstd::make_unique<SubclassB>(), in DEF_TEST()
38 c = skstd::make_unique<SubclassA>(22), in DEF_TEST()
39 d = skstd::make_unique<SubclassB>(); in DEF_TEST()
DStreamBufferTest.cpp98 { [&data]() { return skstd::make_unique<SkMemoryStream>(data); }, false }, in DEF_TEST()
99 { [&data]() { return skstd::make_unique<NotAssetMemStream>(data); }, false }, in DEF_TEST()
102 : skstd::make_unique<SkFILEStream>(path.c_str()); }, true }, in DEF_TEST()
115 auto halting = skstd::make_unique<HaltingStream>(data, 6); in DEF_TEST()
/external/skia/src/utils/mac/
DSkUniqueCFRef.h21 std::unique_ptr<skstd::remove_pointer_t<CFRef>,
22 SkFunctionWrapper<void, skstd::remove_pointer_t<CFTypeRef>, CFRelease>>;
/external/skqp/src/utils/mac/
DSkUniqueCFRef.h21 std::unique_ptr<skstd::remove_pointer_t<CFRef>,
22 SkFunctionWrapper<void, skstd::remove_pointer_t<CFTypeRef>, CFRelease>>;
/external/skia/src/svg/
DSkSVGCanvas.cpp17 auto svgDevice = SkSVGDevice::Make(size, skstd::make_unique<SkXMLStreamWriter>(writer)); in Make()
19 return svgDevice ? skstd::make_unique<SkCanvas>(svgDevice) in Make()
/external/skia/src/gpu/ccpr/
DGrCCCoverageProcessor.cpp209 shader = skstd::make_unique<TriangleShader>(); in createGLSLInstance()
212 shader = skstd::make_unique<GrCCQuadraticShader>(); in createGLSLInstance()
215 shader = skstd::make_unique<GrCCCubicShader>(); in createGLSLInstance()
218 shader = skstd::make_unique<GrCCConicShader>(); in createGLSLInstance()
DGrCCAtlas.cpp77 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas()
137 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect()
141 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), left, 0, fWidth, fHeight); in internalPlaceRect()
/external/skqp/src/gpu/ccpr/
DGrCCCoverageProcessor.cpp206 shader = skstd::make_unique<TriangleShader>(); in createGLSLInstance()
209 shader = skstd::make_unique<GrCCQuadraticShader>(); in createGLSLInstance()
212 shader = skstd::make_unique<GrCCCubicShader>(); in createGLSLInstance()
215 shader = skstd::make_unique<GrCCConicShader>(); in createGLSLInstance()
DGrCCAtlas.cpp76 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas()
136 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect()
140 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), left, 0, fWidth, fHeight); in internalPlaceRect()
/external/skqp/src/ports/
DSkFontMgr_FontConfigInterface.cpp38 return skstd::make_unique<SkFontData>(*fFontData); in onMakeFontData()
42 return skstd::make_unique<SkFontData>(std::unique_ptr<SkStreamAsset>(fFCI->openStream(id)), in onMakeFontData()
252 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex()
282 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs()
DSkFontMgr_custom_embedded.cpp51 auto stream = skstd::make_unique<SkMemoryStream>(data, size, false); in load_embedded_font()
75 auto data = skstd::make_unique<SkFontData>(std::move(stream), faceIndex, nullptr, 0); in load_embedded_font()
DSkFontMgr_android.cpp81 return data ? skstd::make_unique<SkMemoryStream>(std::move(data)) : nullptr; in makeStream()
98 return skstd::make_unique<SkFontData>(this->makeStream(), fIndex, in onMakeFontData()
152 return skstd::make_unique<SkFontData>(*fData); in onMakeFontData()
466 auto data = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex()
488 auto data = skstd::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in onMakeFromStreamArgs()
/external/skia/src/ports/
DSkFontMgr_FontConfigInterface.cpp38 return skstd::make_unique<SkFontData>(*fFontData); in onMakeFontData()
42 return skstd::make_unique<SkFontData>(std::unique_ptr<SkStreamAsset>(fFCI->openStream(id)), in onMakeFontData()
251 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex()
281 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs()
DSkFontMgr_custom_embedded.cpp51 auto stream = skstd::make_unique<SkMemoryStream>(data, size, false); in load_embedded_font()
75 auto data = skstd::make_unique<SkFontData>(std::move(stream), faceIndex, nullptr, 0); in load_embedded_font()
DSkFontMgr_android.cpp81 return data ? skstd::make_unique<SkMemoryStream>(std::move(data)) : nullptr; in makeStream()
98 return skstd::make_unique<SkFontData>(this->makeStream(), fIndex, in onMakeFontData()
152 return skstd::make_unique<SkFontData>(*fData); in onMakeFontData()
466 auto data = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex()
488 auto data = skstd::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in onMakeFromStreamArgs()
/external/skia/src/core/
DSkExecutor.cpp136 return skstd::make_unique<SkThreadPool<WorkList>>(threads > 0 ? threads : num_cores()); in MakeFIFOThreadPool()
140 return skstd::make_unique<SkThreadPool<WorkList>>(threads > 0 ? threads : num_cores()); in MakeLIFOThreadPool()
/external/skqp/src/core/
DSkExecutor.cpp136 return skstd::make_unique<SkThreadPool<WorkList>>(threads > 0 ? threads : num_cores()); in MakeFIFOThreadPool()
140 return skstd::make_unique<SkThreadPool<WorkList>>(threads > 0 ? threads : num_cores()); in MakeLIFOThreadPool()

1234567