OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * 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 |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "SampleCode.h" | 8 #include "SampleCode.h" |
9 #include "SkBlurMask.h" | 9 #include "SkBlurMask.h" |
10 #include "SkBlurMaskFilter.h" | 10 #include "SkBlurMaskFilter.h" |
11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
12 #include "SkDevice.h" | 12 #include "SkDevice.h" |
13 #include "SkFlattenableBuffers.h" | 13 #include "SkReadBuffer.h" |
| 14 #include "SkWriteBuffer.h" |
14 #include "SkGradientShader.h" | 15 #include "SkGradientShader.h" |
15 #include "SkLayerRasterizer.h" | 16 #include "SkLayerRasterizer.h" |
16 #include "SkPaint.h" | 17 #include "SkPaint.h" |
17 #include "SkView.h" | 18 #include "SkView.h" |
18 | 19 |
19 #define BG_COLOR 0xFFDDDDDD | 20 #define BG_COLOR 0xFFDDDDDD |
20 | 21 |
21 typedef void (*SlideProc)(SkCanvas*); | 22 typedef void (*SlideProc)(SkCanvas*); |
22 | 23 |
23 /////////////////////////////////////////////////////////////////////////////// | 24 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 } | 726 } |
726 | 727 |
727 private: | 728 private: |
728 typedef SampleView INHERITED; | 729 typedef SampleView INHERITED; |
729 }; | 730 }; |
730 | 731 |
731 ////////////////////////////////////////////////////////////////////////////// | 732 ////////////////////////////////////////////////////////////////////////////// |
732 | 733 |
733 static SkView* MyFactory() { return new SlideView; } | 734 static SkView* MyFactory() { return new SlideView; } |
734 static SkViewRegister reg(MyFactory); | 735 static SkViewRegister reg(MyFactory); |
OLD | NEW |