| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkGradientShaderPriv_DEFINED | 8 #ifndef SkGradientShaderPriv_DEFINED |
| 9 #define SkGradientShaderPriv_DEFINED | 9 #define SkGradientShaderPriv_DEFINED |
| 10 | 10 |
| 11 #include "SkGradientBitmapCache.h" | 11 #include "SkGradientBitmapCache.h" |
| 12 #include "SkGradientShader.h" | 12 #include "SkGradientShader.h" |
| 13 #include "SkClampRange.h" | 13 #include "SkClampRange.h" |
| 14 #include "SkColorPriv.h" | 14 #include "SkColorPriv.h" |
| 15 #include "SkReadBuffer.h" | 15 #include "SkReadBuffer.h" |
| 16 #include "SkWriteBuffer.h" | 16 #include "SkWriteBuffer.h" |
| 17 #include "SkMallocPixelRef.h" | 17 #include "SkMallocPixelRef.h" |
| 18 #include "SkUtils.h" | 18 #include "SkUtils.h" |
| 19 #include "SkTemplates.h" | |
| 20 #include "SkShader.h" | 19 #include "SkShader.h" |
| 21 #include "SkOnce.h" | 20 #include "SkOnce.h" |
| 22 | 21 |
| 23 static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1, | 22 static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1, |
| 24 int count) { | 23 int count) { |
| 25 if (count > 0) { | 24 if (count > 0) { |
| 26 if (v0 == v1) { | 25 if (v0 == v1) { |
| 27 sk_memset32(dst, v0, count); | 26 sk_memset32(dst, v0, count); |
| 28 } else { | 27 } else { |
| 29 int pairs = count >> 1; | 28 int pairs = count >> 1; |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 GrGLProgramDataManager::UniformHandle fColorStartUni; | 446 GrGLProgramDataManager::UniformHandle fColorStartUni; |
| 448 GrGLProgramDataManager::UniformHandle fColorMidUni; | 447 GrGLProgramDataManager::UniformHandle fColorMidUni; |
| 449 GrGLProgramDataManager::UniformHandle fColorEndUni; | 448 GrGLProgramDataManager::UniformHandle fColorEndUni; |
| 450 | 449 |
| 451 typedef GrGLFragmentProcessor INHERITED; | 450 typedef GrGLFragmentProcessor INHERITED; |
| 452 }; | 451 }; |
| 453 | 452 |
| 454 #endif | 453 #endif |
| 455 | 454 |
| 456 #endif | 455 #endif |
| OLD | NEW |