| 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 #include "SampleCode.h" | 7 #include "SampleCode.h" |
| 8 #include "SkBlurMask.h" | 8 #include "SkBlurMask.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkView.h" | 10 #include "SkView.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(Dot2DPathEffect) | 164 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(Dot2DPathEffect) |
| 165 | 165 |
| 166 protected: | 166 protected: |
| 167 void next(const SkPoint& loc, int u, int v, SkPath* dst) const override { | 167 void next(const SkPoint& loc, int u, int v, SkPath* dst) const override { |
| 168 dst->addCircle(loc.fX, loc.fY, fRadius); | 168 dst->addCircle(loc.fX, loc.fY, fRadius); |
| 169 } | 169 } |
| 170 | 170 |
| 171 void flatten(SkWriteBuffer& buffer) const override { | 171 void flatten(SkWriteBuffer& buffer) const override { |
| 172 this->INHERITED::flatten(buffer); | 172 this->INHERITED::flatten(buffer); |
| 173 buffer.writeScalar(fRadius); | 173 buffer.writeScalar("fRadius", fRadius); |
| 174 } | 174 } |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 SkScalar fRadius; | 177 SkScalar fRadius; |
| 178 | 178 |
| 179 typedef Sk2DPathEffect INHERITED; | 179 typedef Sk2DPathEffect INHERITED; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 static void r7(SkLayerRasterizer::Builder* rastBuilder, SkPaint& p) { | 182 static void r7(SkLayerRasterizer::Builder* rastBuilder, SkPaint& p) { |
| 183 SkMatrix lattice; | 183 SkMatrix lattice; |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 private: | 560 private: |
| 561 SkPoint fClickPt; | 561 SkPoint fClickPt; |
| 562 SkBitmap fBug, fTb, fTx; | 562 SkBitmap fBug, fTb, fTx; |
| 563 typedef SampleView INHERITED; | 563 typedef SampleView INHERITED; |
| 564 }; | 564 }; |
| 565 | 565 |
| 566 ////////////////////////////////////////////////////////////////////////////// | 566 ////////////////////////////////////////////////////////////////////////////// |
| 567 | 567 |
| 568 static SkView* MyFactory() { return new DemoView; } | 568 static SkView* MyFactory() { return new DemoView; } |
| 569 static SkViewRegister reg(MyFactory); | 569 static SkViewRegister reg(MyFactory); |
| OLD | NEW |