2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-06-11 00:00:35 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
#ifndef WEBGL_MEMORY_TRACKER_H_
|
|
|
|
#define WEBGL_MEMORY_TRACKER_H_
|
2013-06-11 00:00:35 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
#include "nsIMemoryReporter.h"
|
2013-06-11 00:00:35 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
2013-12-08 09:39:47 +04:00
|
|
|
class WebGLMemoryTracker : public nsIMemoryReporter {
|
2020-01-09 01:19:23 +03:00
|
|
|
public:
|
2013-12-08 09:39:47 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
|
|
|
NS_DECL_NSIMEMORYREPORTER
|
2013-11-26 04:01:52 +04:00
|
|
|
|
2013-11-07 09:35:30 +04:00
|
|
|
private:
|
2020-01-09 01:19:23 +03:00
|
|
|
virtual ~WebGLMemoryTracker() = default;
|
2013-06-11 00:00:35 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
#endif // WEBGL_MEMORY_TRACKER_H_
|