Merge branch 'master' of github.com:mapnik/mapnik into image_data_any
Conflicts: tests/visual_tests/images/dots-500-100-1.0-agg-reference.png tests/visual_tests/images/dots-500-100-2.0-agg-reference.png tests/visual_tests/images/marker-svg-opacity-500-100-1.0-agg-reference.png tests/visual_tests/images/marker-svg-opacity-500-100-2.0-agg-reference.png
This commit is contained in:
commit
0d42906dc1
1 changed files with 27 additions and 0 deletions
|
@ -231,6 +231,33 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class test3d : public benchmark::test_case
|
||||
{
|
||||
public:
|
||||
uint32_t size_;
|
||||
std::vector<uint8_t> array_;
|
||||
test3d(mapnik::parameters const& params)
|
||||
: test_case(params),
|
||||
size_(*params.get<mapnik::value_integer>("size",256*256)),
|
||||
array_(size_,0) { }
|
||||
bool validate() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
bool operator()() const
|
||||
{
|
||||
for (std::size_t i=0;i<iterations_;++i) {
|
||||
std::deque<uint8_t> data(size_);
|
||||
for (std::size_t i=0;i<size_;++i) {
|
||||
if (data[i] != 0) {
|
||||
throw std::runtime_error("found non zero value");
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class test4 : public benchmark::test_case
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue