/external/skia/include/gpu/graphite/ |
D | Image.h | 24 namespace skgpu::graphite { 47 std::tuple<skgpu::graphite::BackendTexture, GraphitePromiseTextureReleaseContext> (*)( 77 SK_API sk_sp<SkImage> WrapTexture(skgpu::graphite::Recorder*, 78 const skgpu::graphite::BackendTexture&, 88 SK_API sk_sp<SkImage> WrapTexture(skgpu::graphite::Recorder*, 89 const skgpu::graphite::BackendTexture&, 98 SK_API sk_sp<SkImage> WrapTexture(skgpu::graphite::Recorder*, 99 const skgpu::graphite::BackendTexture&, 152 SK_API sk_sp<SkImage> PromiseTextureFrom(skgpu::graphite::Recorder*, 154 const skgpu::graphite::TextureInfo&, [all …]
|
/external/skia/src/gpu/graphite/ |
D | BUILD.bazel | 174 name = "graphite", 177 "//src/gpu/graphite/compute:compute_srcs", 178 "//src/gpu/graphite/geom:geom_srcs", 179 "//src/gpu/graphite/render:render_srcs", 180 "//src/gpu/graphite/task:task_srcs", 181 "//src/gpu/graphite/text:text_srcs", 190 "//include/gpu/graphite:public_hdrs", 191 "//src/gpu/graphite/compute:compute_hdrs", 192 "//src/gpu/graphite/geom:geom_hdrs", 193 "//src/gpu/graphite/render:render_hdrs", [all …]
|
D | ReadSwizzle.h | 14 namespace skgpu::graphite { 26 inline skgpu::graphite::ReadSwizzle SwizzleClassToReadEnum(const skgpu::Swizzle& swizzle) { in SwizzleClassToReadEnum() 28 return skgpu::graphite::ReadSwizzle::kRGBA; in SwizzleClassToReadEnum() 30 return skgpu::graphite::ReadSwizzle::kRGB1; in SwizzleClassToReadEnum() 32 return skgpu::graphite::ReadSwizzle::kRRR1; in SwizzleClassToReadEnum() 34 return skgpu::graphite::ReadSwizzle::kBGRA; in SwizzleClassToReadEnum() 36 return skgpu::graphite::ReadSwizzle::k000R; in SwizzleClassToReadEnum() 40 return skgpu::graphite::ReadSwizzle::kRGBA; in SwizzleClassToReadEnum()
|
D | Log.h | 18 #define SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY skgpu::graphite::LogPriority::kWarning 20 #define SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY skgpu::graphite::LogPriority::kError 27 if (priority == skgpu::graphite::LogPriority::kFatal) { \ 36 #define SKGPU_LOG_F(fmt, ...) SKGPU_LOG(skgpu::graphite::LogPriority::kFatal, "** ERROR ** " fmt, \ 38 #define SKGPU_LOG_E(fmt, ...) SKGPU_LOG(skgpu::graphite::LogPriority::kError, "** ERROR ** " fmt, \ 40 #define SKGPU_LOG_W(fmt, ...) SKGPU_LOG(skgpu::graphite::LogPriority::kWarning, "WARNING - " fmt, \ 42 #define SKGPU_LOG_D(fmt, ...) SKGPU_LOG(skgpu::graphite::LogPriority::kDebug, fmt, \
|
/external/skia/tools/graphite/ |
D | GraphiteTestContext.cpp | 18 namespace skiatest::graphite { namespace 24 void GraphiteTestContext::submitRecordingAndWaitOnSync(skgpu::graphite::Context* context, in submitRecordingAndWaitOnSync() 25 skgpu::graphite::Recording* recording) { in submitRecordingAndWaitOnSync() 40 skgpu::graphite::InsertRecordingInfo info; in submitRecordingAndWaitOnSync() 46 context->submit(skgpu::graphite::SyncToCpu::kNo); in submitRecordingAndWaitOnSync() 51 void GraphiteTestContext::syncedSubmit(skgpu::graphite::Context* context) { in syncedSubmit() 52 skgpu::graphite::SyncToCpu sync = context->priv().caps()->allowCpuSync() in syncedSubmit() 53 ? skgpu::graphite::SyncToCpu::kYes in syncedSubmit() 54 : skgpu::graphite::SyncToCpu::kNo; in syncedSubmit() 56 if (sync == skgpu::graphite::SyncToCpu::kNo) { in syncedSubmit()
|
D | UniqueKeyUtils.h | 19 namespace skgpu::graphite { 31 void FetchUniqueKeys(skgpu::graphite::PrecompileContext*, 35 void DumpDescs(skgpu::graphite::PrecompileContext*, 36 const skgpu::graphite::GraphicsPipelineDesc&, 37 const skgpu::graphite::RenderPassDesc&); 43 bool ExtractKeyDescs(skgpu::graphite::PrecompileContext*, 45 skgpu::graphite::GraphicsPipelineDesc*, 46 skgpu::graphite::RenderPassDesc*);
|
D | GraphiteTestContext.h | 18 namespace skgpu::graphite { 26 namespace skiatest::graphite { 45 virtual std::unique_ptr<skgpu::graphite::Context> makeContext(const TestOptions&) = 0; 58 void submitRecordingAndWaitOnSync(skgpu::graphite::Context*, skgpu::graphite::Recording*); 70 void syncedSubmit(skgpu::graphite::Context*);
|
D | ContextFactory.h | 19 namespace skgpu::graphite { 23 namespace skiatest::graphite { 27 skgpu::graphite::Context* fContext = nullptr; 46 std::unique_ptr<skgpu::graphite::Context>); 55 std::unique_ptr<skgpu::graphite::Context> fContext;
|
D | ContextFactory.cpp | 24 namespace skiatest::graphite { namespace 31 std::unique_ptr<skgpu::graphite::Context> context) in OwnedContextInfo() 72 testCtx = graphite::MtlTestContext::Make(); in getContextInfo() 77 testCtx = graphite::VulkanTestContext::Make(); in getContextInfo() 84 testCtx = graphite::DawnTestContext::Make(wgpu::BackendType::TYPE, fOptions.fUseTintIR); \ in getContextInfo() 107 std::unique_ptr<skgpu::graphite::Context> context = testCtx->makeContext(fOptions); in getContextInfo()
|
/external/skia/tools/graphite/mtl/ |
D | GraphiteMtlTestContext.mm | 8 #include "tools/graphite/mtl/GraphiteMtlTestContext.h" 10 #include "include/gpu/graphite/Context.h" 11 #include "include/gpu/graphite/ContextOptions.h" 12 #include "include/gpu/graphite/mtl/MtlBackendContext.h" 13 #include "src/gpu/graphite/ContextOptionsPriv.h" 15 #include "tools/graphite/TestOptions.h" 19 namespace skiatest::graphite { 45 skgpu::graphite::MtlBackendContext backendContext = {}; 56 std::unique_ptr<skgpu::graphite::Context> MtlTestContext::makeContext(const TestOptions& options) { 58 skgpu::graphite::ContextOptions revisedContextOptions(options.fContextOptions); [all …]
|
D | GraphiteMtlTestContext.h | 15 namespace skiatest::graphite { 27 std::unique_ptr<skgpu::graphite::Context> makeContext(const TestOptions&) override; 29 const skgpu::graphite::MtlBackendContext& getBackendContext() const { in getBackendContext() 34 MtlTestContext(const skgpu::graphite::MtlBackendContext& mtl) : fMtl(mtl) {} in MtlTestContext() 36 skgpu::graphite::MtlBackendContext fMtl;
|
/external/skia/gn/ |
D | tests.gni | 349 "$_tests/graphite/AHardwareBufferTest.cpp", 350 "$_tests/graphite/BackendTextureTest.cpp", 351 "$_tests/graphite/BoundsManagerTest.cpp", 352 "$_tests/graphite/BufferManagerTest.cpp", 353 "$_tests/graphite/CacheBudgetTest.cpp", 354 "$_tests/graphite/CacheKeyTest.cpp", 355 "$_tests/graphite/ComputeTest.cpp", 356 "$_tests/graphite/DeviceTest.cpp", 357 "$_tests/graphite/DrawAtlasTest.cpp", 358 "$_tests/graphite/GraphitePromiseImageTest.cpp", [all …]
|
/external/skia/tools/window/ |
D | GraphiteNativeMetalWindowContext.mm | 11 #include "include/gpu/graphite/BackendTexture.h" 12 #include "include/gpu/graphite/Context.h" 13 #include "include/gpu/graphite/ContextOptions.h" 14 #include "include/gpu/graphite/Recorder.h" 15 #include "include/gpu/graphite/Recording.h" 16 #include "include/gpu/graphite/Surface.h" 17 #include "include/gpu/graphite/mtl/MtlBackendContext.h" 18 #include "include/gpu/graphite/mtl/MtlGraphiteTypes.h" 20 #include "src/gpu/graphite/ContextOptionsPriv.h" 21 #include "tools/graphite/GraphiteToolUtils.h" [all …]
|
/external/skia/src/gpu/graphite/mtl/ |
D | MtlSharedContext.mm | 8 #include "src/gpu/graphite/mtl/MtlSharedContext.h" 10 #include "include/gpu/graphite/BackendTexture.h" 11 #include "include/gpu/graphite/ContextOptions.h" 12 #include "include/gpu/graphite/TextureInfo.h" 13 #include "src/gpu/graphite/Caps.h" 14 #include "src/gpu/graphite/GlobalCache.h" 15 #include "src/gpu/graphite/Log.h" 16 #include "src/gpu/graphite/mtl/MtlCommandBuffer.h" 17 #include "src/gpu/graphite/mtl/MtlResourceProvider.h" 18 #include "src/gpu/graphite/mtl/MtlTexture.h" [all …]
|
D | MtlResourceProvider.mm | 8 #include "src/gpu/graphite/mtl/MtlResourceProvider.h" 11 #include "include/gpu/graphite/BackendTexture.h" 12 #include "include/gpu/graphite/mtl/MtlGraphiteTypes.h" 18 #include "src/gpu/graphite/GlobalCache.h" 19 #include "src/gpu/graphite/RenderPassDesc.h" 20 #include "src/gpu/graphite/Renderer.h" 21 #include "src/gpu/graphite/mtl/MtlBuffer.h" 22 #include "src/gpu/graphite/mtl/MtlCommandBuffer.h" 23 #include "src/gpu/graphite/mtl/MtlComputePipeline.h" 24 #include "src/gpu/graphite/mtl/MtlGraphicsPipeline.h" [all …]
|
D | MtlComputePipeline.mm | 8 #include "src/gpu/graphite/mtl/MtlComputePipeline.h" 12 #include "src/gpu/graphite/ComputePipelineDesc.h" 13 #include "src/gpu/graphite/ContextUtils.h" 14 #include "src/gpu/graphite/Log.h" 15 #include "src/gpu/graphite/ResourceProvider.h" 16 #include "src/gpu/graphite/mtl/MtlGraphiteUtils.h" 17 #include "src/gpu/graphite/mtl/MtlSharedContext.h" 24 namespace skgpu::graphite { 106 } // namespace skgpu::graphite
|
/external/skia/bench/graphite/ |
D | BoundsManagerBench.cpp | 27 namespace skgpu::graphite { namespace 182 DEF_BENCH( return new skgpu::graphite::RandomBoundsManagerBench(manager, name, 100); ) \ 183 DEF_BENCH( return new skgpu::graphite::RandomBoundsManagerBench(manager, name, 500); ) \ 184 DEF_BENCH( return new skgpu::graphite::RandomBoundsManagerBench(manager, name, 1000); ) \ 185 DEF_BENCH( return new skgpu::graphite::RandomBoundsManagerBench(manager, name, 10000); ) \ 186 DEF_BENCH( return new skgpu::graphite::FileBoundsManagerBench(manager, name); ) 189 DEF_BOUNDS_MANAGER_BENCH_SET(std::make_unique<skgpu::graphite::NaiveBoundsManager>(), "naive") 190 DEF_BOUNDS_MANAGER_BENCH_SET(std::make_unique<skgpu::graphite::BruteForceBoundsManager>(), "brute") 191 DEF_BOUNDS_MANAGER_BENCH_SET(skgpu::graphite::GridBoundsManager::Make({1800, 1800}, 128), "grid128") 192 DEF_BOUNDS_MANAGER_BENCH_SET(skgpu::graphite::GridBoundsManager::Make({1800, 1800}, 512), "grid512") [all …]
|
/external/skia/example/external_client/src/ |
D | graphite_native_metal.cpp | 42 skgpu::graphite::MtlBackendContext backendContext = GetMetalContext(); in main() 43 skgpu::graphite::ContextOptions options; in main() 45 std::unique_ptr<skgpu::graphite::Context> context = in main() 46 skgpu::graphite::ContextFactory::MakeMetal(backendContext, options); in main() 56 std::unique_ptr<skgpu::graphite::Recorder> recorder = context->makeRecorder(); in main() 80 std::unique_ptr<skgpu::graphite::Recording> recording = recorder->snap(); in main() 85 skgpu::graphite::InsertRecordingInfo info; in main() 114 context->submit(skgpu::graphite::SyncToCpu::kYes); in main()
|
/external/skia/tools/graphite/dawn/ |
D | GraphiteDawnTestContext.h | 20 namespace skiatest::graphite { 32 std::unique_ptr<skgpu::graphite::Context> makeContext(const TestOptions&) override; 34 const skgpu::graphite::DawnBackendContext& getBackendContext() const { in getBackendContext() 41 DawnTestContext(const skgpu::graphite::DawnBackendContext& backendContext) in DawnTestContext() 44 skgpu::graphite::DawnBackendContext fBackendContext;
|
/external/skia/tests/ |
D | Test.h | 36 namespace skgpu::graphite { 42 namespace graphite { 117 using GraphiteTestProc = void (*)(Reporter*, const graphite::TestOptions&); 118 using GraphiteContextOptionsProc = void (*)(skgpu::graphite::ContextOptions*); 162 void modifyGraphiteContextOptions(skgpu::graphite::ContextOptions* options) { in modifyGraphiteContextOptions() 181 void graphite(skiatest::Reporter* r, const graphite::TestOptions& options) const { in graphite() function 233 namespace graphite { 236 skgpu::graphite::Context*, 237 skiatest::graphite::GraphiteTestContext*, 332 const skiatest::graphite::TestOptions&) { \ [all …]
|
/external/skia/tools/graphite/precompile/ |
D | PrecompileEffectFactories.h | 18 namespace skgpu::graphite { 24 namespace skiatest::graphite { 30 sk_sp<skgpu::graphite::PrecompileBlender>>; 32 sk_sp<skgpu::graphite::PrecompileColorFilter>>; 34 sk_sp<skgpu::graphite::PrecompileShader>>;
|
/external/skia/tools/gpu/vk/ |
D | VkYcbcrSamplerHelper.h | 18 namespace skgpu::graphite { 37 VkYcbcrSamplerHelper(const skgpu::graphite::VulkanSharedContext* ctxt) in VkYcbcrSamplerHelper() 44 const skgpu::graphite::BackendTexture& backendTexture() const { return fTexture; } in backendTexture() 64 skgpu::graphite::BackendTexture fTexture; 65 const skgpu::graphite::VulkanSharedContext* fSharedCtxt;
|
D | VkTestHelper.cpp | 113 std::unique_ptr<skgpu::graphite::Recording> recording; in ~GraphiteVkTestHelper() 120 fContext->submit(skgpu::graphite::SyncToCpu::kYes); in ~GraphiteVkTestHelper() 144 skgpu::graphite::Recorder* recorder() override { return fRecorder.get(); } in recorder() 145 skgpu::graphite::Context* context() override { return fContext.get(); } in context() 153 skgpu::graphite::ContextOptions contextOptions; in init() 154 skgpu::graphite::ContextOptionsPriv contextOptionsPriv; in init() 159 fContext = skgpu::graphite::ContextFactory::MakeVulkan(fBackendContext, contextOptions); in init() 175 std::unique_ptr<skgpu::graphite::Context> fContext; 176 std::unique_ptr<skgpu::graphite::Recorder> fRecorder;
|
/external/skia/gm/ |
D | graphite_replay.cpp | 50 skgpu::graphite::Recorder* recorder = canvas->recorder(); in onDraw() 104 void drawGraphite(SkCanvas* canvas, skgpu::graphite::Recorder* canvasRecorder) { in drawGraphite() 107 skgpu::graphite::TextureInfo textureInfo = in drawGraphite() 108 static_cast<skgpu::graphite::Surface*>(canvas->getSurface()) in drawGraphite() 112 skgpu::graphite::Context* context = canvasRecorder->priv().context(); in drawGraphite() 113 std::unique_ptr<skgpu::graphite::Recorder> recorder = in drawGraphite() 117 std::unique_ptr<skgpu::graphite::Recording> recording = recorder->snap(); in drawGraphite() 120 std::unique_ptr<skgpu::graphite::Recording> canvasRecording = canvasRecorder->snap(); in drawGraphite()
|
/external/skia/src/gpu/graphite/vk/ |
D | BUILD.bazel | 60 "//include/gpu/graphite:public_hdrs", 61 "//include/gpu/graphite/vk:public_hdrs", 74 "//src/gpu/graphite", 88 "//include/gpu/graphite:public_hdrs", 89 "//include/gpu/graphite/vk:public_hdrs", 105 "//src/gpu/graphite:graphite_TEST_UTIL",
|