Chromium Code Reviews| Index: src/gpu/GrAtlas.cpp |
| diff --git a/src/gpu/GrAtlas.cpp b/src/gpu/GrAtlas.cpp |
| index ff1498388a7ec0a45f3c1a78db97d9d3df3cdef2..97fd646de7c152461c68eb5f973386f4451300a8 100644 |
| --- a/src/gpu/GrAtlas.cpp |
| +++ b/src/gpu/GrAtlas.cpp |
| @@ -179,7 +179,12 @@ GrPlot* GrAtlasMgr::addToAtlas(GrAtlas* atlas, |
| if (NULL == fTexture) { |
| // TODO: Update this to use the cache rather than directly creating a texture. |
| GrTextureDesc desc; |
| +#ifdef SK_DEVELOPER |
| + // RenderTarget so we can read the pixels to dump them |
| + desc.fFlags = kDynamicUpdate_GrTextureFlagBit|kRenderTarget_GrTextureFlagBit; |
|
bsalomon
2013/10/02 16:09:32
|kNoStencil_GrTextureFlagBit
|
| +#else |
| desc.fFlags = kDynamicUpdate_GrTextureFlagBit; |
| +#endif |
| desc.fWidth = GR_ATLAS_TEXTURE_WIDTH; |
| desc.fHeight = GR_ATLAS_TEXTURE_HEIGHT; |
| desc.fConfig = fPixelConfig; |
| @@ -205,6 +210,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; |