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

Unified Diff: cc/render_surface_filters.cc

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase 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/render_surface_filters.cc
diff --git a/cc/render_surface_filters.cc b/cc/render_surface_filters.cc
index afe55d0d757b56c63fb35b81d1ce43aba13f4bbd..fe97948474f8f7333d914662cf316c1d6b1b0d8c 100644
--- a/cc/render_surface_filters.cc
+++ b/cc/render_surface_filters.cc
@@ -6,6 +6,7 @@
#include "CCRenderSurfaceFilters.h"
+#include "cc/dcheck.h"
#include "FloatSize.h"
#include "SkBlurImageFilter.h"
#include "SkCanvas.h"
@@ -294,7 +295,7 @@ public:
private:
void createCanvas()
{
- ASSERT(m_scratchTextures[m_currentTexture].get());
+ CC_DCHECK(m_scratchTextures[m_currentTexture].get());
m_device.reset(new SkGpuDevice(m_grContext, m_scratchTextures[m_currentTexture].get()));
m_canvas.reset(new SkCanvas(m_device.get()));
m_canvas->clear(0x0);
@@ -431,7 +432,7 @@ SkBitmap CCRenderSurfaceFilters::apply(const WebKit::WebFilterOperations& filter
case WebKit::WebFilterOperation::FilterTypeHueRotate:
case WebKit::WebFilterOperation::FilterTypeInvert:
case WebKit::WebFilterOperation::FilterTypeOpacity:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
break;
}
state.swap();

Powered by Google App Engine
This is Rietveld 408576698