| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } | 139 } |
| 140 | 140 |
| 141 int combinedTypes = type0 | type1; | 141 int combinedTypes = type0 | type1; |
| 142 if (SkMatrix::kPerspective_Mask & combinedTypes) { | 142 if (SkMatrix::kPerspective_Mask & combinedTypes) { |
| 143 return true; | 143 return true; |
| 144 } else { | 144 } else { |
| 145 return false; | 145 return false; |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 | 148 |
| 149 const char* name() const { return fProc->name(); } |
| 150 |
| 149 const GrFragmentProcessor* getProcessor() const { return fProc.get(); } | 151 const GrFragmentProcessor* getProcessor() const { return fProc.get(); } |
| 150 | 152 |
| 151 void convertToPendingExec() { fProc.convertToPendingExec(); } | 153 void convertToPendingExec() { fProc.convertToPendingExec(); } |
| 152 | 154 |
| 153 protected: | 155 protected: |
| 154 bool fCoordChangeMatrixSet; | 156 bool fCoordChangeMatrixSet; |
| 155 SkMatrix fCoordChangeMatrix; | 157 SkMatrix fCoordChangeMatrix; |
| 156 GrProgramElementRef<const GrFragmentProcessor> fProc; | 158 GrProgramElementRef<const GrFragmentProcessor> fProc; |
| 157 }; | 159 }; |
| 158 | 160 |
| 159 #endif | 161 #endif |
| OLD | NEW |