• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "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"
19 
20 class GrRecordingContext;
21 
Create(GrResourceProvider * resourceProvider,const GrCaps & caps)22 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider,
23                                                       const GrCaps& caps) {
24     return nullptr;
25 }
26 
GrGLPathRendering(GrGLGpu * gpu)27 GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
28     : GrPathRendering(gpu)
29     , fPreallocatedPathCount(0) {}
30 
~GrGLPathRendering()31 GrGLPathRendering::~GrGLPathRendering() {}
32 
disconnect(GrGpu::DisconnectType)33 void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {}
34 
resetContext()35 void GrGLPathRendering::resetContext() {}
36 
setProgramPathFragmentInputTransform(GrGLuint,GrGLint,GrGLenum,GrGLint,const SkMatrix &)37 void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint,
38                                                              GrGLenum, GrGLint,
39                                                              const SkMatrix&) {}
40 
setProjectionMatrix(const SkMatrix &,const SkISize &,GrSurfaceOrigin)41 void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {}
42 
createPath(const SkPath &,const GrStyle &)43 sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; }
44 
onDrawPath(GrRenderTarget *,GrSurfaceOrigin,const GrPrimitiveProcessor &,const GrPipeline &,const GrPipeline::FixedDynamicState &,const GrStencilSettings &,const GrPath *)45 void GrGLPathRendering::onDrawPath(GrRenderTarget*, GrSurfaceOrigin,
46                                    const GrPrimitiveProcessor&,
47                                    const GrPipeline&,
48                                    const GrPipeline::FixedDynamicState&,
49                                    const GrStencilSettings&,
50                                    const GrPath*) {}
51 
onStencilPath(const StencilPathArgs &,const GrPath *)52 void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
53 
Make(GrRecordingContext *,const SkMatrix &,bool,GrPathRendering::FillType,bool,const GrScissorState &,const GrPath *)54 std::unique_ptr<GrOp> GrStencilPathOp::Make(GrRecordingContext*,
55                                             const SkMatrix&,
56                                             bool,
57                                             GrPathRendering::FillType,
58                                             bool,
59                                             const GrScissorState&,
60                                             const GrPath*) { return nullptr; }
61 
ComputeKey(const GrShape &,GrUniqueKey *,bool *)62 void GrPath::ComputeKey(const GrShape&, GrUniqueKey*, bool*) {}
63