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

Side by Side Diff: src/gpu/GrPathProcessor.cpp

Issue 1109863004: Use GLSLCaps for creating processor keys and GLSL-specific programs (Closed) Base URL: https://chromium.googlesource.com/skia@master
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
« no previous file with comments | « src/gpu/GrPathProcessor.h ('k') | src/gpu/GrPrimitiveProcessor.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 2013 Google Inc. 2 * Copyright 2013 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 "GrPathProcessor.h" 8 #include "GrPathProcessor.h"
9 9
10 #include "gl/GrGLPathProcessor.h" 10 #include "gl/GrGLPathProcessor.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const PathBatchTracker& theirs = t.cast<PathBatchTracker>(); 56 const PathBatchTracker& theirs = t.cast<PathBatchTracker>();
57 return CanCombineLocalMatrices(*this, mine.fUsesLocalCoords, 57 return CanCombineLocalMatrices(*this, mine.fUsesLocalCoords,
58 that, theirs.fUsesLocalCoords) && 58 that, theirs.fUsesLocalCoords) &&
59 CanCombineOutput(mine.fInputColorType, mine.fColor, 59 CanCombineOutput(mine.fInputColorType, mine.fColor,
60 theirs.fInputColorType, theirs.fColor) && 60 theirs.fInputColorType, theirs.fColor) &&
61 CanCombineOutput(mine.fInputCoverageType, 0xff, 61 CanCombineOutput(mine.fInputCoverageType, 0xff,
62 theirs.fInputCoverageType, 0xff); 62 theirs.fInputCoverageType, 0xff);
63 } 63 }
64 64
65 void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt, 65 void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt,
66 const GrGLCaps& caps, 66 const GrGLSLCaps& caps,
67 GrProcessorKeyBuilder* b) const { 67 GrProcessorKeyBuilder* b) const {
68 GrGLPathProcessor::GenKey(*this, bt, caps, b); 68 GrGLPathProcessor::GenKey(*this, bt, caps, b);
69 } 69 }
70 70
71 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt, 71 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt,
72 const GrGLCaps& caps) const { 72 const GrGLSLCaps& caps ) const {
73 SkASSERT(caps.pathRenderingSupport()); 73 SkASSERT(caps.pathRenderingSupport());
74 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); 74 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt));
75 } 75 }
OLDNEW
« no previous file with comments | « src/gpu/GrPathProcessor.h ('k') | src/gpu/GrPrimitiveProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698