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

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

Issue 820783005: More changes to bring together path / geo procs (Closed) Base URL: https://skia.googlesource.com/skia.git@lc1
Patch Set: dm fix Created 5 years, 11 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
« no previous file with comments | « src/gpu/gl/GrGLProgram.h ('k') | src/gpu/gl/GrGLProgramDesc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 const GrPendingFragmentStage& proc, 224 const GrPendingFragmentStage& proc,
225 int index, 225 int index,
226 GrGLInstalledFragProc* ip) { 226 GrGLInstalledFragProc* ip) {
227 GrGLPathProcessor* pathProc = 227 GrGLPathProcessor* pathProc =
228 static_cast<GrGLPathProcessor*>(fGeometryProcessor.get()->fGLProc.ge t()); 228 static_cast<GrGLPathProcessor*>(fGeometryProcessor.get()->fGLProc.ge t());
229 pathProc->setTransformData(primProc, index, proc.processor()->coordTransform s(), 229 pathProc->setTransformData(primProc, index, proc.processor()->coordTransform s(),
230 fGpu->glPathRendering(), fProgramID); 230 fGpu->glPathRendering(), fProgramID);
231 } 231 }
232 232
233 void GrGLNvprProgram::onSetRenderTargetState(const GrOptDrawState& optState) { 233 void GrGLNvprProgram::onSetRenderTargetState(const GrOptDrawState& optState) {
234 SkASSERT(GrGpu::IsPathRenderingDrawType(optState.drawType())); 234 SkASSERT(GrGpu::IsPathRenderingDrawType(optState.drawType()) &&
235 !optState.getPrimitiveProcessor()->willUseGeoShader() &&
236 optState.getPrimitiveProcessor()->numAttribs() == 0);
235 const GrRenderTarget* rt = optState.getRenderTarget(); 237 const GrRenderTarget* rt = optState.getRenderTarget();
236 SkISize size; 238 SkISize size;
237 size.set(rt->width(), rt->height()); 239 size.set(rt->width(), rt->height());
238 fGpu->glPathRendering()->setProjectionMatrix(optState.getPrimitiveProcessor( )->viewMatrix(), 240 fGpu->glPathRendering()->setProjectionMatrix(optState.getPrimitiveProcessor( )->viewMatrix(),
239 size, rt->origin()); 241 size, rt->origin());
240 } 242 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.h ('k') | src/gpu/gl/GrGLProgramDesc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698