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 "GrCaps.h"
9 #include "GrGpu.h"
10 #include "GrPath.h"
11 #include "GrPathRenderer.h"
12 #include "GrPathRendering.h"
13 #include "GrResourceProvider.h"
14 #include "SkTypes.h"
15 #include "gl/GrGLGpu.h"
16 #include "gl/GrGLPathRendering.h"
17 #include "ops/GrStencilAndCoverPathRenderer.h"
18 #include "ops/GrStencilPathOp.h"
19 
20 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider,
21                                                       const GrCaps& caps) {
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) {}
32 
33 void GrGLPathRendering::resetContext() {}
34 
35 void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint,
36                                                              GrGLenum, GrGLint,
37                                                              const SkMatrix&) {}
38 
39 void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {}
40 
41 sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; }
42 
43 void GrGLPathRendering::onDrawPath(GrRenderTarget*, GrSurfaceOrigin,
44                                    const GrPrimitiveProcessor&,
45                                    const GrPipeline&,
46                                    const GrPipeline::FixedDynamicState&,
47                                    const GrStencilSettings&,
48                                    const GrPath*) {}
49 
50 void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
51 
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*) {}
61