| 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 #include "SkColor.h" | 11 #include "SkColor.h" |
| 12 #include "SkImageInfo.h" | 12 #include "SkImageInfo.h" |
| 13 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
| 14 #include "SkShader.h" | 14 #include "SkShader.h" |
| 15 | 15 |
| 16 class SkLinearBitmapPipeline { | 16 class SkLinearBitmapPipeline { |
| 17 public: | 17 public: |
| 18 SkLinearBitmapPipeline( | 18 SkLinearBitmapPipeline( |
| 19 const SkMatrix& inverse, | 19 const SkMatrix& inverse, |
| 20 SkFilterQuality filterQuality, | 20 SkFilterQuality filterQuality, |
| 21 SkShader::TileMode xTile, SkShader::TileMode yTile, | 21 SkShader::TileMode xTile, SkShader::TileMode yTile, |
| 22 float postAlpha, | 22 SkColor paintColor, |
| 23 const SkPixmap& srcPixmap); | 23 const SkPixmap& srcPixmap); |
| 24 | 24 |
| 25 | 25 |
| 26 | 26 |
| 27 static bool ClonePipelineForBlitting( | 27 static bool ClonePipelineForBlitting( |
| 28 void* blitterStorage, | 28 void* blitterStorage, |
| 29 const SkLinearBitmapPipeline& pipeline, | 29 const SkLinearBitmapPipeline& pipeline, |
| 30 SkMatrix::TypeMask matrixMask, | 30 SkMatrix::TypeMask matrixMask, |
| 31 SkShader::TileMode xTileMode, | 31 SkShader::TileMode xTileMode, |
| 32 SkShader::TileMode yTileMode, | 32 SkShader::TileMode yTileMode, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 PointProcessorInterface* fFirstStage; | 96 PointProcessorInterface* fFirstStage; |
| 97 MatrixStage fMatrixStage; | 97 MatrixStage fMatrixStage; |
| 98 TileStage fTileStage; | 98 TileStage fTileStage; |
| 99 SampleStage fSampleStage; | 99 SampleStage fSampleStage; |
| 100 BlenderStage fBlenderStage; | 100 BlenderStage fBlenderStage; |
| 101 DestinationInterface* fLastStage; | 101 DestinationInterface* fLastStage; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif // SkLinearBitmapPipeline_DEFINED | 104 #endif // SkLinearBitmapPipeline_DEFINED |
| OLD | NEW |