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

Unified Diff: cc/program_binding.h

Issue 11192030: cc: Switch to Chromium DCHECKs LOGs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseonenne 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_unittest.cc ('k') | cc/program_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/program_binding.h
diff --git a/cc/program_binding.h b/cc/program_binding.h
index 28f628cf3049d7688617fae9e03c44555f0c1a29..3ddc0b4410f4d7981d5ccac9667580ee3e030995 100644
--- a/cc/program_binding.h
+++ b/cc/program_binding.h
@@ -7,6 +7,8 @@
#include <string>
+#include "base/logging.h"
+
namespace WebKit {
class WebGraphicsContext3D;
}
@@ -22,7 +24,7 @@ public:
void link(WebKit::WebGraphicsContext3D*);
void cleanup(WebKit::WebGraphicsContext3D*);
- unsigned program() const { ASSERT(m_initialized); return m_program; }
+ unsigned program() const { DCHECK(m_initialized); return m_program; }
bool initialized() const { return m_initialized; }
protected:
@@ -47,9 +49,9 @@ public:
void initialize(WebKit::WebGraphicsContext3D* context, bool usingBindUniform)
{
- ASSERT(context);
- ASSERT(m_program);
- ASSERT(!m_initialized);
+ DCHECK(context);
+ DCHECK(m_program);
+ DCHECK(!m_initialized);
// Need to bind uniforms before linking
if (!usingBindUniform)
« no previous file with comments | « cc/prioritized_texture_unittest.cc ('k') | cc/program_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698