| 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 |  | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 8 | #include "GrCaps.h" | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 9 | #include "GrGpu.h" | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 10 | #include "GrPath.h" | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 11 | #include "GrPathRenderer.h" | 
 | 12 | #include "GrPathRendering.h" | 
 | 13 | #include "GrResourceProvider.h" | 
 | 14 | #include "SkTypes.h" | 
 | 15 | #include "gl/GrGLGpu.h" | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 16 | #include "gl/GrGLPathRendering.h" | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 17 | #include "ops/GrStencilAndCoverPathRenderer.h" | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 18 | #include "ops/GrStencilPathOp.h" | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 19 |  | 
 | 20 | GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider, | 
 | 21 |                                                       const GrCaps& caps) { | 
 | 22 |     SkDEBUGFAIL("NVPR disabled"); | 
 | 23 |     return nullptr; | 
 | 24 | } | 
 | 25 |  | 
 | 26 | GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu) | 
 | 27 |     : GrPathRendering(gpu) | 
 | 28 |     , fPreallocatedPathCount(0) {} | 
 | 29 |  | 
 | 30 | GrGLPathRendering::~GrGLPathRendering() {} | 
 | 31 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 32 | void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {} | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 33 |  | 
 | 34 | void GrGLPathRendering::resetContext() {} | 
 | 35 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 36 | void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint, | 
 | 37 |                                                              GrGLenum, GrGLint, | 
 | 38 |                                                              const SkMatrix&) {} | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 39 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 40 | void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {} | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 41 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 42 | sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; } | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 43 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 44 | void GrGLPathRendering::onDrawPath(const GrPrimitiveProcessor&, | 
 | 45 |                                    const GrPipeline&, | 
 | 46 |                                    const GrPipeline::FixedDynamicState&, | 
 | 47 |                                    const GrStencilSettings&, | 
 | 48 |                                    const GrPath*) {} | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 49 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 50 | void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {} | 
| Kevin Lubick | 4bf2c26 | 2018-10-15 09:35:54 -0400 | [diff] [blame] | 51 |  | 
| Mike Klein | 26a6049 | 2018-10-15 10:38:25 -0400 | [diff] [blame] | 52 | std::unique_ptr<GrOp> GrStencilPathOp::Make(GrContext*, | 
 | 53 |                                             const SkMatrix&, | 
 | 54 |                                             bool, | 
 | 55 |                                             GrPathRendering::FillType, | 
 | 56 |                                             bool, | 
 | 57 |                                             const GrScissorState&, | 
 | 58 |                                             const GrPath*) { return nullptr; } | 
 | 59 |  | 
 | 60 | void GrPath::ComputeKey(const GrShape&, GrUniqueKey*, bool*) {} |