aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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;
}