Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: src/gpu/GrAtlas.cpp

Issue 25736002: Add support to dump font cache texture for debug purposes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698