Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google LLC. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "include/core/SkTypes.h" |
| 9 | #include "src/gpu/GrCaps.h" |
| 10 | #include "src/gpu/GrGpu.h" |
| 11 | #include "src/gpu/GrPath.h" |
| 12 | #include "src/gpu/GrPathRenderer.h" |
| 13 | #include "src/gpu/GrPathRendering.h" |
| 14 | #include "src/gpu/GrResourceProvider.h" |
| 15 | #include "src/gpu/gl/GrGLGpu.h" |
| 16 | #include "src/gpu/gl/GrGLPathRendering.h" |
| 17 | #include "src/gpu/ops/GrStencilAndCoverPathRenderer.h" |
| 18 | #include "src/gpu/ops/GrStencilPathOp.h" |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 19 | |
Robert Phillips | b97da53 | 2019-02-12 15:24:12 -0500 | [diff] [blame] | 20 | class GrRecordingContext; |
| 21 | |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 22 | GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider, |
| 23 | const GrCaps& caps) { |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 24 | return nullptr; |
| 25 | } |
| 26 | |
| 27 | GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu) |
| 28 | : GrPathRendering(gpu) |
| 29 | , fPreallocatedPathCount(0) {} |
| 30 | |
| 31 | GrGLPathRendering::~GrGLPathRendering() {} |
| 32 | |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 33 | void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {} |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 34 | |
| 35 | void GrGLPathRendering::resetContext() {} |
| 36 | |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 37 | void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint, |
| 38 | GrGLenum, GrGLint, |
| 39 | const SkMatrix&) {} |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 40 | |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 41 | void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {} |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 42 | |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 43 | sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; } |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 44 | |
Chris Dalton | 304e14d | 2020-03-17 14:29:06 -0600 | [diff] [blame] | 45 | void GrGLPathRendering::onDrawPath(const GrStencilSettings&, const GrPath*) {} |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 46 | |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 47 | void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {} |
Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 48 | |
Robert Phillips | b97da53 | 2019-02-12 15:24:12 -0500 | [diff] [blame] | 49 | std::unique_ptr<GrOp> GrStencilPathOp::Make(GrRecordingContext*, |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 50 | const SkMatrix&, |
| 51 | bool, |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 52 | bool, |
| 53 | const GrScissorState&, |
Robert Phillips | e1efd38 | 2019-08-21 10:07:10 -0400 | [diff] [blame] | 54 | sk_sp<const GrPath>) { return nullptr; } |
Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 55 | |
Michael Ludwig | 2686d69 | 2020-04-17 20:21:37 +0000 | [diff] [blame^] | 56 | void GrPath::ComputeKey(const GrStyledShape&, GrUniqueKey*, bool*) {} |