| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SampleCode.h" | 8 #include "SampleCode.h" |
| 9 #include "SkView.h" | 9 #include "SkView.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 11 #include "SkGradientShader.h" | 11 #include "SkGradientShader.h" |
| 12 #include "SkGraphics.h" | 12 #include "SkGraphics.h" |
| 13 #include "SkImageDecoder.h" | 13 #include "SkImageDecoder.h" |
| 14 #include "SkPath.h" | 14 #include "SkPath.h" |
| 15 #include "SkRandom.h" | 15 #include "SkRandom.h" |
| 16 #include "SkRegion.h" | 16 #include "SkRegion.h" |
| 17 #include "SkShader.h" | 17 #include "SkShader.h" |
| 18 #include "SkUtils.h" | 18 #include "SkUtils.h" |
| 19 #include "SkColorPriv.h" | 19 #include "SkColorPriv.h" |
| 20 #include "SkColorFilter.h" | 20 #include "SkColorFilter.h" |
| 21 #include "SkTime.h" | 21 #include "SkTime.h" |
| 22 #include "SkTypeface.h" | 22 #include "SkTypeface.h" |
| 23 #include "SkXfermode.h" | 23 #include "SkXfermode.h" |
| 24 | 24 |
| 25 #include "SkStream.h" | 25 #include "SkStream.h" |
| 26 #include "SkXMLParser.h" | |
| 27 | 26 |
| 28 class PointsView : public SampleView { | 27 class PointsView : public SampleView { |
| 29 public: | 28 public: |
| 30 PointsView() {} | 29 PointsView() {} |
| 31 | 30 |
| 32 protected: | 31 protected: |
| 33 // overrides from SkEventSink | 32 // overrides from SkEventSink |
| 34 virtual bool onQuery(SkEvent* evt) { | 33 virtual bool onQuery(SkEvent* evt) { |
| 35 if (SampleCode::TitleQ(*evt)) { | 34 if (SampleCode::TitleQ(*evt)) { |
| 36 SampleCode::TitleR(evt, "Points"); | 35 SampleCode::TitleR(evt, "Points"); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 72 |
| 74 private: | 73 private: |
| 75 | 74 |
| 76 typedef SampleView INHERITED; | 75 typedef SampleView INHERITED; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 ////////////////////////////////////////////////////////////////////////////// | 78 ////////////////////////////////////////////////////////////////////////////// |
| 80 | 79 |
| 81 static SkView* MyFactory() { return new PointsView; } | 80 static SkView* MyFactory() { return new PointsView; } |
| 82 static SkViewRegister reg(MyFactory); | 81 static SkViewRegister reg(MyFactory); |
| OLD | NEW |