Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc

Issue 1314553002: Move Format checks to HardwareDisplayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InitTest Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc b/ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc
index eb4f0914bf9b01e3c81158d332afc04b54dcdc78..ef10a8a33512d74c1075210a10c5463ef0d494e6 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc
+++ b/ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <drm_fourcc.h>
+
#include "base/bind.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkCanvas.h"
@@ -35,7 +37,9 @@ class MockScanoutBuffer : public ui::ScanoutBuffer {
uint32_t GetFramebufferId() const override { return 0; }
uint32_t GetHandle() const override { return 0; }
gfx::Size GetSize() const override { return size_; }
- uint32_t GetFormat() const override { return 0; }
+ uint32_t GetFramebufferPixelFormat() const override {
+ return DRM_FORMAT_XRGB8888;
+ }
private:
~MockScanoutBuffer() override {}

Powered by Google App Engine
This is Rietveld 408576698