Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: src/utils/SkPatchUtils.h

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/utils/SkPatchUtils.h
diff --git a/src/utils/SkPatchUtils.h b/src/utils/SkPatchUtils.h
index f2e3b43ed12732976c410100db7147c825b96e4d..9d3616a488c679157ba242fdd5f2cf5a78ff85d4 100644
--- a/src/utils/SkPatchUtils.h
+++ b/src/utils/SkPatchUtils.h
@@ -17,7 +17,14 @@ 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);
+ static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
+ static void getTopCubic(const SkPoint cubics[12], SkPoint points[4]);
+ static void getBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
+ static void getLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
+ static void getRightCubic(const SkPoint cubics[12], SkPoint points[4]);
+ static bool getVertexData(SkPatch::VertexData* data, const SkPoint cubics[12],
+ const SkColor colors[4], const SkPoint texCoords[4],
+ int lodX, int lodY);
};
#endif

Powered by Google App Engine
This is Rietveld 408576698