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

Unified Diff: cc/output/delegating_renderer.cc

Issue 148243013: Add shared bitmap managers for browser and renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/output/delegating_renderer.cc
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc
index a2e5e532047e61b22533b25ca211477bdad6ae9c..47c068db8440de7959ef9b83c62f2eef24b9ce2c 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -163,8 +163,8 @@ void DelegatingRenderer::SetVisible(bool visible) {
// We loop visibility to the GPU process, since that's what manages memory.
// That will allow it to feed us with memory allocations that we can act
// upon.
- DCHECK(context_provider);
- context_provider->ContextSupport()->SetSurfaceVisible(visible);
+ if (context_provider)
+ context_provider->ContextSupport()->SetSurfaceVisible(visible);
}
void DelegatingRenderer::SendManagedMemoryStats(size_t bytes_visible,

Powered by Google App Engine
This is Rietveld 408576698