diff options
author | reed <reed@google.com> | 2016-01-26 10:37:21 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-26 10:37:21 -0800 |
commit | ed0bf1b43e192c9bcade24702e5d673d1974bf55 (patch) | |
tree | 87390cb54a692efd5422b0ffdb04ed3d75920c97 /samplecode | |
parent | 6121405df5689875c7309c20632a82897fce4127 (diff) |
remove unused sample
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1634683006
TBR=
Review URL: https://codereview.chromium.org/1634683006
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleBox.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/samplecode/SampleBox.cpp b/samplecode/SampleBox.cpp deleted file mode 100644 index 8aec99265a..0000000000 --- a/samplecode/SampleBox.cpp +++ /dev/null @@ -1,55 +0,0 @@ - -/* - * Copyright 2011 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#include "SampleCode.h" -#include "SkView.h" -#include "SkCanvas.h" - -class SimpleView : public SampleView { -public: - SimpleView() { - this->setBGColor(0xFFDDDDDD); - } - -protected: - // overrides from SkEventSink - virtual bool onQuery(SkEvent* evt) { - if (SampleCode::TitleQ(*evt)) { - SampleCode::TitleR(evt, "Box Gradient"); - return true; - } - return this->INHERITED::onQuery(evt); - } - - virtual void onDrawContent(SkCanvas* canvas) { - SkPaint paint; - paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); - paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); - paint.setStyle(SkPaint::kFill_Style); - - SkRect r; - SkScalar x,y; - x = 10; - y = 10; - - r.set(x, y, x + SkIntToScalar(100), y + SkIntToScalar(100)); - for (int i = 0; i < 256; ++i) { - canvas->translate(1, 1); - paint.setColor(0xFF000000 + i * 0x00010000); - canvas->drawRect(r, paint); - } - } - -private: - typedef SampleView INHERITED; -}; - -////////////////////////////////////////////////////////////////////////////// - -static SkView* MyFactory() { return new SimpleView; } -static SkViewRegister reg(MyFactory); |