| 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 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 * determines the gradient value. | 320 * determines the gradient value. |
| 321 */ | 321 */ |
| 322 | 322 |
| 323 class GrTextureStripAtlas; | 323 class GrTextureStripAtlas; |
| 324 | 324 |
| 325 // Base class for Gr gradient effects | 325 // Base class for Gr gradient effects |
| 326 class GrGradientEffect : public GrFragmentProcessor { | 326 class GrGradientEffect : public GrFragmentProcessor { |
| 327 public: | 327 public: |
| 328 | 328 |
| 329 GrGradientEffect(GrContext* ctx, | 329 GrGradientEffect(GrContext* ctx, |
| 330 GrProcessorDataManager*, | |
| 331 const SkGradientShaderBase& shader, | 330 const SkGradientShaderBase& shader, |
| 332 const SkMatrix& matrix, | 331 const SkMatrix& matrix, |
| 333 SkShader::TileMode tileMode); | 332 SkShader::TileMode tileMode); |
| 334 | 333 |
| 335 virtual ~GrGradientEffect(); | 334 virtual ~GrGradientEffect(); |
| 336 | 335 |
| 337 bool useAtlas() const { return SkToBool(-1 != fRow); } | 336 bool useAtlas() const { return SkToBool(-1 != fRow); } |
| 338 SkScalar getYCoord() const { return fYCoord; }; | 337 SkScalar getYCoord() const { return fYCoord; }; |
| 339 | 338 |
| 340 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType;
} | 339 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType;
} |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 GrGLProgramDataManager::UniformHandle fColorStartUni; | 445 GrGLProgramDataManager::UniformHandle fColorStartUni; |
| 447 GrGLProgramDataManager::UniformHandle fColorMidUni; | 446 GrGLProgramDataManager::UniformHandle fColorMidUni; |
| 448 GrGLProgramDataManager::UniformHandle fColorEndUni; | 447 GrGLProgramDataManager::UniformHandle fColorEndUni; |
| 449 | 448 |
| 450 typedef GrGLFragmentProcessor INHERITED; | 449 typedef GrGLFragmentProcessor INHERITED; |
| 451 }; | 450 }; |
| 452 | 451 |
| 453 #endif | 452 #endif |
| 454 | 453 |
| 455 #endif | 454 #endif |
| OLD | NEW |