Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(445)

Unified Diff: intern/memutil/intern/MEM_CacheLimiterC-Api.cpp

Issue 5283049: MovieCache implementation Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Most recent patchset Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « intern/memutil/MEM_CacheLimiterC-Api.h ('k') | source/blender/blenkernel/BKE_sequencer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: intern/memutil/intern/MEM_CacheLimiterC-Api.cpp
===================================================================
--- intern/memutil/intern/MEM_CacheLimiterC-Api.cpp (revision 41036)
+++ intern/memutil/intern/MEM_CacheLimiterC-Api.cpp (working copy)
@@ -54,8 +54,8 @@
class MEM_CacheLimiterCClass {
public:
- MEM_CacheLimiterCClass(MEM_CacheLimiter_Destruct_Func data_destructor_)
- : data_destructor(data_destructor_) {
+ MEM_CacheLimiterCClass(MEM_CacheLimiter_Destruct_Func data_destructor_, MEM_CacheLimiter_DataSize_Func data_size)
+ : data_destructor(data_destructor_), cache(data_size) {
}
~MEM_CacheLimiterCClass();
@@ -142,10 +142,12 @@
}
MEM_CacheLimiterC * new_MEM_CacheLimiter(
- MEM_CacheLimiter_Destruct_Func data_destructor)
+ MEM_CacheLimiter_Destruct_Func data_destructor,
+ MEM_CacheLimiter_DataSize_Func data_size)
{
return (MEM_CacheLimiterC*) new MEM_CacheLimiterCClass(
- data_destructor);
+ data_destructor,
+ data_size);
}
void delete_MEM_CacheLimiter(MEM_CacheLimiterC * This)
« no previous file with comments | « intern/memutil/MEM_CacheLimiterC-Api.h ('k') | source/blender/blenkernel/BKE_sequencer.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b