summaryrefslogtreecommitdiffstats
path: root/client/display_channel.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-09 18:05:40 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-11-09 19:06:44 +0200
commitec34856feadfb56971bc06f7da7ada67394440a8 (patch)
tree9ef91c6a0ca613d500ddc9dda829cf1c8c62545d /client/display_channel.h
parent4c72ba138c391c27d15e23c349c87e23fd813ac6 (diff)
downloadspice-ec34856feadfb56971bc06f7da7ada67394440a8.tar.gz
spice-ec34856feadfb56971bc06f7da7ada67394440a8.tar.xz
spice-ec34856feadfb56971bc06f7da7ada67394440a8.zip
spice client: remove timer interface from platform - use Application (via ProcessLoop interface).
Diffstat (limited to 'client/display_channel.h')
-rw-r--r--client/display_channel.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/client/display_channel.h b/client/display_channel.h
index 59dc6a61..8600bfb4 100644
--- a/client/display_channel.h
+++ b/client/display_channel.h
@@ -70,6 +70,13 @@ private:
DisplayChannel& _channel;
};
+class StreamsTimer: public Timer {
+public:
+ StreamsTimer(DisplayChannel& channel);
+ virtual void response(AbstractProcessLoop& events_loop);
+private:
+ DisplayChannel& _channel;
+};
class DisplayChannel: public RedChannel, public ScreenLayer {
public:
@@ -145,9 +152,6 @@ private:
static void set_clip_rects(const Clip& clip, uint32_t& num_clip_rects, Rect*& clip_rects,
unsigned long addr_offset, uint8_t *min, uint8_t *max);
- static void streams_timer_callback(void* opaque, TimerID timer);
- static void reset_timer_callback(void* opaque, TimerID timer);
-
private:
std::auto_ptr<Canvas> _canvas;
PixmapCache& _pixmap_cache;
@@ -168,7 +172,7 @@ private:
Mutex _streams_lock;
Mutex _timer_lock;
- TimerID _streams_timer;
+ AutoRef<StreamsTimer> _streams_timer;
uint32_t _next_timer_time;
std::vector<VideoStream*> _streams;
@@ -183,7 +187,7 @@ private:
friend class VideoStream;
friend class StreamsTrigger;
friend class GLInterupt;
- friend void streams_timer_callback(void* opaque, TimerID timer);
+ friend class StreamsTimer;
};
#endif