add LLTrace::MemTrackable to LLVOCachePartition
parent
1a820f8df9
commit
c05fa390dc
|
|
@ -34,6 +34,8 @@
|
|||
#include "llviewerregion.h"
|
||||
#include "pipeline.h"
|
||||
|
||||
LLTrace::MemStatHandle LLVOCachePartition::sMemStat("LLVOCachePartition");
|
||||
|
||||
BOOL check_read(LLAPRFile* apr_file, void* src, S32 n_bytes)
|
||||
{
|
||||
return apr_file->read(src, n_bytes) == n_bytes ;
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ protected:
|
|||
BOOL mTouched; //if set, this entry is valid, otherwise it is invalid.
|
||||
};
|
||||
|
||||
class LLVOCachePartition : public LLViewerOctreePartition
|
||||
class LLVOCachePartition : public LLViewerOctreePartition, public LLTrace::MemTrackable<LLVOCachePartition>
|
||||
{
|
||||
public:
|
||||
LLVOCachePartition(LLViewerRegion* regionp);
|
||||
|
|
@ -155,6 +155,8 @@ public:
|
|||
void addEntry(LLViewerOctreeEntry* entry);
|
||||
void removeEntry(LLViewerOctreeEntry* entry);
|
||||
/*virtual*/ S32 cull(LLCamera &camera);
|
||||
|
||||
static LLTrace::MemStatHandle sMemStat;
|
||||
};
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue