From 5ec237d93361a32092935ba516af28cb9e406176 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Tue, 22 May 2018 16:44:53 -0400 Subject: 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 Commit-Queue: Ben Wagner --- tools/fiddle/egl_context.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools/fiddle') 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 #include +#include + static const EGLint configAttribs[] = { EGL_SURFACE_TYPE, EGL_PBUFFER_BIT, EGL_BLUE_SIZE, 8, @@ -56,7 +61,7 @@ sk_sp 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; } -- cgit v1.2.3