| 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 "SkCornerPathEffect.h" | 11 #include "SkCornerPathEffect.h" |
| 12 #include "SkGradientShader.h" | 12 #include "SkGradientShader.h" |
| 13 #include "SkGraphics.h" | 13 #include "SkGraphics.h" |
| 14 #include "SkImageDecoder.h" | 14 #include "SkImageDecoder.h" |
| 15 #include "SkPath.h" | 15 #include "SkPath.h" |
| 16 #include "SkRandom.h" | 16 #include "SkRandom.h" |
| 17 #include "SkRegion.h" | 17 #include "SkRegion.h" |
| 18 #include "SkShader.h" | 18 #include "SkShader.h" |
| 19 #include "SkUtils.h" | 19 #include "SkUtils.h" |
| 20 #include "SkColorPriv.h" | 20 #include "SkColorPriv.h" |
| 21 #include "SkColorFilter.h" | 21 #include "SkColorFilter.h" |
| 22 #include "SkTime.h" | 22 #include "SkTime.h" |
| 23 #include "SkTypeface.h" | 23 #include "SkTypeface.h" |
| 24 #include "SkXfermode.h" | 24 #include "SkXfermode.h" |
| 25 | 25 |
| 26 #include "SkStream.h" | 26 #include "SkStream.h" |
| 27 #include "SkXMLParser.h" | |
| 28 #include "SkColorPriv.h" | 27 #include "SkColorPriv.h" |
| 29 #include "SkImageDecoder.h" | 28 #include "SkImageDecoder.h" |
| 30 | 29 |
| 31 class LinesView : public SampleView { | 30 class LinesView : public SampleView { |
| 32 public: | 31 public: |
| 33 LinesView() {} | 32 LinesView() {} |
| 34 | 33 |
| 35 protected: | 34 protected: |
| 36 // overrides from SkEventSink | 35 // overrides from SkEventSink |
| 37 bool onQuery(SkEvent* evt) override { | 36 bool onQuery(SkEvent* evt) override { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 private: | 103 private: |
| 105 | 104 |
| 106 int fAlpha; | 105 int fAlpha; |
| 107 typedef SampleView INHERITED; | 106 typedef SampleView INHERITED; |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 ////////////////////////////////////////////////////////////////////////////// | 109 ////////////////////////////////////////////////////////////////////////////// |
| 111 | 110 |
| 112 static SkView* MyFactory() { return new LinesView; } | 111 static SkView* MyFactory() { return new LinesView; } |
| 113 static SkViewRegister reg(MyFactory); | 112 static SkViewRegister reg(MyFactory); |
| OLD | NEW |