/third_party/skia/experimental/graphite/src/mtl/ |
H A D | MtlResourceProvider.h | 15 namespace skgpu { namespace 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; 37 } // namespace skgpu [all...] |
H A 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*, 93 } // namespace skgpu [all...] |
H A 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, 59 } // namespace skgpu::mtl
|
H A D | MtlTexture.h | 15 namespace skgpu::mtl { 19 class Texture : public skgpu::Texture { 23 const skgpu::TextureInfo&); 31 const skgpu::TextureInfo& info, 37 } // namepsace skgpu::mtl
|
H A D | MtlGraphicsPipeline.h | 18 namespace skgpu { namespace 20 } // namespace skgpu 22 namespace skgpu::mtl { 25 class GraphicsPipeline final : public skgpu::GraphicsPipeline { 31 static sk_sp<GraphicsPipeline> Make(const Gpu*, const skgpu::GraphicsPipelineDesc&); 51 } // namespace skgpu::mtl
|
H A 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; 46 } // namespace skgpu::mtl
|
H A D | MtlTrampoline.h | 13 namespace skgpu { namespace 17 namespace skgpu::mtl { 26 static sk_sp<skgpu::Gpu> MakeGpu(const BackendContext&); 29 } // namespace skgpu::mtl
|
/third_party/skia/experimental/graphite/src/ |
H A D | EnumBitMask.h | 13 namespace skgpu { namespace 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 [all...] |
H A 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/src/gpu/ |
H A 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 in makeSC() [all...] |
H A D | GrRecordingContextPriv.h | 20 namespace skgpu { namespace 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 [all...] |
H A 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, in operator <<()
|
H A D | GrDrawingManager.h | 41 namespace skgpu { namespace v1 { namespace 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;
|
H A D | GrDrawOpTest.h | 20 namespace skgpu { namespace v1 { class SurfaceDrawContext; }} namespace 25 void GrDrawRandomOp(SkRandom*, skgpu::v1::SurfaceDrawContext*, GrPaint&&); 32 skgpu::v1::SurfaceDrawContext* sdc, \ 38 skgpu::v1::SurfaceDrawContext*, \
|
/third_party/skia/tools/graphite/mtl/ |
H A D | GraphiteMtlTestContext.h | 25 skgpu::BackendApi backend() override { return skgpu::BackendApi::kMetal; } 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/ |
H A D | ContextFactory.h | 16 namespace skgpu { namespace 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);
|
H A D | ContextFactory.cpp | 26 sk_sp<skgpu::Context> context) in ContextInfo() 32 sk_sp<skgpu::Context> ContextFactory::ContextInfo::refContext() const { return fContext; } in refContext() 35 std::tuple<GraphiteTestContext*, sk_sp<skgpu::Context>> ContextFactory::getContextInfo( in getContextInfo() 61 sk_sp<skgpu::Context> context = testCtx->makeContext(); in getContextInfo()
|
/third_party/skia/src/gpu/ops/ |
H A 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); 160 skgpu::v1::QuadPerEdgeAA::MinColorType(iter->fColor)); 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); 251 skgpu::v1::QuadPerEdgeAA::Tessellator tessellator(vertexSpec, dst); in tessellate() 291 fIndexBuffer = skgpu [all...] |
/third_party/skia/tests/ |
H A 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 in textureop_creation_test() [all...] |
H A 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 DEF_GPUTEST() 158 return new skgpu::v1::SoftwarePathRenderer(rContext->priv().proxyProvider(), true); in DEF_GPUTEST()
|
H A D | TestUtils.h | 15 namespace skgpu { class SurfaceContext; } namespace 20 void TestReadPixels(skiatest::Reporter*, GrDirectContext*, skgpu::SurfaceContext*, 25 void TestWritePixels(skiatest::Reporter*, GrDirectContext*, skgpu::SurfaceContext*, 89 std::unique_ptr<skgpu::SurfaceContext> CreateSurfaceContext(
|
/third_party/skia/src/gpu/tessellate/shaders/ |
H A 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; 103 v->defineConstant("PRECISION", skgpu::kTessellationPrecision); in makeProgramImpl() 105 (float)skgpu::PathTessellator::kMaxFixedResolveLevel); in makeProgramImpl() 107 (float)(1 << skgpu::PathTessellator::kMaxFixedResolveLevel)); in makeProgramImpl() 108 v->insertFunction(skgpu::wangs_formula::as_sksl().c_str()); in makeProgramImpl()
|
H A D | GrPathTessellationShader_Hardware.cpp | 14 using skgpu::PatchAttribs; 44 sizeof(SkPoint) * 4 + skgpu::PatchAttribsStride(fAttribs)); in HardwareWedgeShader() 80 #define PRECISION %f)", skgpu::kTessellationPrecision); in makeProgramImpl() 82 code.append(skgpu::wangs_formula::as_sksl()); in makeProgramImpl() 187 sizeof(SkPoint) * 4 + skgpu::PatchAttribsStride(fAttribs)); in HardwareCurveShader() 226 #define PRECISION %f)", skgpu::kTessellationPrecision); in makeProgramImpl() 228 code.append(skgpu::wangs_formula::as_sksl()); in makeProgramImpl()
|
/third_party/skia/tests/graphite/ |
H A 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/bench/graphite/ |
H A D | IntersectionTreeBench.cpp | 19 namespace skgpu { namespace 160 } // namespace skgpu 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
|