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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 static inline int next_dither_toggle16(int toggle) { | 292 static inline int next_dither_toggle16(int toggle) { |
293 return toggle ^ SkGradientShaderBase::kDitherStride16; | 293 return toggle ^ SkGradientShaderBase::kDitherStride16; |
294 } | 294 } |
295 | 295 |
296 /////////////////////////////////////////////////////////////////////////////// | 296 /////////////////////////////////////////////////////////////////////////////// |
297 | 297 |
298 #if SK_SUPPORT_GPU | 298 #if SK_SUPPORT_GPU |
299 | 299 |
300 #include "GrCoordTransform.h" | 300 #include "GrCoordTransform.h" |
| 301 #include "GrFragmentProcessor.h" |
301 #include "gl/GrGLProcessor.h" | 302 #include "gl/GrGLProcessor.h" |
302 | 303 |
303 class GrFragmentStage; | 304 class GrFragmentStage; |
304 class GrBackendProcessorFactory; | 305 class GrBackendProcessorFactory; |
305 | 306 |
306 /* | 307 /* |
307 * The interpretation of the texture matrix depends on the sample mode. The | 308 * The interpretation of the texture matrix depends on the sample mode. The |
308 * texture matrix is applied both when the texture coordinates are explicit | 309 * texture matrix is applied both when the texture coordinates are explicit |
309 * and when vertex positions are used as texture coordinates. In the latter | 310 * and when vertex positions are used as texture coordinates. In the latter |
310 * case the texture matrix is applied to the pre-view-matrix position | 311 * case the texture matrix is applied to the pre-view-matrix position |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 GrGLProgramDataManager::UniformHandle fColorStartUni; | 467 GrGLProgramDataManager::UniformHandle fColorStartUni; |
467 GrGLProgramDataManager::UniformHandle fColorMidUni; | 468 GrGLProgramDataManager::UniformHandle fColorMidUni; |
468 GrGLProgramDataManager::UniformHandle fColorEndUni; | 469 GrGLProgramDataManager::UniformHandle fColorEndUni; |
469 | 470 |
470 typedef GrGLFragmentProcessor INHERITED; | 471 typedef GrGLFragmentProcessor INHERITED; |
471 }; | 472 }; |
472 | 473 |
473 #endif | 474 #endif |
474 | 475 |
475 #endif | 476 #endif |
OLD | NEW |