| Index: ui/ozone/platform/drm/test/mock_drm_device.cc
|
| diff --git a/ui/ozone/platform/drm/test/mock_drm_device.cc b/ui/ozone/platform/drm/test/mock_drm_device.cc
|
| index c72f82a2fb633cf6f38d5656e6cd9254a72bc409..8d09356d81caeb1ef206ccfd8d86064725023992 100644
|
| --- a/ui/ozone/platform/drm/test/mock_drm_device.cc
|
| +++ b/ui/ozone/platform/drm/test/mock_drm_device.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "ui/ozone/platform/drm/test/mock_drm_device.h"
|
|
|
| +#include <drm_fourcc.h>
|
| #include <xf86drm.h>
|
| #include <xf86drmMode.h>
|
|
|
| @@ -31,8 +32,12 @@ class MockHardwareDisplayPlaneManager
|
| crtcs_.swap(crtcs);
|
| for (size_t crtc_idx = 0; crtc_idx < crtcs_.size(); crtc_idx++) {
|
| for (size_t i = 0; i < planes_per_crtc; i++) {
|
| - planes_.push_back(
|
| + scoped_ptr<HardwareDisplayPlane> plane(
|
| new HardwareDisplayPlane(kPlaneBaseId + i, 1 << crtc_idx));
|
| + // Add support to test more formats.
|
| + plane->Initialize(drm, std::vector<uint32_t>(1, DRM_FORMAT_XRGB8888),
|
| + false, true);
|
| + planes_.push_back(plane.Pass());
|
| }
|
| }
|
| }
|
|
|