Use packed enums for QueryType.

BUG=angleproject:2169

Change-Id: I129a9d8e295859daa071a298dab9fe1895315cc0
Reviewed-on: https://chromium-review.googlesource.com/957318
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/libANGLE/renderer/QueryImpl.h b/src/libANGLE/renderer/QueryImpl.h
index d738eb4..9a90bf5 100644
--- a/src/libANGLE/renderer/QueryImpl.h
+++ b/src/libANGLE/renderer/QueryImpl.h
@@ -9,11 +9,10 @@
 #ifndef LIBANGLE_RENDERER_QUERYIMPL_H_
 #define LIBANGLE_RENDERER_QUERYIMPL_H_
 
-#include "libANGLE/Error.h"
 
 #include "common/angleutils.h"
-
-#include <GLES2/gl2.h>
+#include "libANGLE/Error.h"
+#include "libANGLE/PackedEnums.h"
 
 namespace rx
 {
@@ -21,7 +20,7 @@
 class QueryImpl : angle::NonCopyable
 {
   public:
-    explicit QueryImpl(GLenum type) { mType = type; }
+    explicit QueryImpl(gl::QueryType type) { mType = type; }
     virtual ~QueryImpl() { }
 
     virtual gl::Error begin() = 0;
@@ -33,10 +32,10 @@
     virtual gl::Error getResult(GLuint64 *params) = 0;
     virtual gl::Error isResultAvailable(bool *available) = 0;
 
-    GLenum getType() const { return mType;  }
+    gl::QueryType getType() const { return mType; }
 
   private:
-    GLenum mType;
+    gl::QueryType mType;
 };
 
 }