зеркало из https://github.com/mozilla/gecko-dev.git
Bug 822148 (part 8) - DMD: remove a friend declaration. r=jlebar.
--HG-- extra : rebase_source : c9c23e0bcb2d6a50085daf23d7be04614efa7ac8
This commit is contained in:
Родитель
5d609e3ece
Коммит
7e2bb7c0a9
|
@ -1292,8 +1292,6 @@ public:
|
|||
// A group of one or more heap blocks with a common BlockGroupKey.
|
||||
class BlockGroup : public BlockGroupKey
|
||||
{
|
||||
friend class FrameGroup; // FrameGroups are created from BlockGroups
|
||||
|
||||
// The BlockGroupKey base class serves as the key in BlockGroupTables. These
|
||||
// two fields constitute the value, so it's ok for them to be |mutable|.
|
||||
mutable uint32_t mNumBlocks; // number of blocks with this BlockGroupKey
|
||||
|
@ -1306,6 +1304,8 @@ public:
|
|||
mGroupSize()
|
||||
{}
|
||||
|
||||
uint32_t NumBlocks() const { return mNumBlocks; }
|
||||
|
||||
const GroupSize& GetGroupSize() const { return mGroupSize; }
|
||||
|
||||
// This is |const| thanks to the |mutable| fields above.
|
||||
|
@ -1408,9 +1408,9 @@ public:
|
|||
// This is |const| thanks to the |mutable| fields above.
|
||||
void Add(const BlockGroup& aBg) const
|
||||
{
|
||||
mNumBlocks += aBg.mNumBlocks;
|
||||
mNumBlocks += aBg.NumBlocks();
|
||||
mNumBlockGroups++;
|
||||
mGroupSize.Add(aBg.mGroupSize);
|
||||
mGroupSize.Add(aBg.GetGroupSize());
|
||||
}
|
||||
|
||||
void Print(const Writer& aWriter, LocationService* aLocService,
|
||||
|
|
Загрузка…
Ссылка в новой задаче