Chromium Code Reviews| Index: src/gpu/GrBitmapTextContext.cpp |
| diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp |
| index 25c13ec8d1ae52ac34616e307bf68c1df42651cf..e7b18a4c61ba9dde03d253d1a41f98a633cd5fc9 100755 |
| --- a/src/gpu/GrBitmapTextContext.cpp |
| +++ b/src/gpu/GrBitmapTextContext.cpp |
| @@ -56,7 +56,7 @@ GrBitmapTextContext::GrBitmapTextContext(GrContext* context, |
| fCurrTexture = NULL; |
| fCurrVertex = 0; |
|
robertphillips
2014/07/22 18:15:46
= SK_InvalidGenID; ?
Although maybe we need an SK_
bsalomon
2014/07/22 18:48:44
Done.
|
| - fEffectTextureGenID = 0; |
| + fEffectTextureUniqueID = 0; |
| fVertices = NULL; |
| fMaxVertices = 0; |
| @@ -94,11 +94,11 @@ void GrBitmapTextContext::flushGlyphs() { |
| SkASSERT(fCurrTexture); |
| GrTextureParams params(SkShader::kRepeat_TileMode, GrTextureParams::kNone_FilterMode); |
| - uint32_t textureGenID = fCurrTexture->getGenerationID(); |
| + uint32_t textureUniqueID = fCurrTexture->getUniqueID(); |
| - if (textureGenID != fEffectTextureGenID) { |
| + if (textureUniqueID != fEffectTextureUniqueID) { |
| fCachedEffect.reset(GrCustomCoordsTextureEffect::Create(fCurrTexture, params)); |
| - fEffectTextureGenID = textureGenID; |
| + fEffectTextureUniqueID = textureUniqueID; |
| } |
| // This effect could be stored with one of the cache objects (atlas?) |