summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tobin Ehlis <tobine@google.com> 2018-11-13 12:56:01 -0700
committer Tobin Ehlis <tobine@google.com> 2018-11-13 12:58:45 -0700
commitf95bf34a7781080741cabf68e63844914ae39c66 (patch)
treeb4e582abc7349788d385b5bbffdc611b716bb975
parented639e11cc65feac22c7c68c7da50ca63d590a59 (diff)
Update ANGLE Platform.h file
Syncing Platform.h with update from ANGLE repo. Test: build and flash device, run app w/ ANGLE enabled, systrace Change-Id: Ibf7dc98edde1a643068f5d57044736849ceb2f9e
-rw-r--r--opengl/include/EGL/Platform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/opengl/include/EGL/Platform.h b/opengl/include/EGL/Platform.h
index 624d31fd8c..f2b501cdec 100644
--- a/opengl/include/EGL/Platform.h
+++ b/opengl/include/EGL/Platform.h
@@ -36,6 +36,7 @@
namespace angle
{
struct WorkaroundsD3D;
+struct FeaturesVk;
using TraceEventHandle = uint64_t;
using EGLDisplayType = void *;
struct PlatformMethods;
@@ -233,6 +234,13 @@ inline void DefaultOverrideWorkaroundsD3D(PlatformMethods *platform,
{
}
+using OverrideFeaturesVkFunc = void (*)(PlatformMethods *platform,
+ angle::FeaturesVk *workaroundsVulkan);
+inline void DefaultOverrideFeaturesVk(PlatformMethods *platform,
+ angle::FeaturesVk *workaroundsVulkan)
+{
+}
+
// Callback on a successful program link with the program binary. Can be used to store
// shaders to disk. Keys are a 160-bit SHA-1 hash.
using ProgramKeyType = std::array<uint8_t, 20>;
@@ -262,6 +270,7 @@ inline void DefaultCacheProgram(PlatformMethods *platform,
OP(histogramSparse, HistogramSparse) \
OP(histogramBoolean, HistogramBoolean) \
OP(overrideWorkaroundsD3D, OverrideWorkaroundsD3D) \
+ OP(overrideFeaturesVk, OverrideFeaturesVk) \
OP(cacheProgram, CacheProgram)
#define ANGLE_PLATFORM_METHOD_DEF(Name, CapsName) CapsName##Func Name = Default##CapsName;