aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fiddle
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-05-22 16:44:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-22 21:26:55 +0000
commit5ec237d93361a32092935ba516af28cb9e406176 (patch)
treedef8677707dd80d0eec28676ebbc7873b1aa3253 /tools/fiddle
parente19e23fa0c3676e0317fa18c87fdc1ce74432482 (diff)
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>
Diffstat (limited to 'tools/fiddle')
-rw-r--r--tools/fiddle/egl_context.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/fiddle/egl_context.cpp b/tools/fiddle/egl_context.cpp
index c82382b22f..7994b01a67 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 @@ sk_sp<GrContext> create_grcontext(std::ostringstream &driverinfo) {
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;
}