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 "GrGLGpu.h" | 14 #include "GrGLGpu.h" |
15 #include "GrGLPathRendering.h" | 15 #include "GrGLPathRendering.h" |
16 #include "GrGLShaderVar.h" | |
17 #include "GrGLXferProcessor.h" | 16 #include "GrGLXferProcessor.h" |
18 #include "GrPathProcessor.h" | 17 #include "GrPathProcessor.h" |
19 #include "GrPipeline.h" | 18 #include "GrPipeline.h" |
20 #include "GrXferProcessor.h" | 19 #include "GrXferProcessor.h" |
21 #include "SkXfermode.h" | 20 #include "SkXfermode.h" |
22 | 21 |
23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) | 22 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) |
24 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X) | 23 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X) |
25 | 24 |
26 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 25 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 fRenderTargetState.getRTAdjustmentVec(rtAdjustmentVec); | 139 fRenderTargetState.getRTAdjustmentVec(rtAdjustmentVec); |
141 fProgramDataManager.set4fv(fBuiltinUniformHandles.fRTAdjustmentUni,
1, rtAdjustmentVec); | 140 fProgramDataManager.set4fv(fBuiltinUniformHandles.fRTAdjustmentUni,
1, rtAdjustmentVec); |
142 } | 141 } |
143 } else { | 142 } else { |
144 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); | 143 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); |
145 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); | 144 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); |
146 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), | 145 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), |
147 size, rt->origin()); | 146 size, rt->origin()); |
148 } | 147 } |
149 } | 148 } |
OLD | NEW |