| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkColorCubeFilter_DEFINED | 8 #ifndef SkColorCubeFilter_DEFINED |
| 9 #define SkColorCubeFilter_DEFINED | 9 #define SkColorCubeFilter_DEFINED |
| 10 | 10 |
| 11 #include "SkColorFilter.h" | 11 #include "SkColorFilter.h" |
| 12 #include "SkData.h" | 12 #include "SkData.h" |
| 13 #include "SkMutex.h" |
| 13 | 14 |
| 14 class SK_API SkColorCubeFilter : public SkColorFilter { | 15 class SK_API SkColorCubeFilter : public SkColorFilter { |
| 15 public: | 16 public: |
| 16 /** cubeData must containt a 3D data in the form of cube of the size: | 17 /** cubeData must containt a 3D data in the form of cube of the size: |
| 17 * cubeDimension * cubeDimension * cubeDimension * sizeof(SkColor) | 18 * cubeDimension * cubeDimension * cubeDimension * sizeof(SkColor) |
| 18 * This cube contains a transform where (x,y,z) maps to the (r,g,b). | 19 * This cube contains a transform where (x,y,z) maps to the (r,g,b). |
| 19 * The alpha components of the colors are ignored (treated as 0xFF). | 20 * The alpha components of the colors are ignored (treated as 0xFF). |
| 20 */ | 21 */ |
| 21 static SkColorFilter* Create(SkData* cubeData, int cubeDimension); | 22 static SkColorFilter* Create(SkData* cubeData, int cubeDimension); |
| 22 | 23 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 68 |
| 68 SkAutoDataUnref fCubeData; | 69 SkAutoDataUnref fCubeData; |
| 69 int32_t fUniqueID; | 70 int32_t fUniqueID; |
| 70 | 71 |
| 71 mutable ColorCubeProcesingCache fCache; | 72 mutable ColorCubeProcesingCache fCache; |
| 72 | 73 |
| 73 typedef SkColorFilter INHERITED; | 74 typedef SkColorFilter INHERITED; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 #endif | 77 #endif |
| OLD | NEW |