summaryrefslogtreecommitdiffstats
path: root/ui/gl/test/gl_surface_test_support.h
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2015-10-06 21:12:45 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-07 04:13:43 +0000
commit11b3655a4dfd5b46f7783421e2959a41ddbf3a00 (patch)
treefa883b38c1defaf24c1407fc98fd28a38f64d1de /ui/gl/test/gl_surface_test_support.h
parenta15b1645432b1ee5d9c9ade87da3a76b51b01a67 (diff)
downloadchromium_src-11b3655a4dfd5b46f7783421e2959a41ddbf3a00.zip
chromium_src-11b3655a4dfd5b46f7783421e2959a41ddbf3a00.tar.gz
chromium_src-11b3655a4dfd5b46f7783421e2959a41ddbf3a00.tar.bz2
Re-land: ui: Add GLImage unit test framework.
This makes it possible to test GLImage implementations without requiring multi-process GpuMemoryBuffer support. This initial version is limited to testing CopyTexSubImage with the default buffer format but testing of more functionality and formats will be added in follow up patches. Also inlcudes some minor cleanup needed to not have GLImage implementations depend on GpuMemoryBuffer API. BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1354483004 Cr-Commit-Position: refs/heads/master@{#352767}
Diffstat (limited to 'ui/gl/test/gl_surface_test_support.h')
-rw-r--r--ui/gl/test/gl_surface_test_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gl/test/gl_surface_test_support.h b/ui/gl/test/gl_surface_test_support.h
index 6e53c69..eb70ef0 100644
--- a/ui/gl/test/gl_surface_test_support.h
+++ b/ui/gl/test/gl_surface_test_support.h
@@ -5,6 +5,8 @@
#ifndef UI_GL_TEST_GL_SURFACE_TEST_SUPPORT_H_
#define UI_GL_TEST_GL_SURFACE_TEST_SUPPORT_H_
+#include "ui/gl/gl_implementation.h"
+
namespace gfx {
class GLContext;
@@ -12,6 +14,8 @@ class GLContext;
class GLSurfaceTestSupport {
public:
static void InitializeOneOff();
+ static void InitializeOneOffImplementation(GLImplementation impl,
+ bool fallback_to_osmesa);
static void InitializeOneOffWithMockBindings();
static void InitializeDynamicMockBindings(GLContext* context);
};