зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e343a8afa2
Коммит
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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче