OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "GrGLProgram.h" | 8 #include "GrGLProgram.h" |
9 | 9 |
10 #include "GrAllocator.h" | 10 #include "GrAllocator.h" |
11 #include "GrProcessor.h" | 11 #include "GrProcessor.h" |
12 #include "GrCoordTransform.h" | 12 #include "GrCoordTransform.h" |
13 #include "GrGLGeometryProcessor.h" | 13 #include "GrGLGeometryProcessor.h" |
14 #include "GrGLProcessor.h" | 14 #include "GrGLProcessor.h" |
15 #include "GrGLXferProcessor.h" | 15 #include "GrGLXferProcessor.h" |
16 #include "GrGpuGL.h" | 16 #include "GrGLGpu.h" |
17 #include "GrGLPathRendering.h" | 17 #include "GrGLPathRendering.h" |
18 #include "GrGLShaderVar.h" | 18 #include "GrGLShaderVar.h" |
19 #include "GrGLSL.h" | 19 #include "GrGLSL.h" |
20 #include "GrOptDrawState.h" | 20 #include "GrOptDrawState.h" |
21 #include "GrXferProcessor.h" | 21 #include "GrXferProcessor.h" |
22 #include "SkXfermode.h" | 22 #include "SkXfermode.h" |
23 | 23 |
24 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) | 24 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) |
25 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X) | 25 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X) |
26 | 26 |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 for (int t = 0; t < numTransforms; ++t) { | 358 for (int t = 0; t < numTransforms; ++t) { |
359 const SkMatrix& transform = get_transform_matrix(proc, t, localMatrix); | 359 const SkMatrix& transform = get_transform_matrix(proc, t, localMatrix); |
360 GrGLPathRendering::PathTexGenComponents components = | 360 GrGLPathRendering::PathTexGenComponents components = |
361 GrGLPathRendering::kST_PathTexGenComponents; | 361 GrGLPathRendering::kST_PathTexGenComponents; |
362 if (proc.isPerspectiveCoordTransform(t)) { | 362 if (proc.isPerspectiveCoordTransform(t)) { |
363 components = GrGLPathRendering::kSTR_PathTexGenComponents; | 363 components = GrGLPathRendering::kSTR_PathTexGenComponents; |
364 } | 364 } |
365 fGpu->glPathRendering()->enablePathTexGen(texCoordIndex++, components, t
ransform); | 365 fGpu->glPathRendering()->enablePathTexGen(texCoordIndex++, components, t
ransform); |
366 } | 366 } |
367 } | 367 } |
OLD | NEW |