aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-12-19 07:40:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-19 07:40:26 -0800
commit438b0d754d8c7b781fa50718c748c262bf3a772d (patch)
tree1fdbfc82bdcba6c64dbb8c5503092b7410663cdf /gm
parentb64e56941c9e88490ffdaf825ee25f7d830c6350 (diff)
Enable new gradients + suppress gms for now
Diffstat (limited to 'gm')
-rw-r--r--gm/gradtext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gm/gradtext.cpp b/gm/gradtext.cpp
index 96ce59f841..47440f6d18 100644
--- a/gm/gradtext.cpp
+++ b/gm/gradtext.cpp
@@ -106,7 +106,11 @@ protected:
return SkString("gradtext");
}
- virtual SkISize onISize() { return SkISize::Make(500, 480); }
+ uint32_t onGetFlags() const SK_OVERRIDE {
+ return kSkipTiled_Flag;
+ }
+
+ SkISize onISize() SK_OVERRIDE { return SkISize::Make(500, 480); }
static void draw_text(SkCanvas* canvas, const SkPaint& paint) {
const char* text = "When in the course of human events";
@@ -127,7 +131,7 @@ protected:
draw_text(canvas, p);
}
- virtual void onDraw(SkCanvas* canvas) {
+ void onDraw(SkCanvas* canvas) SK_OVERRIDE {
SkPaint paint;
sk_tool_utils::set_portable_typeface(&paint);
paint.setTextSize(SkIntToScalar(26));