aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrSamplerState.h
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-04 19:58:30 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-04 19:58:30 +0000
commit83e5eb8d0272da6c990aae399ab9390d2090a955 (patch)
tree4eda8f5a5a5d9ca0ea0718a94064bd79bd90dcc0 /include/gpu/GrSamplerState.h
parent150fee575bd1e7ce092884ce0369ff95c2f08124 (diff)
Clean up likely reference leak in Ganesh custom stages.
Diffstat (limited to 'include/gpu/GrSamplerState.h')
-rw-r--r--include/gpu/GrSamplerState.h3
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; }