mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 748914 - Part 1: implement Histogram::Clear; r=taras
This commit is contained in:
parent
d3f72cbbfb
commit
6e12d2a467
@ -149,6 +149,12 @@ void Histogram::AddSampleSet(const SampleSet& sample) {
|
||||
sample_.Add(sample);
|
||||
}
|
||||
|
||||
void Histogram::Clear() {
|
||||
SampleSet ss;
|
||||
ss.Resize(*this);
|
||||
sample_ = ss;
|
||||
}
|
||||
|
||||
void Histogram::SetRangeDescriptions(const DescriptionPair descriptions[]) {
|
||||
DCHECK(false);
|
||||
}
|
||||
|
@ -395,6 +395,8 @@ class Histogram {
|
||||
|
||||
virtual void AddSampleSet(const SampleSet& sample);
|
||||
|
||||
void Clear();
|
||||
|
||||
// This method is an interface, used only by LinearHistogram.
|
||||
virtual void SetRangeDescriptions(const DescriptionPair descriptions[]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user