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

Unified Diff: src/effects/SkGpuBlurUtils.cpp

Issue 22418006: effects: Replaces uses of GrAssert with SkASSERT. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | « src/effects/SkArithmeticMode.cpp ('k') | src/effects/SkMagnifierImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkGpuBlurUtils.cpp
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp
index 5fc51811aa4b722a373fa0c396d35489d5ad5a78..fce5b6bc3026f4cb1fcfa0c3fef041bf1e304459 100644
--- a/src/effects/SkGpuBlurUtils.cpp
+++ b/src/effects/SkGpuBlurUtils.cpp
@@ -35,7 +35,7 @@ static float adjust_sigma(float sigma, int *scaleFactor, int *radius) {
sigma *= 0.5f;
}
*radius = static_cast<int>(ceilf(sigma * 3.0f));
- GrAssert(*radius <= GrConvolutionEffect::kMaxKernelRadius);
+ SkASSERT(*radius <= GrConvolutionEffect::kMaxKernelRadius);
return sigma;
}
@@ -119,7 +119,7 @@ GrTexture* GaussianBlur(GrContext* context,
bool cropToRect,
float sigmaX,
float sigmaY) {
- GrAssert(NULL != context);
+ SkASSERT(NULL != context);
GrContext::AutoRenderTarget art(context);
@@ -140,7 +140,7 @@ GrTexture* GaussianBlur(GrContext* context,
GrContext::AutoClip acs(context, SkRect::MakeWH(srcRect.width(), srcRect.height()));
- GrAssert(kBGRA_8888_GrPixelConfig == srcTexture->config() ||
+ SkASSERT(kBGRA_8888_GrPixelConfig == srcTexture->config() ||
kRGBA_8888_GrPixelConfig == srcTexture->config() ||
kAlpha_8_GrPixelConfig == srcTexture->config());
« no previous file with comments | « src/effects/SkArithmeticMode.cpp ('k') | src/effects/SkMagnifierImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698