blob: bbd4610aae2fc2b44a235c54c7e568934f1e17ed [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
Mike Klein26a60492018-10-15 10:38:25 -040043void GrGLPathRendering::onDrawPath(const GrPrimitiveProcessor&,
44 const GrPipeline&,
45 const GrPipeline::FixedDynamicState&,
46 const GrStencilSettings&,
47 const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040048
Mike Klein26a60492018-10-15 10:38:25 -040049void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040050
Mike Klein26a60492018-10-15 10:38:25 -040051std::unique_ptr<GrOp> GrStencilPathOp::Make(GrContext*,
52 const SkMatrix&,
53 bool,
54 GrPathRendering::FillType,
55 bool,
56 const GrScissorState&,
57 const GrPath*) { return nullptr; }
58
59void GrPath::ComputeKey(const GrShape&, GrUniqueKey*, bool*) {}