blob: f289395125340a5180bfdd7426bf6af29ea1e5b1 [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) {
22 SkDEBUGFAIL("NVPR disabled");
23 return nullptr;
24}
25
26GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
27 : GrPathRendering(gpu)
28 , fPreallocatedPathCount(0) {}
29
30GrGLPathRendering::~GrGLPathRendering() {}
31
Mike Klein26a60492018-10-15 10:38:25 -040032void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040033
34void GrGLPathRendering::resetContext() {}
35
Mike Klein26a60492018-10-15 10:38:25 -040036void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint,
37 GrGLenum, GrGLint,
38 const SkMatrix&) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040039
Mike Klein26a60492018-10-15 10:38:25 -040040void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {}
Kevin Lubick4bf2c262018-10-15 09:35:54 -040041
Mike Klein26a60492018-10-15 10:38:25 -040042sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; }
Kevin Lubick4bf2c262018-10-15 09:35:54 -040043
Mike Klein26a60492018-10-15 10:38:25 -040044void GrGLPathRendering::onDrawPath(const GrPrimitiveProcessor&,
45 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*) {}