diff options
| author | Mathias Agopian <mathias@google.com> | 2009-06-16 12:38:55 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2009-06-16 12:38:55 -0700 |
| commit | 69f066c8fc42b9f0acc5c41f8ffd972f8d6d0584 (patch) | |
| tree | 3a8bc941200fa85a32a21657ac69ec9beb9a6463 /libs/rs/rsProgramFragmentStore.cpp | |
| parent | 151e859e0fc3a930bdf6d270d275e69e9eba0cbf (diff) | |
| parent | b0b160ae50497966666bcdcaf974eca2643acfd3 (diff) | |
| download | frameworks_base-69f066c8fc42b9f0acc5c41f8ffd972f8d6d0584.zip frameworks_base-69f066c8fc42b9f0acc5c41f8ffd972f8d6d0584.tar.gz frameworks_base-69f066c8fc42b9f0acc5c41f8ffd972f8d6d0584.tar.bz2 | |
Merge commit 'goog/master' into merge_master
Diffstat (limited to 'libs/rs/rsProgramFragmentStore.cpp')
| -rw-r--r-- | libs/rs/rsProgramFragmentStore.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libs/rs/rsProgramFragmentStore.cpp b/libs/rs/rsProgramFragmentStore.cpp index 7f5d5f4..a1855a6 100644 --- a/libs/rs/rsProgramFragmentStore.cpp +++ b/libs/rs/rsProgramFragmentStore.cpp @@ -202,7 +202,6 @@ ProgramFragmentStoreState::~ProgramFragmentStoreState() } - namespace android { namespace renderscript { @@ -238,7 +237,6 @@ RsProgramFragmentStore rsi_ProgramFragmentStoreCreate(Context *rsc) ProgramFragmentStore *pfs = rsc->mStateFragmentStore.mPFS; pfs->incRef(); rsc->mStateFragmentStore.mPFS = 0; - return pfs; } @@ -247,6 +245,17 @@ void rsi_ProgramFragmentStoreDither(Context *rsc, bool enable) rsc->mStateFragmentStore.mPFS->setDitherEnable(enable); } +void rsi_ProgramFragmentStoreDestroy(Context *rsc, RsProgramFragmentStore vpfs) +{ + ProgramFragmentStore *pfs = (ProgramFragmentStore *)vpfs; + if (pfs->getName()) { + rsc->removeName(pfs); + } + pfs->decRef(); +} + + + } } |
