| 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 "SkBlurMaskFilter.h" | 9 #include "SkBlurMaskFilter.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 11 #include "SkDevice.h" | |
| 12 #include "SkReadBuffer.h" | 11 #include "SkReadBuffer.h" |
| 13 #include "SkWriteBuffer.h" | 12 #include "SkWriteBuffer.h" |
| 14 #include "SkGradientShader.h" | 13 #include "SkGradientShader.h" |
| 15 #include "SkLayerRasterizer.h" | 14 #include "SkLayerRasterizer.h" |
| 16 #include "SkPaint.h" | 15 #include "SkPaint.h" |
| 17 #include "SkView.h" | 16 #include "SkView.h" |
| 18 | 17 |
| 19 #define BG_COLOR 0xFFDDDDDD | 18 #define BG_COLOR 0xFFDDDDDD |
| 20 | 19 |
| 21 typedef void (*SlideProc)(SkCanvas*); | 20 typedef void (*SlideProc)(SkCanvas*); |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 } | 708 } |
| 710 | 709 |
| 711 private: | 710 private: |
| 712 typedef SampleView INHERITED; | 711 typedef SampleView INHERITED; |
| 713 }; | 712 }; |
| 714 | 713 |
| 715 ////////////////////////////////////////////////////////////////////////////// | 714 ////////////////////////////////////////////////////////////////////////////// |
| 716 | 715 |
| 717 static SkView* MyFactory() { return new SlideView; } | 716 static SkView* MyFactory() { return new SlideView; } |
| 718 static SkViewRegister reg(MyFactory); | 717 static SkViewRegister reg(MyFactory); |
| OLD | NEW |