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/tinybitmap.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/tinybitmap.cpp')
-rw-r--r-- | gm/tinybitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/tinybitmap.cpp b/gm/tinybitmap.cpp index 2c45437b19..d532b5b499 100644 --- a/gm/tinybitmap.cpp +++ b/gm/tinybitmap.cpp @@ -35,6 +35,7 @@ class TinyBitmapGM : public GM { SkBitmap fBM; public: TinyBitmapGM() { + this->setBGColor(0xFFDDDDDD); fBM = make_bitmap(); } @@ -46,7 +47,6 @@ protected: virtual SkISize onISize() { return make_isize(100, 100); } virtual void onDraw(SkCanvas* canvas) { - canvas->drawColor(0xFFDDDDDD); SkShader* s = SkShader::CreateBitmapShader(fBM, SkShader::kRepeat_TileMode, SkShader::kMirror_TileMode); |