OLD | NEW |
---|---|
(Empty) | |
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 p atch in both axis. | |
19 */ | |
20 static SkIPoint GetLevelOfDetail(const SkPatch& patch, const SkMatrix* matri x); | |
bsalomon
2014/08/04 13:22:56
*Maybe* SkISize is more appropriate here, but not
| |
21 }; | |
22 | |
23 #endif | |
OLD | NEW |