~raof/mir/prober-drm-device-probe

« back to all changes in this revision

Viewing changes to src/server/graphics/android/android_hwc_factory.cpp

  • Committer: Daniel van Vugt
  • Date: 2013-04-24 05:18:38 UTC
  • mfrom: (627 trunk)
  • mto: This revision was merged to the branch mainline in revision 629.
  • Revision ID: daniel.van.vugt@canonical.com-20130424051838-bxzdvlavdj3y051r
MergeĀ latestĀ lp:mir

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include "android_hwc_factory.h"
20
20
#include "hwc11_device.h"
 
21
#include "hwc10_device.h"
21
22
#include "hwc_layerlist.h"
22
23
 
23
24
namespace mga=mir::graphics::android;
29
30
    auto layer_list = std::make_shared<mga::HWCLayerList>();
30
31
    return std::make_shared<mga::HWC11Device>(hwc_device, layer_list, fb_device);
31
32
}
 
33
 
 
34
std::shared_ptr<mga::HWCDevice> mga::AndroidHWCFactory::create_hwc_1_0(
 
35
    std::shared_ptr<hwc_composer_device_1> const& hwc_device,
 
36
    std::shared_ptr<mga::DisplaySupportProvider> const& fb_device) const
 
37
{
 
38
    return std::make_shared<mga::HWC10Device>(hwc_device, fb_device);
 
39
}