diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-31 14:18:20 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-31 14:18:20 +0000 |
commit | 48dd1a26ec07c5baa04856202e4e7e2a53e4d7e5 (patch) | |
tree | a9ceb415616952a40de7f286a556e20e4841bbf3 /gm/shadertext.cpp | |
parent | 562a2ac95b8cd8b359574f8c4d6300b0475938db (diff) |
Import all GMs as Samples.
Review URL: http://codereview.appspot.com/5332043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2564 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/shadertext.cpp')
-rw-r--r-- | gm/shadertext.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gm/shadertext.cpp b/gm/shadertext.cpp index 2df03cce93..b574ab6ad6 100644 --- a/gm/shadertext.cpp +++ b/gm/shadertext.cpp @@ -109,7 +109,9 @@ static const GradMaker gGradMakers[] = { class ShaderTextGM : public GM { public: - ShaderTextGM() {} + ShaderTextGM() { + this->setBGColor(0xFFDDDDDD); + } protected: @@ -119,13 +121,7 @@ protected: SkISize onISize() { return make_isize(1450, 500); } - void drawBG(SkCanvas* canvas) { - canvas->drawColor(0xFFDDDDDD); - } - virtual void onDraw(SkCanvas* canvas) { - this->drawBG(canvas); - const char text[] = "Shaded Text"; const int textLen = SK_ARRAY_COUNT(text) - 1; const int pointSize = 36; |