blob: f2e3b43ed12732976c410100db7147c825b96e4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkPatchUtils_DEFINED
#define SkPatchUtils_DEFINED
#include "SkPatch.h"
#include "SkMatrix.h"
class SK_API SkPatchUtils {
public:
/**
* Method that calculates a level of detail (number of subdivisions) for a patch in both axis.
*/
static SkISize GetLevelOfDetail(const SkPatch& patch, const SkMatrix* matrix);
};
#endif
|