Home
last modified time | relevance | path

Searched refs:sk_make_sp (Results 1 – 25 of 165) sorted by relevance

1234567

/third_party/skia/experimental/sorttoy/
Dsorttoy.cpp183 s.clip(sk_make_sp<ClipCmd>(ID(1), Shape::kRect, r)); in mcstack_test()
191 s.clip(sk_make_sp<ClipCmd>(ID(2), Shape::kRect, r)); in mcstack_test()
197 s.clip(sk_make_sp<ClipCmd>(ID(3), Shape::kRect, r)); in mcstack_test()
287 test->push_back(sk_make_sp<SaveCmd>()); in test1()
290 … test->push_back(sk_make_sp<DrawCmd>(ID(0), shape, r.makeOffset(8, 8), FakePaint(SK_ColorRED))); in test1()
291 …test->push_back(sk_make_sp<DrawCmd>(ID(1), shape, r.makeOffset(48, 48), FakePaint(SK_ColorGREEN))); in test1()
293 test->push_back(sk_make_sp<RestoreCmd>()); in test1()
307 test->push_back(sk_make_sp<SaveCmd>()); in test2()
310 … test->push_back(sk_make_sp<DrawCmd>(ID(0), shape, r.makeOffset(8, 8), FakePaint(SK_ColorRED))); in test2()
311 …test->push_back(sk_make_sp<DrawCmd>(ID(1), shape, r.makeOffset(48, 48), FakePaint(SK_ColorGREEN))); in test2()
[all …]
/third_party/skia/src/gpu/v1/
DPathRendererChain.cpp34 fChain.push_back(sk_make_sp<DashLinePathRenderer>()); in PathRendererChain()
37 fChain.push_back(sk_make_sp<AAConvexPathRenderer>()); in PathRendererChain()
40 fChain.push_back(sk_make_sp<AAHairLinePathRenderer>()); in PathRendererChain()
43 fChain.push_back(sk_make_sp<AALinearizingConvexPathRenderer>()); in PathRendererChain()
53 fChain.push_back(sk_make_sp<SmallPathRenderer>()); in PathRendererChain()
56 fChain.push_back(sk_make_sp<TriangulatingPathRenderer>()); in PathRendererChain()
60 auto tess = sk_make_sp<TessellationPathRenderer>(); in PathRendererChain()
67 fChain.push_back(sk_make_sp<DefaultPathRenderer>()); in PathRendererChain()
/third_party/skia/modules/skottie/tests/
DExpression.cpp36 return sk_make_sp<FakeScalarExpressionEvaluator>(); in createNumberExpressionEvaluator()
41 return sk_make_sp<FakeStringExpressionEvaluator>(); in createStringExpressionEvaluator()
46 return sk_make_sp<FakeVectorExpressionEvaluator>(); in createArrayExpressionEvaluator()
246 auto em = sk_make_sp<FakeExpressionManager>(); in DEF_TEST()
247 auto observer = sk_make_sp<FakePropertyObserver>(); in DEF_TEST()
346 auto em = sk_make_sp<FakeExpressionManager>(); in DEF_TEST()
347 auto observer = sk_make_sp<FakePropertyObserver>(); in DEF_TEST()
DText.cpp106 auto fmgr = sk_make_sp<RecordMatchFamilyStyleSkFontMgr>(); in DEF_TEST()
214 auto logger = sk_make_sp<Logger>(); in DEF_TEST()
218 .setResourceProvider(sk_make_sp<PortableRP>()) in DEF_TEST()
DAudioLayer.cpp84 fTracks.push_back(sk_make_sp<MockTracker>()); in DEF_TEST()
94 auto rp = sk_make_sp<MockResourceProvider>(r); in DEF_TEST()
/third_party/skia/tools/fonts/
DTestFontMgr.cpp68 sk_make_sp<TestTypeface>(sk_make_sp<SkTestFont>(sub.fFont), sub.fStyle); in FontMgr()
87 fFamilies.emplace_back(sk_make_sp<FontStyleSet>(sub.fFamilyName)); in FontMgr()
99 fFamilies.emplace_back(sk_make_sp<FontStyleSet>("Emoji")); in FontMgr()
103 fFamilies.emplace_back(sk_make_sp<FontStyleSet>("Planet")); in FontMgr()
193 sk_sp<SkFontMgr> MakePortableFontMgr() { return sk_make_sp<FontMgr>(); } in MakePortableFontMgr()
/third_party/skia/tests/
DPixelRefTest.cpp77 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
94 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
100 auto listener = sk_make_sp<TestListener>(&count); in DEF_TEST()
109 listener = sk_make_sp<TestListener>(&count); in DEF_TEST()
114 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
DSkRemoteGlyphCacheTest.cpp187 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST()
205 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
240 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
270 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST()
307 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST()
345 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST()
387 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST()
417 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST()
464 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
540 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DRefCntTest.cpp116 return sk_make_sp<Effect>(); in Create()
273 sk_sp<SkRefCnt> notEmpty = sk_make_sp<SkRefCnt>(); in DEF_TEST()
285 sk_sp<SkRefCnt> a = sk_make_sp<SkRefCnt>(); in DEF_TEST()
286 sk_sp<SkRefCnt> b = sk_make_sp<SkRefCnt>(); in DEF_TEST()
342 return sk_make_sp<FooConcrete>(); in make_foo()
344 DEF_TEST(sk_make_sp, r) { in DEF_TEST() argument
DMessageBusTest.cpp89 auto m1 = sk_make_sp<TestMessageRefCnt>(5, 4.2f); in DECLARE_SKMESSAGEBUS_MESSAGE()
90 auto m2 = sk_make_sp<TestMessageRefCnt>(6, 4.3f); in DECLARE_SKMESSAGEBUS_MESSAGE()
104 auto m3 = sk_make_sp<TestMessageRefCnt>(1, 0.3f); in DECLARE_SKMESSAGEBUS_MESSAGE()
DTraceMemoryDumpTest.cpp101 sk_make_sp<GrGLTexture>(gpu, SkBudgeted::kNo, desc, GrMipmapStatus::kNotAllocated); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
117 auto params = sk_make_sp<GrGLTextureParameters>(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
185 auto texRT = sk_make_sp<GrGLTextureRenderTarget>(gpu, SkBudgeted::kYes, 8, texDesc, rtIDs, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/skia/src/ports/
DSkFontMgr_custom_embedded.cpp35 family->appendTypeface(sk_make_sp<SkTypeface_Empty>()); in loadSystemFonts()
57 family->appendTypeface(sk_make_sp<SkTypeface_Empty>()); in loadSystemFonts()
103 addTo->appendTypeface(sk_make_sp<SkTypeface_Stream>(std::move(data), in load_font_from_data()
110 return sk_make_sp<SkFontMgr_Custom>(EmbeddedSystemFontLoader(header)); in SkFontMgr_New_Custom_Embedded()
117 return sk_make_sp<SkFontMgr_Custom>(DataFontLoader(datas, n)); in SkFontMgr_New_Custom_Data()
DSkFontMgr_custom_directory.cpp29 family->appendTypeface(sk_make_sp<SkTypeface_Empty>()); in loadSystemFonts()
83 addTo->appendTypeface(sk_make_sp<SkTypeface_File>(style, isFixedPitch, true, in load_directory_fonts()
103 return sk_make_sp<SkFontMgr_Custom>(DirectorySystemFontLoader(dir)); in SkFontMgr_New_Custom_Directory()
DSkFontMgr_custom_empty.cpp20 family->appendTypeface(sk_make_sp<SkTypeface_Empty>()); in loadSystemFonts()
26 return sk_make_sp<SkFontMgr_Custom>(EmptyFontLoader()); in SkFontMgr_New_Custom_Empty()
/third_party/skia/modules/canvaskit/
Dviewer_bindings.cpp25 return sk_make_sp<SampleSlide>(MakePathTextSample); in MakeSlide()
29 return sk_make_sp<SampleSlide>(MakeTessellatedWedgeSample); in MakeSlide()
37 return sk_make_sp<SKPSlide>(SkString(name.c_str()), std::move(stream)); in MakeSkpSlide()
43 return sk_make_sp<SvgSlide>(SkString(name.c_str()), std::move(stream)); in MakeSvgSlide()
/third_party/skia/experimental/skrive/tests/
DDomTypes.cpp19 auto node = sk_make_sp<skrive::Node>(); in DEF_TEST()
29 auto node = sk_make_sp<skrive::Shape>(); in DEF_TEST()
39 auto node = sk_make_sp<skrive::ColorPaint>(SkPaint::Style::kFill_Style); in DEF_TEST()
51 auto node = sk_make_sp<skrive::Ellipse>(); in DEF_TEST()
/third_party/skia/modules/skottie/src/layers/
DPrecompLayer.cpp157 auto sg_adapter = sk_make_sp<SGAdapter>(std::move(external_layer), layer_info.fSize); in attachExternalPrecompLayer()
159 fCurrentAnimatorScope->push_back(sk_make_sp<AnimatorAdapter>(sg_adapter, fFrameRate)); in attachExternalPrecompLayer()
168 time_remapper = sk_make_sp<TimeRemapper>(*jtm, this, fFrameRate); in attachPrecompLayer()
200 auto time_mapper = sk_make_sp<CompTimeMapper>(local_scope->release(), in attachPrecompLayer()
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp98 , fFontProvider(sk_make_sp<TypefaceFontProvider>()) { in ResourceFontCollection()
205 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
245 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
281 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
380 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
436 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
492 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
548 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
602 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
656 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST()
[all …]
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp41 fFC = sk_make_sp<TestFontCollection>(GetResourcePath("fonts").c_str(), false, true); in getFontCollection()
103 auto fontCollection = sk_make_sp<FontCollection>(); in drawTest()
205 auto fontCollection = sk_make_sp<FontCollection>(); in drawCode()
334 auto fontCollection = sk_make_sp<FontCollection>(); in drawLine()
457 auto fontCollection = sk_make_sp<FontCollection>(); in drawLine()
1139 auto fontCollection = sk_make_sp<FontCollection>(); in drawText()
1218 auto fontCollection = sk_make_sp<FontCollection>(); in onDrawContent()
1267 …auto fontCollection = sk_make_sp<TestFontCollection>(GetResourcePath("fonts").c_str(), true, true); in onDrawContent()
1417 … auto fontCollection = sk_make_sp<TestFontCollection>(GetResourcePath("fonts").c_str(), false); in onDrawContent()
1466 auto fontCollection = sk_make_sp<FontCollection>(); in onDrawContent()
[all …]
/third_party/skia/src/core/
DSkSpecialSurface.cpp100 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props); in MakeFromBitmap()
116 return sk_make_sp<SkSpecialSurface_Raster>(info, std::move(pr), subset, props); in MakeRaster()
175 return sk_make_sp<SkSpecialSurface_Gpu>(std::move(device), subset); in MakeRenderTarget()
/third_party/skia/modules/skottie/src/
DSkottieTest.cpp250 sk_sp<FakeFontMgr> test_font_manager = sk_make_sp<FakeFontMgr>(test_typeface); in DEF_TEST()
252 auto observer = sk_make_sp<TestPropertyObserver>(); in DEF_TEST()
385 auto observer = sk_make_sp<TestMarkerObserver>(); in DEF_TEST()
673 auto fontmgr = sk_make_sp<CountingFontMgr>(); in DEF_TEST()
790 .setResourceProvider(sk_make_sp<TestResourceProvider>(std::move(single_asset), in DEF_TEST()
820 auto single_asset = sk_make_sp<TestAsset>(false), in DEF_TEST()
821 multi_asset = sk_make_sp<TestAsset>(true); in DEF_TEST()
843 auto single_asset = sk_make_sp<TestAsset>(false), in DEF_TEST()
844 multi_asset = sk_make_sp<TestAsset>(true); in DEF_TEST()
/third_party/skia/gm/
Dparticles.cpp50 auto effectParams = sk_make_sp<SkParticleEffectParams>(); in onOnceBeforeDraw()
54 fEffect = sk_make_sp<SkParticleEffect>(effectParams); in onOnceBeforeDraw()
/third_party/skia/tools/viewer/
DSkottieSlide.cpp67 return sk_make_sp<Track>(std::move(player)); in loadAudioAsset()
152 auto logger = sk_make_sp<Logger>(); in load()
161 sk_make_sp<AudioProviderProxy>( in load()
169 sk_make_sp<skottie_utils::ExternalAnimationPrecompInterceptor>(resource_provider, in load()
/third_party/skia/src/image/
DSkImage_Gpu.cpp219 return sk_make_sp<SkImage_Gpu>(std::move(rContext), in MakeWithVolatileSrc()
314 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext), in onMakeColorTypeAndColorSpace()
324 return sk_make_sp<SkImage_Gpu>(fContext, in onReinterpretColorSpace()
407 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(rContext), in new_wrapped_texture_common()
443 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(rContext), in MakeFromCompressedTexture()
529 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(direct), in MakeTextureFromCompressed()
566 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext), in makeTextureImage()
624 return sk_make_sp<SkImage_Gpu>(std::move(ctx), in MakePromiseTexture()
753 sk_sp<SkImage> image = sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext), in MakeFromAHardwareBufferWithData()
/third_party/skia/src/shaders/
DSkColorFilterShader.cpp39 return sk_make_sp<SkColorFilterShader>(shader, 1.0f, filter); in CreateProc()
119 return sk_make_sp<SkColorFilterShader>(sk_ref_sp(base), 1.0f, filter); in makeWithColorFilter()

1234567