Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: src/gpu/gl/GrGLProgram.cpp

Issue 1127953003: Remove viewmatrix from GrGeometryProcessor base class (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup3
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 pathProc->setTransformData(primProc, index, proc.processor()->coordTransform s(), 199 pathProc->setTransformData(primProc, index, proc.processor()->coordTransform s(),
200 fGpu->glPathRendering(), fProgramID); 200 fGpu->glPathRendering(), fProgramID);
201 } 201 }
202 202
203 void GrGLNvprProgram::onSetRenderTargetState(const GrPrimitiveProcessor& primPro c, 203 void GrGLNvprProgram::onSetRenderTargetState(const GrPrimitiveProcessor& primPro c,
204 const GrPipeline& pipeline) { 204 const GrPipeline& pipeline) {
205 SkASSERT(!primProc.willUseGeoShader() && primProc.numAttribs() == 0); 205 SkASSERT(!primProc.willUseGeoShader() && primProc.numAttribs() == 0);
206 const GrRenderTarget* rt = pipeline.getRenderTarget(); 206 const GrRenderTarget* rt = pipeline.getRenderTarget();
207 SkISize size; 207 SkISize size;
208 size.set(rt->width(), rt->height()); 208 size.set(rt->width(), rt->height());
209 fGpu->glPathRendering()->setProjectionMatrix(primProc.viewMatrix(), 209 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>();
210 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(),
210 size, rt->origin()); 211 size, rt->origin());
211 } 212 }
OLDNEW
« src/gpu/gl/GrGLGeometryProcessor.h ('K') | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698