Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/path_trace.cpp
| Show First 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | |||||
| void PathTrace::set_gpu_display(unique_ptr<GPUDisplay> gpu_display) | void PathTrace::set_gpu_display(unique_ptr<GPUDisplay> gpu_display) | ||||
| { | { | ||||
| gpu_display_ = move(gpu_display); | gpu_display_ = move(gpu_display); | ||||
| } | } | ||||
| void PathTrace::draw() | void PathTrace::draw() | ||||
| { | { | ||||
| DCHECK(gpu_display_); | if (!gpu_display_) { | ||||
| return; | |||||
| } | |||||
| did_draw_after_reset_ |= gpu_display_->draw(); | did_draw_after_reset_ |= gpu_display_->draw(); | ||||
| } | } | ||||
| void PathTrace::update_display(const RenderWork &render_work) | void PathTrace::update_display(const RenderWork &render_work) | ||||
| { | { | ||||
| if (!render_work.update_display) { | if (!render_work.update_display) { | ||||
| return; | return; | ||||
| ▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines | |||||