| OLD | NEW |
| 1 |
| 1 /* | 2 /* |
| 2 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 3 * | 4 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 6 */ | 7 */ |
| 7 | |
| 8 #include "SampleCode.h" | 8 #include "SampleCode.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| 11 #include "SkPath.h" | |
| 12 #include "SkView.h" | 11 #include "SkView.h" |
| 13 | 12 |
| 14 /////////////////////////////////////////////////////////////////////////////// | 13 /////////////////////////////////////////////////////////////////////////////// |
| 15 | 14 |
| 16 class LayerMaskView : public SampleView { | 15 class LayerMaskView : public SampleView { |
| 17 public: | 16 public: |
| 18 LayerMaskView() { | 17 LayerMaskView() { |
| 19 this->setBGColor(0xFFDDDDDD); | 18 this->setBGColor(0xFFDDDDDD); |
| 20 } | 19 } |
| 21 | 20 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 64 } |
| 66 | 65 |
| 67 private: | 66 private: |
| 68 typedef SampleView INHERITED; | 67 typedef SampleView INHERITED; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 /////////////////////////////////////////////////////////////////////////////// | 70 /////////////////////////////////////////////////////////////////////////////// |
| 72 | 71 |
| 73 static SkView* MyFactory() { return new LayerMaskView; } | 72 static SkView* MyFactory() { return new LayerMaskView; } |
| 74 static SkViewRegister reg(MyFactory); | 73 static SkViewRegister reg(MyFactory); |
| OLD | NEW |