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

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

Issue 2627973006: ozone: Create GbmBuffers from fourcc formats and gbm flags. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc b/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
index 2052cbb00260b51210f2160c09ec702836a9e1a2..04012231ee3294a0a6788d3a118ea8f6778897f5 100644
--- a/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
+++ b/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
@@ -54,9 +54,7 @@ class DrmOverlayValidatorTest : public testing::Test {
scoped_refptr<ui::ScanoutBuffer> ProcessBuffer(const gfx::Size& size,
uint32_t format) {
- gfx::BufferFormat buffer_format =
- ui::GetBufferFormatFromFourCCFormat(format);
- return buffer_generator_->Create(drm_, buffer_format, size);
+ return buffer_generator_->Create(drm_, format, size);
}
scoped_refptr<ui::ScanoutBuffer> ReturnNullBuffer(const gfx::Size& size,
@@ -135,8 +133,9 @@ void DrmOverlayValidatorTest::SetUp() {
scoped_refptr<ui::DrmDevice> drm =
window_->GetController()->GetAllocationDrmDevice();
for (const auto& param : overlay_params_) {
- scoped_refptr<ui::ScanoutBuffer> scanout_buffer =
- buffer_generator_->Create(drm, param.format, param.buffer_size);
+ scoped_refptr<ui::ScanoutBuffer> scanout_buffer = buffer_generator_->Create(
+ drm, ui::GetFourCCFormatForFramebuffer(param.format),
+ param.buffer_size);
ui::OverlayPlane plane(std::move(scanout_buffer), param.plane_z_order,
param.transform, param.display_rect, param.crop_rect,
process_buffer_handler_);
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698