blob: 8dbaca6f3f896c4706d2045ca8ccd22a98059629 [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
8#include "GrPath.h"
9#include "GrCaps.h"
10#include "gl/GrGLPathRendering.h"
11#include "GrGpu.h"
12#include "GrPathRenderer.h"
13#include "GrPathRendering.h"
14#include "GrResourceProvider.h"
15#include "SkTypes.h"
16#include "gl/GrGLGpu.h"
17#include "ops/GrStencilAndCoverPathRenderer.h"
18
19GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider,
20 const GrCaps& caps) {
21 SkDEBUGFAIL("NVPR disabled");
22 return nullptr;
23}
24
25GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
26 : GrPathRendering(gpu)
27 , fPreallocatedPathCount(0) {}
28
29GrGLPathRendering::~GrGLPathRendering() {}
30
31void GrGLPathRendering::disconnect(GrGpu::DisconnectType type) {}
32
33void GrGLPathRendering::resetContext() {}
34
35void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location,
36 GrGLenum genMode, GrGLint components,
37 const SkMatrix& matrix) {}
38
39void GrGLPathRendering::setProjectionMatrix(const SkMatrix& matrix,
40 const SkISize& renderTargetSize,
41 GrSurfaceOrigin renderTargetOrigin) {}
42
43sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath& inPath, const GrStyle& style) {
44 return nullptr;
45}
46
47void GrGLPathRendering::onDrawPath(const GrPrimitiveProcessor& primProc,
48 const GrPipeline& pipeline,
49 const GrPipeline::FixedDynamicState& fixedDynamicState,
50 const GrStencilSettings& stencilPassSettings,
51 const GrPath* path) {}
52
53void GrGLPathRendering::onStencilPath(const StencilPathArgs& args, const GrPath* path) {}
54