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

Unified Diff: cc/TiledLayerChromium.cpp

Issue 10990116: [cc] Color evicted vs. invalidated checkerboard tiles differently (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « cc/ShaderChromium.cpp ('k') | cc/TiledLayerChromiumTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/TiledLayerChromium.cpp
diff --git a/cc/TiledLayerChromium.cpp b/cc/TiledLayerChromium.cpp
index 75bd57d9b6f960ef46ba3c3e29123e8516b29b55..4a28e8a8124c2e8ca8ca11412d16331630d629c6 100644
--- a/cc/TiledLayerChromium.cpp
+++ b/cc/TiledLayerChromium.cpp
@@ -215,13 +215,20 @@ void TiledLayerChromium::pushPropertiesTo(CCLayerImpl* layer)
// FIXME: This should not ever be null.
if (!tile)
continue;
+
tile->isInUseOnImpl = false;
+
if (!tile->managedTexture()->haveBackingTexture()) {
+ // Evicted tiles get deleted from both layers
invalidTiles.append(tile);
continue;
}
- if (!tile->validForFrame)
+
+ if (!tile->validForFrame) {
+ // Invalidated tiles are set so they can get different debug colors.
+ tiledLayer->pushInvalidTile(i, j);
continue;
+ }
tiledLayer->pushTileProperties(i, j, tile->managedTexture()->resourceId(), tile->opaqueRect());
tile->isInUseOnImpl = true;
« no previous file with comments | « cc/ShaderChromium.cpp ('k') | cc/TiledLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698