| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 class GrTextureStripAtlas; | 327 class GrTextureStripAtlas; |
| 328 | 328 |
| 329 // Base class for Gr gradient effects | 329 // Base class for Gr gradient effects |
| 330 class GrGradientEffect : public GrFragmentProcessor { | 330 class GrGradientEffect : public GrFragmentProcessor { |
| 331 public: | 331 public: |
| 332 | 332 |
| 333 GrGradientEffect(GrContext* ctx, | 333 GrGradientEffect(GrContext* ctx, |
| 334 const SkGradientShaderBase& shader, | 334 const SkGradientShaderBase& shader, |
| 335 const SkMatrix& matrix, | 335 const SkMatrix& matrix, |
| 336 SkShader::TileMode tileMode); | 336 SkShader::TileMode tileMode, GrRenderTarget* dst); |
| 337 | 337 |
| 338 virtual ~GrGradientEffect(); | 338 virtual ~GrGradientEffect(); |
| 339 | 339 |
| 340 bool useAtlas() const { return SkToBool(-1 != fRow); } | 340 bool useAtlas() const { return SkToBool(-1 != fRow); } |
| 341 SkScalar getYCoord() const { return fYCoord; }; | 341 SkScalar getYCoord() const { return fYCoord; }; |
| 342 | 342 |
| 343 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType;
} | 343 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType;
} |
| 344 | 344 |
| 345 enum PremulType { | 345 enum PremulType { |
| 346 kBeforeInterp_PremulType, | 346 kBeforeInterp_PremulType, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 GrGLSLProgramDataManager::UniformHandle fColorStartUni; | 449 GrGLSLProgramDataManager::UniformHandle fColorStartUni; |
| 450 GrGLSLProgramDataManager::UniformHandle fColorMidUni; | 450 GrGLSLProgramDataManager::UniformHandle fColorMidUni; |
| 451 GrGLSLProgramDataManager::UniformHandle fColorEndUni; | 451 GrGLSLProgramDataManager::UniformHandle fColorEndUni; |
| 452 | 452 |
| 453 typedef GrGLFragmentProcessor INHERITED; | 453 typedef GrGLFragmentProcessor INHERITED; |
| 454 }; | 454 }; |
| 455 | 455 |
| 456 #endif | 456 #endif |
| 457 | 457 |
| 458 #endif | 458 #endif |
| OLD | NEW |