Use angle::Result in front-end. (Part 1)
This covers most of the hot paths used in draw calls. Gives in the
order of a 5% reduction in draw call overhead.
Bug: angleproject:2491
Change-Id: I2d53afb1163eaceed61fb9cd9ce6c1267c85c0fa
Reviewed-on: https://chromium-review.googlesource.com/c/1258149
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libANGLE/Program.cpp b/src/libANGLE/Program.cpp
index 2422d2b..c0fd27c 100644
--- a/src/libANGLE/Program.cpp
+++ b/src/libANGLE/Program.cpp
@@ -4108,7 +4108,7 @@
return false;
}
-Error Program::syncState(const Context *context)
+angle::Result Program::syncState(const Context *context)
{
if (mDirtyBits.any())
{
@@ -4117,6 +4117,6 @@
mDirtyBits.reset();
}
- return NoError();
+ return angle::Result::Continue();
}
} // namespace gl