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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11570036: Add some traces for when render pass caching fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: early out Created 8 years 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/layer_tree_host_common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 89ebddeeb352afe939c941302827e0f38806e56a..7b594817d4c39817ed9b6cf70271287833d4375f 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -701,7 +701,15 @@ static void removeRenderPassesRecursive(RenderPass::Id removeRenderPassId, Layer
bool LayerTreeHostImpl::CullRenderPassesWithCachedTextures::shouldRemoveRenderPass(const RenderPassDrawQuad& quad, const FrameData&) const
{
- return quad.contents_changed_since_last_frame.IsEmpty() && m_renderer.haveCachedResourcesForRenderPassId(quad.render_pass_id);
+ if (!quad.contents_changed_since_last_frame.IsEmpty()) {
+ TRACE_EVENT0("cc", "CullRenderPassesWithCachedTextures have damage");
+ return false;
+ } else if (!m_renderer.haveCachedResourcesForRenderPassId(quad.render_pass_id)) {
+ TRACE_EVENT0("cc", "CullRenderPassesWithCachedTextures have no texture");
+ return false;
+ }
+ TRACE_EVENT0("cc", "CullRenderPassesWithCachedTextures dropped!");
+ return true;
}
bool LayerTreeHostImpl::CullRenderPassesWithNoQuads::shouldRemoveRenderPass(const RenderPassDrawQuad& quad, const FrameData& frame) const
« no previous file with comments | « cc/layer_tree_host_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698