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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 typedef GrFragmentProcessor INHERITED; | 397 typedef GrFragmentProcessor INHERITED; |
398 | 398 |
399 }; | 399 }; |
400 | 400 |
401 /////////////////////////////////////////////////////////////////////////////// | 401 /////////////////////////////////////////////////////////////////////////////// |
402 | 402 |
403 // Base class for GL gradient effects | 403 // Base class for GL gradient effects |
404 class GrGLGradientEffect : public GrGLSLFragmentProcessor { | 404 class GrGLGradientEffect : public GrGLSLFragmentProcessor { |
405 public: | 405 public: |
406 GrGLGradientEffect(); | 406 GrGLGradientEffect(); |
407 virtual ~GrGLGradientEffect(); | |
408 | 407 |
409 protected: | 408 protected: |
410 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override
; | 409 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override
; |
411 | 410 |
412 protected: | 411 protected: |
413 /** | 412 /** |
414 * Subclasses must call this. It will return a key for the part of the shade
r code controlled | 413 * Subclasses must call this. It will return a key for the part of the shade
r code controlled |
415 * by the base class. The subclasses must stick it in their key and then pas
s it to the below | 414 * by the base class. The subclasses must stick it in their key and then pas
s it to the below |
416 * emit* functions from their emitCode function. | 415 * emit* functions from their emitCode function. |
417 */ | 416 */ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 GrGLSLProgramDataManager::UniformHandle fColorStartUni; | 455 GrGLSLProgramDataManager::UniformHandle fColorStartUni; |
457 GrGLSLProgramDataManager::UniformHandle fColorMidUni; | 456 GrGLSLProgramDataManager::UniformHandle fColorMidUni; |
458 GrGLSLProgramDataManager::UniformHandle fColorEndUni; | 457 GrGLSLProgramDataManager::UniformHandle fColorEndUni; |
459 | 458 |
460 typedef GrGLSLFragmentProcessor INHERITED; | 459 typedef GrGLSLFragmentProcessor INHERITED; |
461 }; | 460 }; |
462 | 461 |
463 #endif | 462 #endif |
464 | 463 |
465 #endif | 464 #endif |
OLD | NEW |