Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/session.h
| Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | struct DelayedReset { | ||||
| BufferParams params; | BufferParams params; | ||||
| int samples; | int samples; | ||||
| } delayed_reset; | } delayed_reset; | ||||
| void run(); | void run(); | ||||
| void update_status_time(bool show_pause = false, bool show_done = false); | void update_status_time(bool show_pause = false, bool show_done = false); | ||||
| void tonemap(int sample); | void copy_to_display_buffer(int sample); | ||||
| void render(); | void render(); | ||||
| void reset_(BufferParams ¶ms, int samples); | void reset_(BufferParams ¶ms, int samples); | ||||
| void run_cpu(); | void run_cpu(); | ||||
| bool draw_cpu(BufferParams ¶ms, DeviceDrawParams &draw_params); | bool draw_cpu(BufferParams ¶ms, DeviceDrawParams &draw_params); | ||||
| void reset_cpu(BufferParams ¶ms, int samples); | void reset_cpu(BufferParams ¶ms, int samples); | ||||
| void run_gpu(); | void run_gpu(); | ||||
| Show All 9 Lines | protected: | ||||
| bool device_use_gl; | bool device_use_gl; | ||||
| thread *session_thread; | thread *session_thread; | ||||
| volatile bool display_outdated; | volatile bool display_outdated; | ||||
| volatile bool gpu_draw_ready; | volatile bool gpu_draw_ready; | ||||
| volatile bool gpu_need_tonemap; | volatile bool gpu_need_display_buffer_update; | ||||
| thread_condition_variable gpu_need_tonemap_cond; | thread_condition_variable gpu_need_display_buffer_update_cond; | ||||
| bool pause; | bool pause; | ||||
| thread_condition_variable pause_cond; | thread_condition_variable pause_cond; | ||||
| thread_mutex pause_mutex; | thread_mutex pause_mutex; | ||||
| thread_mutex tile_mutex; | thread_mutex tile_mutex; | ||||
| thread_mutex buffers_mutex; | thread_mutex buffers_mutex; | ||||
| thread_mutex display_mutex; | thread_mutex display_mutex; | ||||
| Show All 23 Lines | |||||