~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to src/platform/graphics/android/hwc_common_device.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-10-10 14:01:26 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20141010140126-n1czko8na1kuz4ll
Tags: upstream-0.8.0+14.10.20141010
ImportĀ upstreamĀ versionĀ 0.8.0+14.10.20141010

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <memory>
26
26
#include <mutex>
27
27
#include <condition_variable>
 
28
#include <atomic>
28
29
 
29
30
namespace mir
30
31
{
39
40
struct HWCCallbacks
40
41
{
41
42
    hwc_procs_t hooks;
42
 
    HWCCommonDevice* self;
 
43
    std::atomic<HWCCommonDevice*> self;
43
44
};
44
45
 
45
46
class HWCCommonDevice : public DisplayDevice
63
64
    void turn_screen_off();
64
65
    virtual void turned_screen_off();
65
66
 
66
 
    HWCCallbacks callbacks;
67
 
 
 
67
    std::shared_ptr<HWCCallbacks> const callbacks;
68
68
    std::shared_ptr<HwcWrapper> const hwc_device;
69
69
 
70
70
    std::mutex blanked_mutex;