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 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 class PointProcessorInterface; | 127 class PointProcessorInterface; |
128 class SampleProcessorInterface; | 128 class SampleProcessorInterface; |
129 class BlendProcessorInterface; | 129 class BlendProcessorInterface; |
130 class DestinationInterface; | 130 class DestinationInterface; |
131 class PixelAccessorInterface; | 131 class PixelAccessorInterface; |
132 | 132 |
133 // These values were generated by the assert above in Stage::init{Sink|Stage
}. | 133 // These values were generated by the assert above in Stage::init{Sink|Stage
}. |
134 using MatrixStage = Stage<PointProcessorInterface, 160, PointProcessorIn
terface>; | 134 using MatrixStage = Stage<PointProcessorInterface, 160, PointProcessorIn
terface>; |
135 using TileStage = Stage<PointProcessorInterface, 160, SampleProcessorI
nterface>; | 135 using TileStage = Stage<PointProcessorInterface, 160, SampleProcessorI
nterface>; |
136 using SampleStage = Stage<SampleProcessorInterface, 100, BlendProcessorIn
terface>; | 136 using SampleStage = Stage<SampleProcessorInterface, 160, BlendProcessorIn
terface>; |
137 using BlenderStage = Stage<BlendProcessorInterface, 40>; | 137 using BlenderStage = Stage<BlendProcessorInterface, 40>; |
138 using Accessor = PolyMemory<PixelAccessorInterface, 48>; | 138 using Accessor = PolyMemory<PixelAccessorInterface, 64>; |
139 | 139 |
140 private: | 140 private: |
141 PointProcessorInterface* fFirstStage; | 141 PointProcessorInterface* fFirstStage; |
142 MatrixStage fMatrixStage; | 142 MatrixStage fMatrixStage; |
143 TileStage fTileStage; | 143 TileStage fTileStage; |
144 SampleStage fSampleStage; | 144 SampleStage fSampleStage; |
145 BlenderStage fBlenderStage; | 145 BlenderStage fBlenderStage; |
146 DestinationInterface* fLastStage; | 146 DestinationInterface* fLastStage; |
147 Accessor fAccessor; | 147 Accessor fAccessor; |
148 }; | 148 }; |
(...skipping 23 matching lines...) Expand all Loading... |
172 private: | 172 private: |
173 enum { | 173 enum { |
174 kActualSize = sizeof(SkLinearBitmapPipeline), | 174 kActualSize = sizeof(SkLinearBitmapPipeline), |
175 kPaddedSize = SkAlignPtr(kActualSize + 12), | 175 kPaddedSize = SkAlignPtr(kActualSize + 12), |
176 }; | 176 }; |
177 void* fPipelineStorage[kPaddedSize / sizeof(void*)]; | 177 void* fPipelineStorage[kPaddedSize / sizeof(void*)]; |
178 SkLinearBitmapPipeline* fPipeline{nullptr}; | 178 SkLinearBitmapPipeline* fPipeline{nullptr}; |
179 }; | 179 }; |
180 | 180 |
181 #endif // SkLinearBitmapPipeline_DEFINED | 181 #endif // SkLinearBitmapPipeline_DEFINED |
OLD | NEW |