diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-04 19:58:30 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-04 19:58:30 +0000 |
commit | 83e5eb8d0272da6c990aae399ab9390d2090a955 (patch) | |
tree | 4eda8f5a5a5d9ca0ea0718a94064bd79bd90dcc0 /include | |
parent | 150fee575bd1e7ce092884ce0369ff95c2f08124 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrSamplerState.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index fb59111d14..f52775de74 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h @@ -165,8 +165,9 @@ public: 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; } |