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

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: Rebase to ToT 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
« no previous file with comments | « cc/prioritized_texture.h ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/prioritized_texture.cc
diff --git a/cc/prioritized_texture.cc b/cc/prioritized_texture.cc
index bb3ccb899f59aa63aea8b2ec02343004fc2d1a3d..56d50f2b9701ca1e9b706b30404aa69989ca54f3 100644
--- a/cc/prioritized_texture.cc
+++ b/cc/prioritized_texture.cc
@@ -196,4 +196,11 @@ void PrioritizedTexture::Backing::updateInDrawingImplTree()
DCHECK(m_priorityAtLastPriorityUpdate == PriorityCalculator::lowestPriority());
}
+void PrioritizedTexture::returnBackingTexture()
+{
+ DCHECK(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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698