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

Unified Diff: cc/prioritized_texture.cc

Issue 11028132: cc: The recent texture manager bug uncovered some unnecessary code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved returnBackingTexture and dirty the tile Created 8 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: cc/prioritized_texture.cc
diff --git a/cc/prioritized_texture.cc b/cc/prioritized_texture.cc
index 37ad64fedf8c11781c3fc2e36390e75c017168ca..9fc25710cff9186ad85c36226ec8fc9941995ae5 100644
--- a/cc/prioritized_texture.cc
+++ b/cc/prioritized_texture.cc
@@ -189,4 +189,11 @@ void CCPrioritizedTexture::Backing::updateInDrawingImplTree()
ASSERT(m_priorityAtLastPriorityUpdate == CCPriorityCalculator::lowestPriority());
}
+void CCPrioritizedTexture::returnBackingTexture()
+{
+ ASSERT(m_manager || !m_backing);
+ if (m_manager)
+ m_manager->returnBackingTexture(this);
+}
+
} // namespace cc
« no previous file with comments | « cc/prioritized_texture.h ('k') | cc/tiled_layer.cc » ('j') | cc/tiled_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698