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

Unified Diff: src/gpu/GrGpuResource.cpp

Issue 693843004: Remove bogus assert (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpuResource.cpp
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp
index 87c7349246aca003fb8cc86985e74d2a304e325d..d4728452fb1c8ac634ef79011a564dcbcbb38a02 100644
--- a/src/gpu/GrGpuResource.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -80,10 +80,9 @@ GrContext* GrGpuResource::getContext() {
}
bool GrGpuResource::setContentKey(const GrResourceKey& contentKey) {
- SkASSERT(!contentKey.isScratch());
// Currently this can only be called once and can't be called when the resource is scratch.
+ SkASSERT(!contentKey.isScratch());
SkASSERT(this->internalHasRef());
- SkASSERT(!this->internalHasPendingIO());
if (fContentKeySet) {
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698