Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 | |
| 2 /* | |
| 3 * Copyright 2013 Google Inc. | |
| 4 * | |
| 5 * Use of this source code is governed by a BSD-style license that can be | |
| 6 * found in the LICENSE file. | |
| 7 */ | |
| 8 | |
| 9 #include "GrPaint.h" | |
| 10 | |
| 11 #include "effects/GrSimpleTextureEffect.h" | |
| 12 | |
| 13 void GrPaint::addColorTextureEffect(GrTexture* texture, const SkMatrix& matrix) { | |
| 14 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix); | |
| 15 this->addColorEffect(effect)->unref(); | |
| 16 } | |
| 17 | |
| 18 void GrPaint::addCoverageTextureEffect(GrTexture* texture, const SkMatrix& matri x) { | |
| 19 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix); | |
| 20 this->addCoverageEffect(effect)->unref(); | |
| 21 } | |
| 22 | |
| 23 void GrPaint::addColorTextureEffect(GrTexture* texture, | |
|
robertphillips
2013/07/12 12:54:33
missing space in next two lines?
bsalomon
2013/07/12 13:38:59
Done.
| |
| 24 const SkMatrix& matrix, | |
| 25 const GrTextureParams& params) { | |
| 26 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params) ; | |
| 27 this->addColorEffect(effect)->unref(); | |
| 28 } | |
| 29 | |
| 30 void GrPaint::addCoverageTextureEffect(GrTexture* texture, | |
| 31 const SkMatrix& matrix, | |
| 32 const GrTextureParams& params) { | |
| 33 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params) ; | |
| 34 this->addCoverageEffect(effect)->unref(); | |
| 35 } | |
| 36 | |
| OLD | NEW |