Chromium Code Reviews| Index: src/gpu/GrAtlas.cpp |
| diff --git a/src/gpu/GrAtlas.cpp b/src/gpu/GrAtlas.cpp |
| index ff1498388a7ec0a45f3c1a78db97d9d3df3cdef2..d9d4081ad61e175594588325d1b41741d695d06a 100644 |
| --- a/src/gpu/GrAtlas.cpp |
| +++ b/src/gpu/GrAtlas.cpp |
| @@ -179,7 +179,7 @@ GrPlot* GrAtlasMgr::addToAtlas(GrAtlas* atlas, |
| if (NULL == fTexture) { |
| // TODO: Update this to use the cache rather than directly creating a texture. |
| GrTextureDesc desc; |
|
robertphillips
2013/10/02 15:07:28
Do we always want this or just sometimes?
Do we ne
jvanverth1
2013/10/02 15:12:09
In order for dump() to work, it has to be there. W
|
| - desc.fFlags = kDynamicUpdate_GrTextureFlagBit; |
| + desc.fFlags = kDynamicUpdate_GrTextureFlagBit|kRenderTarget_GrTextureFlagBit; |
| desc.fWidth = GR_ATLAS_TEXTURE_WIDTH; |
| desc.fHeight = GR_ATLAS_TEXTURE_HEIGHT; |
| desc.fConfig = fPixelConfig; |
| @@ -205,6 +205,7 @@ GrPlot* GrAtlasMgr::addToAtlas(GrAtlas* atlas, |
| } |
| bool GrAtlasMgr::removeUnusedPlots(GrAtlas* atlas) { |
| + |
| // GrPlot** is used so that the head element can be easily |
| // modified when the first element is deleted |
| GrPlot** plotRef = &atlas->fPlots; |