~kdub/mir/mali-client-render-support

« back to all changes in this revision

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

  • Committer: Kevin DuBois
  • Date: 2013-11-05 21:44:14 UTC
  • mfrom: (1062.1.137 dev)
  • Revision ID: kevin.dubois@canonical.com-20131105214414-d32r52joqrs8tsmo
merge dev branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef MIR_GRAPHICS_ANDROID_HWC_COMMON_DEVICE_H_
20
20
#define MIR_GRAPHICS_ANDROID_HWC_COMMON_DEVICE_H_
21
21
 
22
 
#include "display_support_provider.h"
 
22
#include "display_device.h"
23
23
#include <hardware/hwcomposer.h>
24
24
 
25
25
#include <mutex>
40
40
    HWCCommonDevice* self;
41
41
};
42
42
 
43
 
class HWCCommonDevice : public DisplaySupportProvider
 
43
class HWCCommonDevice : public DisplayDevice
44
44
{
45
45
public:
46
46
    virtual ~HWCCommonDevice() noexcept;
47
47
 
48
 
    /* from HWCDevice */
49
 
    geometry::PixelFormat display_format() const;
50
 
    unsigned int number_of_framebuffers_available() const; 
51
 
    virtual void mode(MirPowerMode mode);
52
 
 
53
48
    void notify_vsync();
 
49
    void mode(MirPowerMode mode);
 
50
 
54
51
protected:
55
52
    HWCCommonDevice(std::shared_ptr<hwc_composer_device_1> const& hwc_device,
56
53
                    std::shared_ptr<HWCVsyncCoordinator> const& coordinator);
57
54
 
58
55
    std::shared_ptr<hwc_composer_device_1> const hwc_device;
59
56
    std::shared_ptr<HWCVsyncCoordinator> const coordinator;
60
 
protected:
61
57
    std::unique_lock<std::mutex> lock_unblanked();
62
58
 
63
59
private: