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

Unified Diff: cc/gl_renderer.cc

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/gl_renderer.cc
diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc
index bb4ec4d3ee99d55d33be2886d435eee999f986cd..e1900a9d5d7cd8d3e84a5feafd6cdf1b15f2c004 100644
--- a/cc/gl_renderer.cc
+++ b/cc/gl_renderer.cc
@@ -1510,7 +1510,8 @@ bool GLRenderer::bindFramebufferToTexture(DrawingFrame& frame, const ScopedResou
unsigned textureId = m_currentFramebufferLock->textureId();
GLC(m_context, m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureId, 0));
- DCHECK(m_context->checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE);
+ if (m_context->checkFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
jamesr 2012/12/18 05:40:11 this is a sync call and pretty expensive in some d
danakj 2012/12/18 06:06:57 Then we should probably just remove this line. The
danakj 2012/12/18 21:26:59 Done.
+ return false;
initializeMatrices(frame, framebufferRect, false);
setDrawViewportSize(framebufferRect.size());
« no previous file with comments | « cc/DEPS ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/test/fake_web_graphics_context_3d.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698