diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-09-01 16:34:48 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-09-02 10:45:39 -0700 |
commit | 8e95466b5aa16b13c9e39b7ff8167f47a643c4ba (patch) | |
tree | 50354e0b120c28a99467ce8ce0f82872e8b19fe6 /libs/rs/rsScriptC_Lib.cpp | |
parent | 6d8fe9b40bf7ffba54c21f5b142dd247326cd9a6 (diff) |
Adding ability to dirty the allocation and notify shaders using it.
Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
Diffstat (limited to 'libs/rs/rsScriptC_Lib.cpp')
-rw-r--r-- | libs/rs/rsScriptC_Lib.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC_Lib.cpp b/libs/rs/rsScriptC_Lib.cpp index b4b32bbec1e8..41828dc2afa7 100644 --- a/libs/rs/rsScriptC_Lib.cpp +++ b/libs/rs/rsScriptC_Lib.cpp @@ -356,6 +356,11 @@ int SC_getAllocation(const void *ptr) return (int)alloc; } +void SC_allocationMarkDirty(RsAllocation a) +{ + Allocation *alloc = static_cast<Allocation *>(a); + alloc->sendDirty(); +} void SC_ForEach(RsScript vs, RsAllocation vin, @@ -422,6 +427,8 @@ static ScriptCState::SymbolTable_t gSyms[] = { { "_Z13rsClearObjectP13rs_allocation", (void *)&SC_clearObject }, { "_Z10rsIsObject13rs_allocation", (void *)&SC_isObject }, + { "_Z21rsAllocationMarkDirty13rs_allocation", (void *)&SC_allocationMarkDirty }, + // Debug { "_Z7rsDebugPKcf", (void *)&SC_debugF }, |