GrDashLinePathRenderer.h 656 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2015 Google Inc.
  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. #ifndef GrDashLinePathRenderer_DEFINED
  8. #define GrDashLinePathRenderer_DEFINED
  9. #include "src/gpu/GrPathRenderer.h"
  10. class GrGpu;
  11. class GrDashLinePathRenderer : public GrPathRenderer {
  12. private:
  13. CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
  14. StencilSupport onGetStencilSupport(const GrShape&) const override {
  15. return kNoSupport_StencilSupport;
  16. }
  17. bool onDrawPath(const DrawPathArgs&) override;
  18. sk_sp<GrGpu> fGpu;
  19. typedef GrPathRenderer INHERITED;
  20. };
  21. #endif