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

Unified Diff: ui/gl/test/gl_image_test_support.cc

Issue 2920793005: gpu: support R16 GPUMemoryBuffer (Closed)
Patch Set: return capabilities.texture_norm16 Created 3 years, 6 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/gl/test/gl_image_test_support.cc
diff --git a/ui/gl/test/gl_image_test_support.cc b/ui/gl/test/gl_image_test_support.cc
index b77b2fd9d3863fd9553c0a50210d3647139f864a..36e26bd8e57d1ce8022ec330b070d11c60bc4fec 100644
--- a/ui/gl/test/gl_image_test_support.cc
+++ b/ui/gl/test/gl_image_test_support.cc
@@ -54,6 +54,7 @@ void GLImageTestSupport::SetBufferDataToColor(int width,
uint8_t* data) {
switch (format) {
case gfx::BufferFormat::R_8:
+ case gfx::BufferFormat::R_16:
aleksandar.stojiljkovic 2017/06/08 14:27:56 are there any tests using this? Should be somethi
riju_ 2017/06/09 08:20:10 Thanks.
riju_ 2017/06/09 08:20:10 Done.
case gfx::BufferFormat::RG_88:
DCHECK_EQ(0, plane);
for (int y = 0; y < height; ++y) {

Powered by Google App Engine
This is Rietveld 408576698