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

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

Issue 1131513005: remove localmatrix from GrGeometryProcessor base class (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup4
Patch Set: tweaks 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"
11 #include "gl/GrGLGpu.h" 11 #include "gl/GrGLGpu.h"
12 12
13 GrPathProcessor::GrPathProcessor(GrColor color, 13 GrPathProcessor::GrPathProcessor(GrColor color,
14 const SkMatrix& viewMatrix, 14 const SkMatrix& viewMatrix,
15 const SkMatrix& localMatrix) 15 const SkMatrix& localMatrix)
16 : INHERITED(localMatrix, true) 16 : INHERITED(true)
17 , fColor(color)
17 , fViewMatrix(viewMatrix) 18 , fViewMatrix(viewMatrix)
18 , fColor(color) { 19 , fLocalMatrix(localMatrix) {
19 this->initClassID<GrPathProcessor>(); 20 this->initClassID<GrPathProcessor>();
20 } 21 }
21 22
22 void GrPathProcessor::getInvariantOutputColor(GrInitInvariantOutput* out) const { 23 void GrPathProcessor::getInvariantOutputColor(GrInitInvariantOutput* out) const {
23 out->setKnownFourComponents(fColor); 24 out->setKnownFourComponents(fColor);
24 } 25 }
25 26
26 void GrPathProcessor::getInvariantOutputCoverage(GrInitInvariantOutput* out) con st { 27 void GrPathProcessor::getInvariantOutputCoverage(GrInitInvariantOutput* out) con st {
27 out->setKnownSingleComponent(0xff); 28 out->setKnownSingleComponent(0xff);
28 } 29 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const GrGLSLCaps& caps, 69 const GrGLSLCaps& caps,
69 GrProcessorKeyBuilder* b) const { 70 GrProcessorKeyBuilder* b) const {
70 GrGLPathProcessor::GenKey(*this, bt, caps, b); 71 GrGLPathProcessor::GenKey(*this, bt, caps, b);
71 } 72 }
72 73
73 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt, 74 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt,
74 const GrGLSLCaps& caps ) const { 75 const GrGLSLCaps& caps ) const {
75 SkASSERT(caps.pathRenderingSupport()); 76 SkASSERT(caps.pathRenderingSupport());
76 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); 77 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt));
77 } 78 }
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