| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrInvariantOutput.h" | 8 #include "GrInvariantOutput.h" |
| 9 | 9 |
| 10 #ifdef SK_DEBUG | 10 #ifdef SK_DEBUG |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 bool GrInvariantOutput::colorComponentsAllEqual() const { | 24 bool GrInvariantOutput::colorComponentsAllEqual() const { |
| 25 unsigned colorA = GrColorUnpackA(fColor); | 25 unsigned colorA = GrColorUnpackA(fColor); |
| 26 return(GrColorUnpackR(fColor) == colorA && | 26 return(GrColorUnpackR(fColor) == colorA && |
| 27 GrColorUnpackG(fColor) == colorA && | 27 GrColorUnpackG(fColor) == colorA && |
| 28 GrColorUnpackB(fColor) == colorA); | 28 GrColorUnpackB(fColor) == colorA); |
| 29 } | 29 } |
| 30 | 30 |
| 31 #endif // end DEBUG | 31 #endif // end DEBUG |
| 32 | |
| OLD | NEW |