Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-29 14:21:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-29 14:21:10 +0400
commit47fb31404fcb7b3244d3a575807a5084996802cb (patch)
tree61060c547ae8c3f3b0753071c1a6e1b600520c5d /intern/cycles/render/session.h
parentbae896691aa3d7bb2a75292da3cc490894996b01 (diff)
Cycles: preview passes setting to set the max number of passes to render in
the viewport working now, set to 0 for unlimited (well, actually 2147483647).
Diffstat (limited to 'intern/cycles/render/session.h')
-rw-r--r--intern/cycles/render/session.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/session.h b/intern/cycles/render/session.h
index 18983f55353..3aaaeedf0c5 100644
--- a/intern/cycles/render/session.h
+++ b/intern/cycles/render/session.h
@@ -109,6 +109,7 @@ public:
bool ready_to_reset();
void reset(int w, int h, int passes);
void set_passes(int passes);
+ void set_pause(bool pause);
protected:
struct DelayedReset {
@@ -146,6 +147,10 @@ protected:
volatile bool gpu_need_tonemap;
thread_condition_variable gpu_need_tonemap_cond;
+ bool pause;
+ thread_condition_variable pause_cond;
+ thread_mutex pause_mutex;
+
double start_time;
double reset_time;
double preview_time;