common: Add a vector arithmetic helper classes
Change-Id: I2f96baedf10d346eaa150bab04f8f6ca3ba573b9
Reviewed-on: https://chromium-review.googlesource.com/414272
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/tests/gl_tests/ClearTest.cpp b/src/tests/gl_tests/ClearTest.cpp
index 87ce041..1e95ed4 100644
--- a/src/tests/gl_tests/ClearTest.cpp
+++ b/src/tests/gl_tests/ClearTest.cpp
@@ -7,7 +7,6 @@
#include "test_utils/ANGLETest.h"
#include "random_utils.h"
-#include "Vector.h"
using namespace angle;
@@ -26,10 +25,10 @@
GLColor Vec4ToColor(const Vector4 &vec)
{
GLColor color;
- color.R = static_cast<uint8_t>(vec.x * 255.0f);
- color.G = static_cast<uint8_t>(vec.y * 255.0f);
- color.B = static_cast<uint8_t>(vec.z * 255.0f);
- color.A = static_cast<uint8_t>(vec.w * 255.0f);
+ color.R = static_cast<uint8_t>(vec.x() * 255.0f);
+ color.G = static_cast<uint8_t>(vec.y() * 255.0f);
+ color.B = static_cast<uint8_t>(vec.z() * 255.0f);
+ color.A = static_cast<uint8_t>(vec.w() * 255.0f);
return color;
};