Skip to content

Commit

Permalink
Rename method in pixel base renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
oktomus committed Mar 8, 2018
1 parent 97dda7c commit e7df980
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace
, m_params(params)
, m_sample_renderer(factory->create(thread_index))
{
if (is_diagnostics_enabled())
if (are_diagnostics_enabled())
{
m_variation_aov_index = frame.create_extra_aov_image("variation");
m_samples_aov_index = frame.create_extra_aov_image("samples");
Expand All @@ -117,7 +117,7 @@ namespace
m_params.m_min_samples,
m_params.m_max_samples,
m_params.m_max_variation,
is_diagnostics_enabled() ? "on" : "off");
are_diagnostics_enabled() ? "on" : "off");
}

void release() override
Expand All @@ -142,7 +142,7 @@ namespace
frame.aov_images().size(),
frame.get_filter()));

if (is_diagnostics_enabled())
if (are_diagnostics_enabled())
{
m_diagnostics.reset(new Tile(
tile.get_width(), tile.get_height(), 2, PixelFormatFloat));
Expand All @@ -156,7 +156,7 @@ namespace
{
PixelRendererBase::on_tile_end(frame, tile, aov_tiles);

if (is_diagnostics_enabled())
if (are_diagnostics_enabled())
{
const size_t width = tile.get_width();
const size_t height = tile.get_height();
Expand Down Expand Up @@ -293,7 +293,7 @@ namespace
}

// Store diagnostics values in the diagnostics tile.
if (is_diagnostics_enabled() && tile_bbox.contains(pt))
if (are_diagnostics_enabled() && tile_bbox.contains(pt))
{
Color<float, 2> values;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace
m_params.m_samples,
m_params.m_force_aa ? "on" : "off",
m_params.m_decorrelate ? "on" : "off",
is_diagnostics_enabled() ? "on" : "off");
are_diagnostics_enabled() ? "on" : "off");
}

void release() override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ PixelRendererBase::PixelRendererBase(
}
}

bool PixelRendererBase::is_diagnostics_enabled() const
bool PixelRendererBase::are_diagnostics_enabled() const
{
return m_params.m_diagnostics;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PixelRendererBase
const size_t thread_index,
const ParamArray& params);

bool is_diagnostics_enabled() const;
bool are_diagnostics_enabled() const;

// This method is called before a tile gets rendered.
void on_tile_begin(
Expand Down

0 comments on commit e7df980

Please sign in to comment.