mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 638549 - fix leak of WebGL about:memory reporters - r=jrmuizel
See bug 638549 comment 25. We had to ref-count these pointers.
This commit is contained in:
parent
e343a8afa2
commit
ed1b42f47f
@ -2183,17 +2183,17 @@ class WebGLMemoryReporter
|
||||
typedef nsTArray<const WebGLContext*> ContextsArrayType;
|
||||
ContextsArrayType mContexts;
|
||||
|
||||
nsIMemoryReporter *mTextureMemoryUsageReporter;
|
||||
nsIMemoryReporter *mTextureCountReporter;
|
||||
nsIMemoryReporter *mBufferMemoryUsageReporter;
|
||||
nsIMemoryReporter *mBufferCacheMemoryUsageReporter;
|
||||
nsIMemoryReporter *mBufferCountReporter;
|
||||
nsIMemoryReporter *mRenderbufferMemoryUsageReporter;
|
||||
nsIMemoryReporter *mRenderbufferCountReporter;
|
||||
nsIMemoryReporter *mShaderSourcesSizeReporter;
|
||||
nsIMemoryReporter *mShaderTranslationLogsSizeReporter;
|
||||
nsIMemoryReporter *mShaderCountReporter;
|
||||
nsIMemoryReporter *mContextCountReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mTextureMemoryUsageReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mTextureCountReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mBufferMemoryUsageReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mBufferCacheMemoryUsageReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mBufferCountReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mRenderbufferMemoryUsageReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mRenderbufferCountReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mShaderSourcesSizeReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mShaderTranslationLogsSizeReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mShaderCountReporter;
|
||||
nsCOMPtr<nsIMemoryReporter> mContextCountReporter;
|
||||
|
||||
static WebGLMemoryReporter* UniqueInstance();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user