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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // several control flows inside -- 2-color gradients, 3-color symmetric grad
ients, 4+ | 463 // several control flows inside -- 2-color gradients, 3-color symmetric grad
ients, 4+ |
464 // color gradients that use the traditional texture lookup, as well as sever
al varieties | 464 // color gradients that use the traditional texture lookup, as well as sever
al varieties |
465 // of hard stop gradients | 465 // of hard stop gradients |
466 void emitColor(GrGLSLFPFragmentBuilder* fragBuilder, | 466 void emitColor(GrGLSLFPFragmentBuilder* fragBuilder, |
467 GrGLSLUniformHandler* uniformHandler, | 467 GrGLSLUniformHandler* uniformHandler, |
468 const GrGLSLCaps* caps, | 468 const GrGLSLCaps* caps, |
469 const GrGradientEffect&, | 469 const GrGradientEffect&, |
470 const char* gradientTValue, | 470 const char* gradientTValue, |
471 const char* outputColor, | 471 const char* outputColor, |
472 const char* inputColor, | 472 const char* inputColor, |
473 const SamplerHandle* texSamplers); | 473 const TextureSamplers&); |
474 | 474 |
475 private: | 475 private: |
476 enum { | 476 enum { |
477 // First bit for premul before/after interp | 477 // First bit for premul before/after interp |
478 kPremulBeforeInterpKey = 1, | 478 kPremulBeforeInterpKey = 1, |
479 | 479 |
480 // Next three bits for 2/3 color type or different special | 480 // Next three bits for 2/3 color type or different special |
481 // hard stop cases (neither means using texture atlas) | 481 // hard stop cases (neither means using texture atlas) |
482 kTwoColorKey = 2, | 482 kTwoColorKey = 2, |
483 kThreeColorKey = 4, | 483 kThreeColorKey = 4, |
(...skipping 16 matching lines...) Expand all Loading... |
500 GrGLSLProgramDataManager::UniformHandle fColorsUni; | 500 GrGLSLProgramDataManager::UniformHandle fColorsUni; |
501 GrGLSLProgramDataManager::UniformHandle fFSYUni; | 501 GrGLSLProgramDataManager::UniformHandle fFSYUni; |
502 GrGLSLProgramDataManager::UniformHandle fColorSpaceXformUni; | 502 GrGLSLProgramDataManager::UniformHandle fColorSpaceXformUni; |
503 | 503 |
504 typedef GrGLSLFragmentProcessor INHERITED; | 504 typedef GrGLSLFragmentProcessor INHERITED; |
505 }; | 505 }; |
506 | 506 |
507 #endif | 507 #endif |
508 | 508 |
509 #endif | 509 #endif |
OLD | NEW |