~raof/mir/documentation-warning

« back to all changes in this revision

Viewing changes to src/platforms/android/output_builder.h

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2015-01-09 19:51:39 UTC
  • mfrom: (2171.3.18 hwc-driver-callbacks)
  • Revision ID: tarmac-20150109195139-8292x7rc7jzk37zp
android: provide an interface in HwcWrapper for the mir code to subscribe to the driver callbacks. The callback reception was previously buried within the HwcCommonDevice class, but now we need it to see hotplug events and drive the display changes.

Also subsume hwc_device_composer_device_1 under HwcWrapper. (it was previously only partially wrapped).
.

Approved by PS Jenkins bot, Alberto Aguirre, Robert Carr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define MIR_GRAPHICS_ANDROID_OUTPUT_BUILDER_H_
21
21
 
22
22
#include "display_buffer_builder.h"
 
23
#include "display_resource_factory.h"
23
24
#include "overlay_optimization.h"
24
25
#include "hardware/hwcomposer.h"
25
26
#include "hardware/fb.h"
62
63
    bool force_backup_display;
63
64
 
64
65
    std::shared_ptr<HwcWrapper> hwc_wrapper;
65
 
    std::shared_ptr<hwc_composer_device_1> hwc_native;
66
66
    std::shared_ptr<framebuffer_device_t> fb_native;
67
67
    OverlayOptimization overlay_optimization;
 
68
    HwcVersion hwc_version;
68
69
};
69
70
 
70
71
}