OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 #ifndef SkLinearBitmapPipeline_DEFINED | 8 #ifndef SkLinearBitmapPipeline_DEFINED |
9 #define SkLinearBitmapPipeline_DEFINED | 9 #define SkLinearBitmapPipeline_DEFINED |
10 | 10 |
11 | 11 |
12 #include "SkColor.h" | 12 #include "SkColor.h" |
13 #include "SkImageInfo.h" | 13 #include "SkImageInfo.h" |
14 #include "SkMatrix.h" | 14 #include "SkMatrix.h" |
15 #include "SkNx.h" | 15 #include "SkNx.h" |
16 #include "SkShader.h" | 16 #include "SkShader.h" |
17 | 17 |
18 using Sk4fArg = const Sk4f&; | 18 using Sk4fArg = const Sk4f&; |
19 | 19 |
20 class PointProcessorInterface { | 20 class PointProcessorInterface { |
21 public: | 21 public: |
22 virtual ~PointProcessorInterface() { } | 22 virtual ~PointProcessorInterface() { } |
23 virtual void pointListFew(int n, Sk4fArg xs, Sk4fArg ys) = 0; | 23 virtual void pointListFew(int n, Sk4fArg xs, Sk4fArg ys) = 0; |
24 virtual void pointList4(Sk4fArg xs, Sk4fArg ys) = 0; | 24 virtual void pointList4(Sk4fArg xs, Sk4fArg ys) = 0; |
| 25 virtual void pointSpan(SkPoint start, SkScalar length, int count) = 0; |
25 }; | 26 }; |
26 | 27 |
27 class BilerpProcessorInterface : public PointProcessorInterface { | 28 class BilerpProcessorInterface : public PointProcessorInterface { |
28 public: | 29 public: |
29 // The x's and y's are setup in the following order: | 30 // The x's and y's are setup in the following order: |
30 // +--------+--------+ | 31 // +--------+--------+ |
31 // | | | | 32 // | | | |
32 // | px00 | px10 | | 33 // | px00 | px10 | |
33 // | 0 | 1 | | 34 // | 0 | 1 | |
34 // +--------+--------+ | 35 // +--------+--------+ |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 PointProcessorInterface* fFirstStage; | 96 PointProcessorInterface* fFirstStage; |
96 MatrixStage fMatrixStage; | 97 MatrixStage fMatrixStage; |
97 FilterStage fFilterStage; | 98 FilterStage fFilterStage; |
98 TileStage fTileXOrBothStage; | 99 TileStage fTileXOrBothStage; |
99 TileStage fTileYStage; | 100 TileStage fTileYStage; |
100 SampleStage fSampleStage; | 101 SampleStage fSampleStage; |
101 PixelStage fPixelStage; | 102 PixelStage fPixelStage; |
102 }; | 103 }; |
103 | 104 |
104 #endif // SkLinearBitmapPipeline_DEFINED | 105 #endif // SkLinearBitmapPipeline_DEFINED |
OLD | NEW |