| 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 SkEmbeddableLinearPipeline; | 16 class SkEmbeddableLinearPipeline; | 
| 17 | 17 | 
|  | 18 enum SkGammaType { | 
|  | 19     kLinear_SkGammaType, | 
|  | 20     kSRGB_SkGammaType, | 
|  | 21 }; | 
|  | 22 | 
| 18 ////////////////////////////////////////////////////////////////////////////////
     /////////////////// | 23 ////////////////////////////////////////////////////////////////////////////////
     /////////////////// | 
| 19 // SkLinearBitmapPipeline - encapsulates all the machinery for doing floating po
     int pixel | 24 // SkLinearBitmapPipeline - encapsulates all the machinery for doing floating po
     int pixel | 
| 20 // processing in a linear color space. | 25 // processing in a linear color space. | 
| 21 // Note: this class has unusual alignment requirements due to its use of SIMD in
     structions. The | 26 // Note: this class has unusual alignment requirements due to its use of SIMD in
     structions. The | 
| 22 // class SkEmbeddableLinearPipeline below manages these requirements. | 27 // class SkEmbeddableLinearPipeline below manages these requirements. | 
| 23 class SkLinearBitmapPipeline { | 28 class SkLinearBitmapPipeline { | 
| 24 public: | 29 public: | 
| 25     SkLinearBitmapPipeline( | 30     SkLinearBitmapPipeline( | 
| 26         const SkMatrix& inverse, | 31         const SkMatrix& inverse, | 
| 27         SkFilterQuality filterQuality, | 32         SkFilterQuality filterQuality, | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 131 private: | 136 private: | 
| 132     enum { | 137     enum { | 
| 133         kActualSize = sizeof(SkLinearBitmapPipeline), | 138         kActualSize = sizeof(SkLinearBitmapPipeline), | 
| 134         kPaddedSize = SkAlignPtr(kActualSize + 12), | 139         kPaddedSize = SkAlignPtr(kActualSize + 12), | 
| 135     }; | 140     }; | 
| 136     void* fPipelineStorage[kPaddedSize / sizeof(void*)]; | 141     void* fPipelineStorage[kPaddedSize / sizeof(void*)]; | 
| 137     SkLinearBitmapPipeline* fPipeline{nullptr}; | 142     SkLinearBitmapPipeline* fPipeline{nullptr}; | 
| 138 }; | 143 }; | 
| 139 | 144 | 
| 140 #endif  // SkLinearBitmapPipeline_DEFINED | 145 #endif  // SkLinearBitmapPipeline_DEFINED | 
| OLD | NEW | 
|---|