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>
This commit is contained in:
parent
e19e23fa0c
commit
5ec237d933
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user