blob: f2e3b43ed12732976c410100db7147c825b96e4d [file] [log] [blame]
dandovecfff212014-08-04 10:02:00 -07001/*
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
14class SK_API SkPatchUtils {
15
16public:
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