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

Unified Diff: cc/program_binding.h

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove-rebased-asserts 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
Index: cc/program_binding.h
diff --git a/cc/program_binding.h b/cc/program_binding.h
index 28f628cf3049d7688617fae9e03c44555f0c1a29..a4d3402214f4e0ffe08884ae220b5f09cd1c5efc 100644
--- a/cc/program_binding.h
+++ b/cc/program_binding.h
@@ -7,6 +7,8 @@
#include <string>
+#include "cc/dcheck.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)

Powered by Google App Engine
This is Rietveld 408576698