aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/patch.cpp
diff options
context:
space:
mode:
authorGravatar dandov <dandov@google.com>2014-08-12 17:14:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-12 17:14:57 -0700
commitcc03adb90901d226e8b0252a187b19a68fabcc42 (patch)
treea9819f8092333085469e8fe63097d6b3b6f0c486 /gm/patch.cpp
parentdc065f2c20869e92254a901f00f404d64f05bab7 (diff)
Proposal for the mesh gradient interface. Implemented as a grid of
patches and uses 4 private arrays to store the values of the control points and colors. When it needs a patch at a certain position of the grid it just builds it using the corresponding values of the array and the grid coordinates provided. Details on implementation are documented in the corresponding classes' comments. Also added a gm for mesh gradients. BUG=skia: R=egdaniel@google.com, reed@google.com Author: dandov@google.com Review URL: https://codereview.chromium.org/451723003
Diffstat (limited to 'gm/patch.cpp')
-rw-r--r--gm/patch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/patch.cpp b/gm/patch.cpp
index d4fe4ff1f3..2579993b82 100644
--- a/gm/patch.cpp
+++ b/gm/patch.cpp
@@ -87,9 +87,9 @@ 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.