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