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

Unified Diff: ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc

Issue 2361023003: Revert of Add ClientNativePixmap multi-planar support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-native-pixmap-dmabug-multiple-planes
Patch Set: Created 4 years, 3 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/gl/gl_image_ozone_native_pixmap_unittest.cc
diff --git a/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc b/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc
index 78514efaf6d53440fdd5c284f47dad084cc0da0e..98bf5565baaf6715588b8e6a76d698488dd982f9 100644
--- a/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc
+++ b/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc
@@ -38,16 +38,11 @@
if (usage == gfx::BufferUsage::GPU_READ_CPU_READ_WRITE) {
auto client_pixmap = client_pixmap_factory_->ImportFromHandle(
pixmap->ExportHandle(), size, usage);
- bool mapped = client_pixmap->Map();
- EXPECT_TRUE(mapped);
-
- for (size_t plane = 0; plane < NumberOfPlanesForBufferFormat(format);
- ++plane) {
- void* data = client_pixmap->GetMemoryAddress(plane);
- GLImageTestSupport::SetBufferDataToColor(
- size.width(), size.height(), pixmap->GetDmaBufPitch(plane), plane,
- pixmap->GetBufferFormat(), color, static_cast<uint8_t*>(data));
- }
+ void* data = client_pixmap->Map();
+ EXPECT_TRUE(data);
+ GLImageTestSupport::SetBufferDataToColor(
+ size.width(), size.height(), pixmap->GetDmaBufPitch(0), 0,
+ pixmap->GetBufferFormat(), color, static_cast<uint8_t*>(data));
client_pixmap->Unmap();
}
« no previous file with comments | « ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc ('k') | ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698