blob: 542ebdcb67cae5140446250c45cb069371e639df [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
Kevin Lubick4bf2c262018-10-15 09:35:54 -04008#include "GrCaps.h"
Kevin Lubick4bf2c262018-10-15 09:35:54 -04009#include "GrGpu.h"
Mike Klein26a60492018-10-15 10:38:25 -040010#include "GrPath.h"
Kevin Lubick4bf2c262018-10-15 09:35:54 -040011#include "GrPathRenderer.h"
12#include "GrPathRendering.h"
13#include "GrResourceProvider.h"
14#include "SkTypes.h"
15#include "gl/GrGLGpu.h"
Mike Klein26a60492018-10-15 10:38:25 -040016#include "gl/GrGLPathRendering.h"
Kevin Lubick4bf2c262018-10-15 09:35:54 -040017#include "ops/GrStencilAndCoverPathRenderer.h"
Mike Klein26a60492018-10-15 10:38:25 -040018#include "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
Robert Phillipsd0fe8752019-01-31 14:13:59 -050045void GrGLPathRendering::onDrawPath(GrRenderTarget*, GrSurfaceOrigin,
46 const GrPrimitiveProcessor&,
Mike Klein26a60492018-10-15 10:38:25 -040047 const GrPipeline&,
48 const GrPipeline::FixedDynamicState&,
49 const GrStencilSettings&,
50 const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040051
Mike Klein26a60492018-10-15 10:38:25 -040052void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040053
Robert Phillipsb97da532019-02-12 15:24:12 -050054std::unique_ptr<GrOp> GrStencilPathOp::Make(GrRecordingContext*,
Mike Klein26a60492018-10-15 10:38:25 -040055 const SkMatrix&,
56 bool,
57 GrPathRendering::FillType,
58 bool,
59 const GrScissorState&,
60 const GrPath*) { return nullptr; }
61
62void GrPath::ComputeKey(const GrShape&, GrUniqueKey*, bool*) {}