commit | 83e5eb8d0272da6c990aae399ab9390d2090a955 | [log] [tgz] |
---|---|---|
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jun 04 19:58:30 2012 +0000 |
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jun 04 19:58:30 2012 +0000 |
tree | 4eda8f5a5a5d9ca0ea0718a94064bd79bd90dcc0 | |
parent | 150fee575bd1e7ce092884ce0369ff95c2f08124 [diff] [blame] |
Clean up likely reference leak in Ganesh custom stages. http://codereview.appspot.com/6286047/ git-svn-id: http://skia.googlecode.com/svn/trunk@4146 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index fb59111..f52775d 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h
@@ -165,8 +165,9 @@ this->reset(kDefault_WrapMode, kDefault_Filter, GrMatrix::I()); } - void setCustomStage(GrCustomStage* stage) { + GrCustomStage* setCustomStage(GrCustomStage* stage) { GrSafeAssign(fCustomStage, stage); + return stage; } GrCustomStage* getCustomStage() const { return fCustomStage; }