Forward declare ANativeWindow, and remove <hardware/gralloc.h> where
GrallocAndroid.hpp already includes it.
Change-Id: Idebd4c40280960ff00cd51b6633c1c84a8cf7de2
Reviewed-on: https://swiftshader-review.googlesource.com/11288
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
#include "FrameBufferAndroid.hpp"
#include "GrallocAndroid.hpp"
+#include <system/window.h>
#include <cutils/log.h>
namespace sw
#include "Main/FrameBuffer.hpp"
#include "Common/Debug.hpp"
-#include <hardware/gralloc.h>
-#include <system/window.h>
+struct ANativeWindow;
+struct ANativeWindowBuffer;
namespace sw
{
#include <GLES2/gl2ext.h>
#if defined(__ANDROID__)
-#include <hardware/gralloc.h>
#include <system/window.h>
#include "../../Common/GrallocAndroid.hpp"
#include "../../Common/DebugAndroid.hpp"