blob: 9d69e402b9fe4f2d5630c927a3af204de5b36387 [file] [log] [blame]
Robert Phillips461c5392021-08-17 16:42:51 -04001/*
2 * Copyright 2011 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
8#ifndef AAHairLinePathRenderer_DEFINED
9#define AAHairLinePathRenderer_DEFINED
10
Robert Phillipsdb0ec082021-08-19 12:30:12 -040011#include "src/gpu/v1/PathRenderer.h"
Robert Phillips461c5392021-08-17 16:42:51 -040012
13namespace skgpu::v1 {
14
Robert Phillipsdb0ec082021-08-19 12:30:12 -040015class AAHairLinePathRenderer final : public PathRenderer {
Robert Phillips461c5392021-08-17 16:42:51 -040016public:
17 AAHairLinePathRenderer() = default;
18
19 const char* name() const override { return "AAHairline"; }
20
21private:
22 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
23
24 bool onDrawPath(const DrawPathArgs&) override;
Robert Phillips461c5392021-08-17 16:42:51 -040025};
26
27} // namespace skgpu::v1
28
29#endif // AAHairLinePathRenderer_DEFINED