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

Unified Diff: src/gpu/GrEffect.cpp

Issue 22850006: Replace uses of GrAssert by SkASSERT. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase 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/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrEffect.cpp
diff --git a/src/gpu/GrEffect.cpp b/src/gpu/GrEffect.cpp
index 22b38a371e85e463c87725b8bc2f466cc0f72311..f14c171286ae50070c0ef1e0646577781a123b91 100644
--- a/src/gpu/GrEffect.cpp
+++ b/src/gpu/GrEffect.cpp
@@ -63,7 +63,7 @@ int32_t GrBackendEffectFactory::fCurrEffectClassID = GrBackendEffectFactory::kIl
SK_DEFINE_INST_COUNT(GrEffectRef)
GrEffectRef::~GrEffectRef() {
- GrAssert(this->unique());
+ SkASSERT(this->unique());
fEffect->EffectRefDestroyed();
fEffect->unref();
}
@@ -79,7 +79,7 @@ void GrEffectRef::operator delete(void* target) {
///////////////////////////////////////////////////////////////////////////////
GrEffect::~GrEffect() {
- GrAssert(NULL == fEffectRef);
+ SkASSERT(NULL == fEffectRef);
}
const char* GrEffect::name() const {
@@ -91,7 +91,7 @@ void GrEffect::addTextureAccess(const GrTextureAccess* access) {
}
void GrEffect::addVertexAttrib(GrSLType type) {
- GrAssert(fVertexAttribTypes.count() < kMaxVertexAttribs);
+ SkASSERT(fVertexAttribTypes.count() < kMaxVertexAttribs);
fVertexAttribTypes.push_back(type);
}
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698