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

Unified Diff: cc/draw_quad.cc

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/direct_renderer.cc ('k') | cc/font_atlas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad.cc
diff --git a/cc/draw_quad.cc b/cc/draw_quad.cc
index b88eac68610a4a01ab19ec3619f574e54d806494..999b0aacbe52b2fa2f4187b2ff3561b6f6b0deea 100644
--- a/cc/draw_quad.cc
+++ b/cc/draw_quad.cc
@@ -5,6 +5,7 @@
#include "config.h"
#include "CCDrawQuad.h"
+#include "base/logging.h"
#include "CCCheckerboardDrawQuad.h"
#include "CCDebugBorderDrawQuad.h"
#include "CCIOSurfaceDrawQuad.h"
@@ -27,8 +28,8 @@ CCDrawQuad::CCDrawQuad(const CCSharedQuadState* sharedQuadState, Material materi
, m_quadOpaque(true)
, m_needsBlending(false)
{
- ASSERT(m_sharedQuadState);
- ASSERT(m_material != Invalid);
+ DCHECK(m_sharedQuadState);
+ DCHECK(m_material != Invalid);
}
IntRect CCDrawQuad::opaqueRect() const
@@ -79,10 +80,10 @@ unsigned CCDrawQuad::size() const
scoped_ptr<CCDrawQuad> CCDrawQuad::copy(const CCSharedQuadState* copiedSharedQuadState) const
{
// RenderPass quads have their own copy() method.
- ASSERT(material() != RenderPass);
+ DCHECK(material() != RenderPass);
unsigned bytes = size();
- ASSERT(bytes);
+ DCHECK(bytes > 0);
scoped_ptr<CCDrawQuad> copyQuad(reinterpret_cast<CCDrawQuad*>(new char[bytes]));
memcpy(copyQuad.get(), this, bytes);
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/font_atlas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698