/third_party/skia/experimental/graphite/src/ |
D | EnumBitMask.h | 13 namespace skgpu { 64 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator|(E a, E b) { return skgpu::Mask<E>(a) | b; } \ 65 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator&(E a, E b) { return skgpu::Mask<E>(a) & b; } \ 66 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator^(E a, E b) { return skgpu::Mask<E>(a) ^ b; } \ 67 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator~(E e) { return ~skgpu::Mask<E>(e); } \ 70 friend constexpr skgpu::Mask<E> operator|(E, E); \ 71 friend constexpr skgpu::Mask<E> operator&(E, E); \ 72 friend constexpr skgpu::Mask<E> operator^(E, E); \ 73 friend constexpr skgpu::Mask<E> operator~(E); \
|
D | SkStuff.cpp | 14 sk_sp<SkSurface> MakeGraphite(sk_sp<skgpu::Recorder> recorder, const SkImageInfo& ii) { in MakeGraphite() 15 sk_sp<skgpu::Device> device = skgpu::Device::Make(std::move(recorder), ii); in MakeGraphite() 20 return sk_make_sp<skgpu::Surface_Graphite>(std::move(device)); in MakeGraphite()
|
/third_party/skia/experimental/graphite/src/mtl/ |
D | MtlResourceProvider.h | 15 namespace skgpu { 19 namespace skgpu::mtl { 23 class ResourceProvider final : public skgpu::ResourceProvider { 25 ResourceProvider(const skgpu::Gpu* gpu); 31 sk_sp<skgpu::CommandBuffer> createCommandBuffer() override; 32 sk_sp<skgpu::GraphicsPipeline> onCreateGraphicsPipeline(const GraphicsPipelineDesc&) override; 33 sk_sp<skgpu::Texture> createTexture(SkISize, const skgpu::TextureInfo&) override; 34 sk_sp<skgpu::Buffer> createBuffer(size_t size, BufferType type, PrioritizeGpuReads) override;
|
D | MtlResourceProvider.mm | 18 namespace skgpu::mtl { 20 ResourceProvider::ResourceProvider(const skgpu::Gpu* gpu) 21 : skgpu::ResourceProvider(gpu) { 28 sk_sp<skgpu::CommandBuffer> ResourceProvider::createCommandBuffer() { 32 sk_sp<skgpu::GraphicsPipeline> ResourceProvider::onCreateGraphicsPipeline( 37 sk_sp<skgpu::Texture> ResourceProvider::createTexture(SkISize dimensions, 38 const skgpu::TextureInfo& info) { 42 sk_sp<skgpu::Buffer> ResourceProvider::createBuffer(size_t size, 48 } // namespace skgpu::mtl
|
D | MtlCommandBuffer.h | 21 namespace skgpu::mtl { 26 class CommandBuffer final : public skgpu::CommandBuffer { 56 void onBindGraphicsPipeline(const skgpu::GraphicsPipeline*) override; 57 void onBindUniformBuffer(const skgpu::Buffer*, size_t offset) override; 58 void onBindVertexBuffers(const skgpu::Buffer* vertexBuffer, size_t vertexOffset, 59 const skgpu::Buffer* instanceBuffer, size_t instanceOffset) override; 60 void onBindIndexBuffer(const skgpu::Buffer* indexBuffer, size_t offset) override; 72 void onCopyTextureToBuffer(const skgpu::Texture*, 74 const skgpu::Buffer*,
|
D | MtlGpu.mm | 14 namespace skgpu::mtl { 16 sk_sp<skgpu::Gpu> Gpu::Make(const BackendContext& context) { 22 return sk_sp<skgpu::Gpu>(new Gpu(std::move(device), std::move(queue), std::move(caps))); 26 : skgpu::Gpu(std::move(caps)) 35 class WorkSubmission final : public skgpu::GpuWorkSubmission { 44 void waitUntilFinished(const skgpu::Gpu*) override { 52 bool Gpu::onSubmit(sk_sp<skgpu::CommandBuffer> commandBuffer) { 98 } // namespace skgpu::mtl
|
D | MtlCaps.h | 15 namespace skgpu::mtl { 17 class Caps final : public skgpu::Caps { 22 skgpu::TextureInfo getDefaultSampledTextureInfo(SkColorType, 27 skgpu::TextureInfo getDefaultMSAATextureInfo(SkColorType, 31 skgpu::TextureInfo getDefaultDepthStencilTextureInfo(DepthStencilType,
|
D | MtlTexture.h | 15 namespace skgpu::mtl { 19 class Texture : public skgpu::Texture { 23 const skgpu::TextureInfo&); 31 const skgpu::TextureInfo& info,
|
D | MtlGpu.h | 20 namespace skgpu::mtl { 22 class Gpu final : public skgpu::Gpu { 24 static sk_sp<skgpu::Gpu> Make(const BackendContext&); 35 bool onSubmit(sk_sp<skgpu::CommandBuffer>) override;
|
D | MtlGraphicsPipeline.h | 18 namespace skgpu { 22 namespace skgpu::mtl { 25 class GraphicsPipeline final : public skgpu::GraphicsPipeline { 31 static sk_sp<GraphicsPipeline> Make(const Gpu*, const skgpu::GraphicsPipelineDesc&);
|
/third_party/skia/src/gpu/ |
D | GrRecordingContextPriv.cpp | 26 sk_sp<skgpu::BaseDevice> GrRecordingContextPriv::createDevice(GrColorType colorType, in createDevice() 31 … skgpu::BaseDevice::InitContents init) { in createDevice() 33 return skgpu::v1::Device::Make(this->context(), colorType, std::move(proxy), in createDevice() 40 sk_sp<skgpu::BaseDevice> GrRecordingContextPriv::createDevice(SkBudgeted budgeted, in createDevice() 48 … skgpu::BaseDevice::InitContents init) { in createDevice() 50 return skgpu::v1::Device::Make(this->context(), budgeted, ii, fit, sampleCount, in createDevice() 69 std::unique_ptr<skgpu::SurfaceContext> GrRecordingContextPriv::makeSC(GrSurfaceProxyView readView, in makeSC() 82 std::unique_ptr<skgpu::SurfaceContext> sc; in makeSC() 94 sc = std::make_unique<skgpu::v1::SurfaceDrawContext>(this->context(), in makeSC() 101 sc = std::make_unique<skgpu::v1::SurfaceFillContext>(this->context(), in makeSC() [all …]
|
D | GrRecordingContextPriv.h | 20 namespace skgpu { 115 sk_sp<skgpu::BaseDevice> createDevice(GrColorType, 120 skgpu::BaseDevice::InitContents); 121 sk_sp<skgpu::BaseDevice> createDevice(SkBudgeted, 129 skgpu::BaseDevice::InitContents); 133 std::unique_ptr<skgpu::SurfaceContext> makeSC(GrSurfaceProxyView readView, 138 std::unique_ptr<skgpu::SurfaceContext> makeSC(const GrImageInfo&, 152 std::unique_ptr<skgpu::SurfaceFillContext> makeSFC( 166 std::unique_ptr<skgpu::SurfaceFillContext> makeSFC(SkAlphaType, 183 std::unique_ptr<skgpu::SurfaceFillContext> makeSFCWithFallback( [all …]
|
D | GrDrawingManager.h | 41 namespace skgpu { namespace v1 { 54 sk_sp<skgpu::v1::OpsTask> newOpsTask(GrSurfaceProxyView, 116 using PathRenderer = skgpu::v1::PathRenderer; 117 using PathRendererChain = skgpu::v1::PathRendererChain; 128 skgpu::v1::AtlasPathRenderer* getAtlasPathRenderer(); 156 skgpu::v1::OpsTask* getLastOpsTask(const GrSurfaceProxy*) const; 219 skgpu::v1::OpsTask* fActiveOpsTask = nullptr; 229 sk_sp<skgpu::v1::SoftwarePathRenderer> fSoftwarePathRenderer;
|
D | GrColor.h | 115 friend skgpu::VertexWriter& skgpu::operator<<(skgpu::VertexWriter&, const T&); 122 SK_MAYBE_UNUSED inline skgpu::VertexWriter& skgpu::operator<<(skgpu::VertexWriter& w,
|
D | GrDrawOpTest.h | 20 namespace skgpu { namespace v1 { class SurfaceDrawContext; }} 25 void GrDrawRandomOp(SkRandom*, skgpu::v1::SurfaceDrawContext*, GrPaint&&); 32 skgpu::v1::SurfaceDrawContext* sdc, \ 38 skgpu::v1::SurfaceDrawContext*, \
|
/third_party/skia/tools/graphite/mtl/ |
D | GraphiteMtlTestContext.h | 25 skgpu::BackendApi backend() override { return skgpu::BackendApi::kMetal; } in backend() 27 sk_sp<skgpu::Context> makeContext() override; 29 const skgpu::mtl::BackendContext& getBackendContext() const { in getBackendContext() 34 TestContext(const skgpu::mtl::BackendContext& mtl) : fMtl(mtl) {} in TestContext() 36 skgpu::mtl::BackendContext fMtl;
|
/third_party/skia/tools/graphite/ |
D | ContextFactory.h | 16 namespace skgpu { 39 skgpu::Context* context() const { return fContext.get(); } in context() 40 sk_sp<skgpu::Context> refContext() const; 48 sk_sp<skgpu::Context> context); 52 sk_sp<skgpu::Context> fContext; 61 std::tuple<GraphiteTestContext*, sk_sp<skgpu::Context>> getContextInfo(ContextType);
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrPathTessellationShader_MiddleOut.cpp | 16 using skgpu::PatchAttribs; 17 using skgpu::VertexWriter; 62 sizeof(SkPoint) * 4 + skgpu::PatchAttribsStride(fAttribs)); in MiddleOutShader() 70 return 1 << skgpu::PathTessellator::kMaxFixedResolveLevel; in maxTessellationSegments() 97 v->defineConstant("PRECISION", skgpu::kTessellationPrecision); in makeProgramImpl() 99 (float)skgpu::PathTessellator::kMaxFixedResolveLevel); in makeProgramImpl() 101 (float)(1 << skgpu::PathTessellator::kMaxFixedResolveLevel)); in makeProgramImpl() 102 v->insertFunction(skgpu::wangs_formula::as_sksl().c_str()); in makeProgramImpl()
|
D | GrPathTessellationShader_Hardware.cpp | 14 using skgpu::PatchAttribs; 44 sizeof(SkPoint) * 4 + skgpu::PatchAttribsStride(fAttribs)); in HardwareWedgeShader() 78 #define PRECISION %f)", skgpu::kTessellationPrecision); in makeProgramImpl() 80 code.append(skgpu::wangs_formula::as_sksl()); in makeProgramImpl() 185 sizeof(SkPoint) * 4 + skgpu::PatchAttribsStride(fAttribs)); in HardwareCurveShader() 222 #define PRECISION %f)", skgpu::kTessellationPrecision); in makeProgramImpl() 224 code.append(skgpu::wangs_formula::as_sksl()); in makeProgramImpl()
|
D | GrPathTessellationShader.h | 29 skgpu::PatchAttribs, 51 skgpu::PatchAttribs); 60 skgpu::PatchAttribs); 130 const SkPMColor4f& color, skgpu::PatchAttribs attribs) in GrPathTessellationShader() 164 const skgpu::PatchAttribs fAttribs;
|
/third_party/skia/tests/graphite/ |
D | UniformTest.cpp | 17 std::tuple<SkPaint, int> create_paint(skgpu::Combination combo) { in create_paint() 26 case skgpu::ShaderCombo::ShaderType::kNone: in create_paint() 29 case skgpu::ShaderCombo::ShaderType::kLinearGradient: in create_paint() 33 case skgpu::ShaderCombo::ShaderType::kRadialGradient: in create_paint() 37 case skgpu::ShaderCombo::ShaderType::kSweepGradient: in create_paint() 42 case skgpu::ShaderCombo::ShaderType::kConicalGradient: in create_paint() 59 using namespace skgpu; in DEF_GRAPHITE_TEST()
|
/third_party/skia/src/gpu/ops/ |
D | FillRectOp.cpp | 30 using VertexSpec = skgpu::v1::QuadPerEdgeAA::VertexSpec; 31 using ColorType = skgpu::v1::QuadPerEdgeAA::ColorType; 32 using Subset = skgpu::v1::QuadPerEdgeAA::Subset; 151 fColorType = skgpu::v1::QuadPerEdgeAA::MinColorType(colorOverride); in finalize() 160 skgpu::v1::QuadPerEdgeAA::MinColorType(iter->fColor)); in finalize() 184 friend class skgpu::v1::FillRectOp; // for access to addQuad 191 auto indexBufferOption = skgpu::v1::QuadPerEdgeAA::CalcIndexBufferOption(fHelper.aaType(), in vertexSpec() 213 GrGeometryProcessor* gp = skgpu::v1::QuadPerEdgeAA::MakeProcessor(arena, vertexSpec); in onCreateProgramInfo() 251 skgpu::v1::QuadPerEdgeAA::Tessellator tessellator(vertexSpec, dst); in tessellate() 291 fIndexBuffer = skgpu::v1::QuadPerEdgeAA::GetIndexBuffer(target, in onPrepareDraws() [all …]
|
/third_party/skia/tests/ |
D | BulkRectTest.cpp | 19 static std::unique_ptr<skgpu::v1::SurfaceDrawContext> new_SDC(GrRecordingContext* rContext) { in new_SDC() 20 return skgpu::v1::SurfaceDrawContext::Make( in new_SDC() 59 std::unique_ptr<skgpu::v1::SurfaceDrawContext> sdc = new_SDC(dContext); in fillrectop_creation_test() 73 skgpu::v1::FillRectOp::AddFillRectOps(sdc.get(), nullptr, dContext, std::move(paint), overallAA, in fillrectop_creation_test() 83 REPORTER_ASSERT(reporter, tmp->classID() == skgpu::v1::FillRectOp::ClassID()); in fillrectop_creation_test() 103 std::unique_ptr<skgpu::v1::SurfaceDrawContext> sdc = new_SDC(dContext); in textureop_creation_test() 150 GrOp::Owner op = skgpu::v1::TextureOp::Make(dContext, in textureop_creation_test() 157 skgpu::v1::TextureOp::Saturate::kYes, in textureop_creation_test() 165 skgpu::v1::TextureOp::AddTextureSetOps(sdc.get(), in textureop_creation_test() 173 skgpu::v1::TextureOp::Saturate::kYes, in textureop_creation_test() [all …]
|
D | PathRendererCacheTests.cpp | 34 skgpu::v1::SurfaceDrawContext* sdc, in draw_path() 36 skgpu::v1::PathRenderer* pr, in draw_path() 51 skgpu::v1::PathRenderer::DrawPathArgs args{rContext, in draw_path() 76 std::function<skgpu::v1::PathRenderer*(GrRecordingContext*)> makePathRenderer, in test_path() 86 auto sdc = skgpu::v1::SurfaceDrawContext::Make( in test_path() 93 sk_sp<skgpu::v1::PathRenderer> pathRenderer(makePathRenderer(dContext.get())); in test_path() 136 return new skgpu::v1::TriangulatingPathRenderer(); in __anon3f272ef70102() 158 return new skgpu::v1::SoftwarePathRenderer(rContext->priv().proxyProvider(), true); in __anon3f272ef70202()
|
/third_party/skia/bench/graphite/ |
D | IntersectionTreeBench.cpp | 19 namespace skgpu { namespace 162 DEF_BENCH( return new skgpu::RandomIntersectionBench(100); ) 163 DEF_BENCH( return new skgpu::RandomIntersectionBench(500); ) 164 DEF_BENCH( return new skgpu::RandomIntersectionBench(1000); ) 165 DEF_BENCH( return new skgpu::RandomIntersectionBench(5000); ) 166 DEF_BENCH( return new skgpu::RandomIntersectionBench(10000); ) 167 DEF_BENCH( return new skgpu::FileIntersectionBench(); ) // Sniffs --intersectionTreeFile
|