blob: ce46ad4fc4ab58d354e4fd720a7e4b633233b3d3 [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
20GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider,
21 const GrCaps& caps) {
Kevin Lubick4bf2c262018-10-15 09:35:54 -040022 return nullptr;
23}
24
25GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
26 : GrPathRendering(gpu)
27 , fPreallocatedPathCount(0) {}
28
29GrGLPathRendering::~GrGLPathRendering() {}
30
Mike Klein26a60492018-10-15 10:38:25 -040031void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040032
33void GrGLPathRendering::resetContext() {}
34
Mike Klein26a60492018-10-15 10:38:25 -040035void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint,
36 GrGLenum, GrGLint,
37 const SkMatrix&) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040038
Mike Klein26a60492018-10-15 10:38:25 -040039void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040040
Mike Klein26a60492018-10-15 10:38:25 -040041sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; }
Kevin Lubick4bf2c262018-10-15 09:35:54 -040042
Robert Phillipsd0fe8752019-01-31 14:13:59 -050043void GrGLPathRendering::onDrawPath(GrRenderTarget*, GrSurfaceOrigin,
44 const GrPrimitiveProcessor&,
Mike Klein26a60492018-10-15 10:38:25 -040045 const GrPipeline&,
46 const GrPipeline::FixedDynamicState&,
47 const GrStencilSettings&,
48 const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040049
Mike Klein26a60492018-10-15 10:38:25 -040050void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040051
Mike Klein26a60492018-10-15 10:38:25 -040052std::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
60void GrPath::ComputeKey(const GrShape&, GrUniqueKey*, bool*) {}