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 "GrGLProcessor.h" |
10 #include "GrProcessor.h" | 10 #include "GrProcessor.h" |
11 #include "GrGpuGL.h" | 11 #include "GrGLGpu.h" |
12 #include "GrOptDrawState.h" | 12 #include "GrOptDrawState.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. |
20 */ | 20 */ |
21 static bool swizzle_requires_alpha_remapping(const GrGLCaps& caps, | 21 static bool swizzle_requires_alpha_remapping(const GrGLCaps& caps, |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 gpu->glCaps())
; | 222 gpu->glCaps())
; |
223 } else { | 223 } else { |
224 header->fFragPosKey = 0; | 224 header->fFragPosKey = 0; |
225 } | 225 } |
226 | 226 |
227 header->fColorEffectCnt = optState.numColorStages(); | 227 header->fColorEffectCnt = optState.numColorStages(); |
228 header->fCoverageEffectCnt = optState.numCoverageStages(); | 228 header->fCoverageEffectCnt = optState.numCoverageStages(); |
229 desc->finalize(); | 229 desc->finalize(); |
230 return true; | 230 return true; |
231 } | 231 } |
OLD | NEW |