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

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

Issue 1419733005: gpu: Add YCbCr 420v extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on master. Add gl/gfx namespace qualifiers. Created 5 years, 2 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.h
diff --git a/ui/gl/test/gl_image_test_support.h b/ui/gl/test/gl_image_test_support.h
index 81d67b904007554ab59025163b46f6c08efe0d28..b79618ae1479b6b33efc2b50b64f50a4299012f1 100644
--- a/ui/gl/test/gl_image_test_support.h
+++ b/ui/gl/test/gl_image_test_support.h
@@ -18,7 +18,17 @@ class GLImageTestSupport {
// Cleanup GL after being initialized for image testing.
static void CleanupGL();
+ // Initialize buffers of a specific |format| to |color|.
+ static void SetBufferDataToColor(int width,
+ int height,
+ int strides[],
+ BufferFormat format,
+ const uint8_t color[4],
+ uint8_t* data[]);
reveman 2015/10/29 22:08:04 Let's pass a plane argument to this function inste
Daniele Castagna 2015/10/30 23:51:57 Done.
+
// Initialize buffer of a specific |format| to |color|.
+ // This is useful for GpuMemoryBuffer formats with only
+ // one plane.
static void SetBufferDataToColor(int width,
int height,
int stride,

Powered by Google App Engine
This is Rietveld 408576698