GrPathRendering_none.cpp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  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. #include "include/core/SkTypes.h"
  8. #include "src/gpu/GrCaps.h"
  9. #include "src/gpu/GrGpu.h"
  10. #include "src/gpu/GrPath.h"
  11. #include "src/gpu/GrPathRenderer.h"
  12. #include "src/gpu/GrPathRendering.h"
  13. #include "src/gpu/GrResourceProvider.h"
  14. #include "src/gpu/gl/GrGLGpu.h"
  15. #include "src/gpu/gl/GrGLPathRendering.h"
  16. #include "src/gpu/ops/GrStencilAndCoverPathRenderer.h"
  17. #include "src/gpu/ops/GrStencilPathOp.h"
  18. class GrRecordingContext;
  19. GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider,
  20. const GrCaps& caps) {
  21. return nullptr;
  22. }
  23. GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
  24. : GrPathRendering(gpu)
  25. , fPreallocatedPathCount(0) {}
  26. GrGLPathRendering::~GrGLPathRendering() {}
  27. void GrGLPathRendering::disconnect(GrGpu::DisconnectType) {}
  28. void GrGLPathRendering::resetContext() {}
  29. void GrGLPathRendering::setProgramPathFragmentInputTransform(GrGLuint, GrGLint,
  30. GrGLenum, GrGLint,
  31. const SkMatrix&) {}
  32. void GrGLPathRendering::setProjectionMatrix(const SkMatrix&, const SkISize&, GrSurfaceOrigin) {}
  33. sk_sp<GrPath> GrGLPathRendering::createPath(const SkPath&, const GrStyle&) { return nullptr; }
  34. void GrGLPathRendering::onDrawPath(GrRenderTarget*, GrSurfaceOrigin,
  35. const GrPrimitiveProcessor&,
  36. const GrPipeline&,
  37. const GrPipeline::FixedDynamicState&,
  38. const GrStencilSettings&,
  39. const GrPath*) {}
  40. void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {}
  41. std::unique_ptr<GrOp> GrStencilPathOp::Make(GrRecordingContext*,
  42. const SkMatrix&,
  43. bool,
  44. GrPathRendering::FillType,
  45. bool,
  46. const GrScissorState&,
  47. const GrPath*) { return nullptr; }
  48. void GrPath::ComputeKey(const GrShape&, GrUniqueKey*, bool*) {}