| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "GrGLProgramDesc.h" | 7 #include "GrGLProgramDesc.h" |
| 8 | 8 |
| 9 #include "GrGLProcessor.h" | 9 #include "GrGLFragmentProcessor.h" |
| 10 #include "GrProcessor.h" | 10 #include "GrProcessor.h" |
| 11 #include "GrGLGpu.h" | 11 #include "GrGLGpu.h" |
| 12 #include "GrPipeline.h" | 12 #include "GrPipeline.h" |
| 13 #include "SkChecksum.h" | 13 #include "SkChecksum.h" |
| 14 #include "gl/builders/GrGLFragmentShaderBuilder.h" | 14 #include "gl/builders/GrGLFragmentShaderBuilder.h" |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * Do we need to either map r,g,b->a or a->r. configComponentMask indicates whic
h channels are | 17 * Do we need to either map r,g,b->a or a->r. configComponentMask indicates whic
h channels are |
| 18 * present in the texture's config. swizzleComponentMask indicates the channels
present in the | 18 * present in the texture's config. swizzleComponentMask indicates the channels
present in the |
| 19 * shader swizzle. | 19 * shader swizzle. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 gpu->glCaps())
; | 145 gpu->glCaps())
; |
| 146 } else { | 146 } else { |
| 147 header->fFragPosKey = 0; | 147 header->fFragPosKey = 0; |
| 148 } | 148 } |
| 149 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); | 149 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); |
| 150 header->fColorEffectCnt = pipeline.numColorFragmentStages(); | 150 header->fColorEffectCnt = pipeline.numColorFragmentStages(); |
| 151 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); | 151 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); |
| 152 glDesc->finalize(); | 152 glDesc->finalize(); |
| 153 return true; | 153 return true; |
| 154 } | 154 } |
| OLD | NEW |