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 | |
| 8 | #include "GrPath.h" |
| 9 | #include "GrCaps.h" |
| 10 | #include "gl/GrGLPathRendering.h" |
| 11 | #include "GrGpu.h" |
| 12 | #include "GrPathRenderer.h" |
| 13 | #include "GrPathRendering.h" |
| 14 | #include "GrResourceProvider.h" |
| 15 | #include "SkTypes.h" |
| 16 | #include "gl/GrGLGpu.h" |
| 17 | #include "ops/GrStencilAndCoverPathRenderer.h" |
| 18 | |
| 19 | GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider, |
| 20 | const GrCaps& caps) { |
| 21 | SkDEBUGFAIL("NVPR disabled"); |
| 22 | return nullptr; |
| 23 | } |
| 24 | |
| 25 | GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu) |
| 26 | : GrPathRendering(gpu) |
| 27 | , fPreallocatedPathCount(0) {} |
| 28 | |
| 29 | GrGLPathRendering::~GrGLPathRendering() {} |
| 30 | |
| 31 | void GrGLPathRendering::disconnect(GrGpu::DisconnectType type) {} |
| 32 | |
| 33 | void GrGLPathRendering::resetContext() {} |
| 34 | |
| 35 | void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location, |
| 36 | GrGLenum genMode, GrGLint components, |
| 37 | const SkMatrix& matrix) {} |
| 38 | |
| 39 | void GrGLPathRendering::setProjectionMatrix(const SkMatrix& matrix, |
| 40 | const SkISize& renderTargetSize, |
| 41 | GrSurfaceOrigin renderTargetOrigin) {} |
| 42 | |
| 43 | sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath& inPath, const GrStyle& style) { |
| 44 | return nullptr; |
| 45 | } |
| 46 | |
| 47 | void GrGLPathRendering::onDrawPath(const GrPrimitiveProcessor& primProc, |
| 48 | const GrPipeline& pipeline, |
| 49 | const GrPipeline::FixedDynamicState& fixedDynamicState, |
| 50 | const GrStencilSettings& stencilPassSettings, |
| 51 | const GrPath* path) {} |
| 52 | |
| 53 | void GrGLPathRendering::onStencilPath(const StencilPathArgs& args, const GrPath* path) {} |
| 54 | |