SkPathMeasurePriv.h 746 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright 2016 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 SkPathMeasurePriv_DEFINED
  8. #define SkPathMeasurePriv_DEFINED
  9. #include "include/core/SkPath.h"
  10. #include "include/core/SkPoint.h"
  11. #include "src/core/SkGeometry.h"
  12. // Used in the Segment struct defined in SkPathMeasure.h
  13. // It is used as a 2-bit field so if you add to this
  14. // you must increase the size of the bitfield there.
  15. enum SkSegType {
  16. kLine_SegType,
  17. kQuad_SegType,
  18. kCubic_SegType,
  19. kConic_SegType,
  20. };
  21. void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType,
  22. SkScalar startT, SkScalar stopT, SkPath* dst);
  23. #endif // SkPathMeasurePriv_DEFINED