| 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 "GrGLPathProcessor.h" | 15 #include "GrGLPathProcessor.h" |
| 16 #include "GrGLPathRendering.h" | 16 #include "GrGLPathRendering.h" |
| 17 #include "GrGLShaderVar.h" | 17 #include "GrGLShaderVar.h" |
| 18 #include "GrGLSL.h" | |
| 19 #include "GrGLXferProcessor.h" | 18 #include "GrGLXferProcessor.h" |
| 20 #include "GrPathProcessor.h" | 19 #include "GrPathProcessor.h" |
| 21 #include "GrPipeline.h" | 20 #include "GrPipeline.h" |
| 22 #include "GrXferProcessor.h" | 21 #include "GrXferProcessor.h" |
| 23 #include "SkXfermode.h" | 22 #include "SkXfermode.h" |
| 24 | 23 |
| 25 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) | 24 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) |
| 26 #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) |
| 27 | 26 |
| 28 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 27 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void GrGLNvprProgram::onSetRenderTargetState(const GrPrimitiveProcessor& primPro
c, | 188 void GrGLNvprProgram::onSetRenderTargetState(const GrPrimitiveProcessor& primPro
c, |
| 190 const GrPipeline& pipeline) { | 189 const GrPipeline& pipeline) { |
| 191 SkASSERT(!primProc.willUseGeoShader() && primProc.numAttribs() == 0); | 190 SkASSERT(!primProc.willUseGeoShader() && primProc.numAttribs() == 0); |
| 192 const GrRenderTarget* rt = pipeline.getRenderTarget(); | 191 const GrRenderTarget* rt = pipeline.getRenderTarget(); |
| 193 SkISize size; | 192 SkISize size; |
| 194 size.set(rt->width(), rt->height()); | 193 size.set(rt->width(), rt->height()); |
| 195 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); | 194 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); |
| 196 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), | 195 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), |
| 197 size, rt->origin()); | 196 size, rt->origin()); |
| 198 } | 197 } |
| OLD | NEW |