~alan-griffiths/mir/mir_surface_state_horizmaximized

« back to all changes in this revision

Viewing changes to src/platforms/android/hwc_device.cpp

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2015-01-09 09:29:21 UTC
  • mfrom: (2146.6.23 power-on-to-display)
  • Revision ID: tarmac-20150109092921-qc22abxbii5osrzt
android: move the display control from mga::DisplayDevice implementations to mga::Display. 
mga::Display is the object that's best positioned to see and configure all the displays.

Approved by PS Jenkins bot, Cemil Azizoglu, Alan Griffiths, Robert Carr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
}
67
67
 
68
68
mga::HwcDevice::HwcDevice(std::shared_ptr<HwcWrapper> const& hwc_wrapper,
69
 
                          std::shared_ptr<HwcConfiguration> const& hwc_config,
70
69
                          std::shared_ptr<HWCVsyncCoordinator> const& coordinator,
71
70
                          std::shared_ptr<LayerAdapter> const& layer_adapter)
72
 
    : HWCCommonDevice(hwc_wrapper, hwc_config, coordinator),
 
71
    : HWCCommonDevice(hwc_wrapper, coordinator),
73
72
      hwc_list{layer_adapter, {}, fbtarget_plus_skip_size},
74
73
      hwc_wrapper(hwc_wrapper)
75
74
{
188
187
    return true;
189
188
}
190
189
 
191
 
void mga::HwcDevice::turned_screen_off()
 
190
void mga::HwcDevice::content_cleared()
192
191
{
193
192
    onscreen_overlay_buffers.clear();
194
193
}