dandov | ecfff21 | 2014-08-04 10:02:00 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2014 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 SkPatchUtils_DEFINED |
| 9 | #define SkPatchUtils_DEFINED |
| 10 | |
| 11 | #include "SkPatch.h" |
| 12 | #include "SkMatrix.h" |
| 13 | |
| 14 | class SK_API SkPatchUtils { |
| 15 | |
| 16 | public: |
| 17 | /** |
| 18 | * Method that calculates a level of detail (number of subdivisions) for a patch in both axis. |
| 19 | */ |
| 20 | static SkISize GetLevelOfDetail(const SkPatch& patch, const SkMatrix* matrix); |
| 21 | }; |
| 22 | |
| 23 | #endif |