blob: 048e8a30202b16d8282dd88bab8a5c0213195437 [file] [log] [blame]
Kevin Lubick4bf2c262018-10-15 09:35:54 -04001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#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"
Kevin Lubick4bf2c262018-10-15 09:35:54 -040019
Robert Phillipsb97da532019-02-12 15:24:12 -050020class GrRecordingContext;
21
Kevin Lubick4bf2c262018-10-15 09:35:54 -040022GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider,
23 const GrCaps& caps) {
Kevin Lubick4bf2c262018-10-15 09:35:54 -040024 return nullptr;
25}
26
27GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
28 : GrPathRendering(gpu)
29 , fPreallocatedPathCount(0) {}
30
31GrGLPathRendering::~GrGLPathRendering() {}
32
Mike Klein26a60492018-10-15 10:38:25 -040033void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040034
35void GrGLPathRendering::resetContext() {}
36
Mike Klein26a60492018-10-15 10:38:25 -040037void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint,
38 GrGLenum, GrGLint,
39 const SkMatrix&) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040040
Mike Klein26a60492018-10-15 10:38:25 -040041void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040042
Mike Klein26a60492018-10-15 10:38:25 -040043sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; }
Kevin Lubick4bf2c262018-10-15 09:35:54 -040044
Chris Dalton304e14d2020-03-17 14:29:06 -060045void GrGLPathRendering::onDrawPath(const GrStencilSettings&, const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040046
Mike Klein26a60492018-10-15 10:38:25 -040047void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040048
Robert Phillipsb97da532019-02-12 15:24:12 -050049std::unique_ptr<GrOp> GrStencilPathOp::Make(GrRecordingContext*,
Mike Klein26a60492018-10-15 10:38:25 -040050 const SkMatrix&,
51 bool,
Mike Klein26a60492018-10-15 10:38:25 -040052 bool,
53 const GrScissorState&,
Robert Phillipse1efd382019-08-21 10:07:10 -040054 sk_sp<const GrPath>) { return nullptr; }
Mike Klein26a60492018-10-15 10:38:25 -040055
Michael Ludwig2686d692020-04-17 20:21:37 +000056void GrPath::ComputeKey(const GrStyledShape&, GrUniqueKey*, bool*) {}