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

Unified Diff: gm/patch.cpp

Issue 451723003: SkPatchGrid interface (after SkPatch/SkPicture rebase). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Changed name to SkPatchGrid 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: gm/patch.cpp
diff --git a/gm/patch.cpp b/gm/patch.cpp
index 3f1e07910be6ea21407018c8a2bb5134ea03e77c..74d77834ae31eea70354fd03ee12e424784f5754 100644
--- a/gm/patch.cpp
+++ b/gm/patch.cpp
@@ -82,15 +82,14 @@ protected:
virtual uint32_t onGetFlags() const SK_OVERRIDE {
return kSkipTiled_Flag;
}
-
+
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
-
+
SkPaint paint;
-
- // The order of the colors and points is clockwise starting at upper-left corner.
- SkColor colors[SkPatch::kNumColors] = {
+ SkColor colors[4] = {
SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorCYAN
};
+
SkPoint points[SkPatch::kNumCtrlPts] = {
//top points
{50,50},{75,20},{125,80}, {150,50},

Powered by Google App Engine
This is Rietveld 408576698