IWYU for tools/fiddle/egl_context.cpp
There is no reason for this particular file to pull in the massive
fiddle_main.h.
Change-Id: I4ac8fa6195a78ce5adf2890cab694cfb2bd0660c
Reviewed-on: https://skia-review.googlesource.com/129452
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/tools/fiddle/egl_context.cpp b/tools/fiddle/egl_context.cpp
index c82382b..7994b01 100644
--- a/tools/fiddle/egl_context.cpp
+++ b/tools/fiddle/egl_context.cpp
@@ -5,11 +5,16 @@
* found in the LICENSE file.
*/
-#include "fiddle_main.h"
+#include "GrContext.h"
+#include "SkRefCnt.h"
+#include "gl/GrGLFunctions.h"
+#include "gl/GrGLInterface.h"
#include <EGL/egl.h>
#include <GLES2/gl2.h>
+#include <sstream>
+
static const EGLint configAttribs[] = {
EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
EGL_BLUE_SIZE, 8,
@@ -56,7 +61,7 @@
return nullptr;
}
- EGLContext eglCtx = eglCreateContext(eglDpy, eglCfg, EGL_NO_CONTEXT, NULL);
+ EGLContext eglCtx = eglCreateContext(eglDpy, eglCfg, EGL_NO_CONTEXT, nullptr);
if (EGL_NO_CONTEXT == eglCtx) {
return nullptr;
}