~thomir-deactivatedaccount/+junk/mir-stress

« back to all changes in this revision

Viewing changes to src/client.h

  • Committer: Thomi Richards
  • Date: 2013-05-29 21:41:20 UTC
  • Revision ID: thomi.richards@canonical.com-20130529214120-mwnyt4um9orayfj7
Multi-threaded surface allocations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    /// Connect to the mir server specified by socket_file.
16
16
    ///\return True if the connection was successful.
17
17
    virtual bool connect(std::string unique_name, const char* socket_file=0) =0;
 
18
    virtual bool create_surface() =0;
 
19
    virtual void release_surface() =0;
18
20
    virtual void disconnect() =0;
19
21
};
20
22
 
21
23
 
22
24
class MirConnection;
 
25
class MirSurface;
23
26
 
24
27
class UnacceleratedClient: public ClientStateMachine
25
28
{
26
29
public:
27
30
    UnacceleratedClient();
28
31
    bool connect(std::string unique_name, const char* socket_file=0) override;
 
32
    bool create_surface() override;
 
33
    void release_surface() override;
29
34
    void disconnect() override;
30
35
private:
31
36
    MirConnection* connection_;
 
37
    MirSurface* surface_;
32
38
};