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

Unified Diff: ui/ozone/gl/gl_image_ozone_native_pixmap_drm_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
« no previous file with comments | « ui/gfx/native_pixmap_handle.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
diff --git a/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc b/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
index 8ab537f109275758f9e843667dae71eaf79162f3..cc2f1527c052182c275c1fa0581bd9629fe68222 100644
--- a/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
+++ b/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
@@ -50,10 +50,6 @@
0, pitches[0] * size.height() + pitches[1] * size.height() / 2,
pitches[0] * size.height(),
};
- std::vector<size_t> sizes{pitches[0] * size.height(),
- pitches[1] * size.height() / 2,
- pitches[2] * size.height() / 2};
-
size_t byte_number = pitches[0] * size.height() +
pitches[1] * size.height() / 2 +
pitches[2] * size.height() / 2;
@@ -93,7 +89,7 @@
gfx::NativePixmapHandle pixmap_handle;
pixmap_handle.fds.emplace_back(fd, false);
for (int i = 0; i < 3; i++) {
- pixmap_handle.planes.emplace_back(pitches[i], offsets[i], sizes[i], 0);
+ pixmap_handle.planes.emplace_back(pitches[i], offsets[i], 0);
}
ui::SurfaceFactoryOzone* surface_factory =
ui::OzonePlatform::GetInstance()->GetSurfaceFactoryOzone();
« no previous file with comments | « ui/gfx/native_pixmap_handle.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698