From: Nicolas Capens Date: Fri, 4 Aug 2017 13:36:32 +0000 (-0400) Subject: Refactor Android includes. X-Git-Tag: android-x86-7.1-r1~24 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9cb01cfc420e06238578fdcced6b061c1f33d356;hp=4dd1eff4e91ca076325eb224dc248b4acced3ff1;p=android-x86%2Fexternal-swiftshader.git Refactor Android includes. Forward declare ANativeWindow, and remove where GrallocAndroid.hpp already includes it. Change-Id: Idebd4c40280960ff00cd51b6633c1c84a8cf7de2 Reviewed-on: https://swiftshader-review.googlesource.com/11288 Tested-by: Nicolas Capens Reviewed-by: Alexis Hétu Reviewed-by: Nicolas Capens --- diff --git a/src/Main/FrameBufferAndroid.cpp b/src/Main/FrameBufferAndroid.cpp index 73409216d..49957c86e 100644 --- a/src/Main/FrameBufferAndroid.cpp +++ b/src/Main/FrameBufferAndroid.cpp @@ -15,6 +15,7 @@ #include "FrameBufferAndroid.hpp" #include "GrallocAndroid.hpp" +#include #include namespace sw diff --git a/src/Main/FrameBufferAndroid.hpp b/src/Main/FrameBufferAndroid.hpp index 7e34ea274..44001884a 100644 --- a/src/Main/FrameBufferAndroid.hpp +++ b/src/Main/FrameBufferAndroid.hpp @@ -18,8 +18,8 @@ #include "Main/FrameBuffer.hpp" #include "Common/Debug.hpp" -#include -#include +struct ANativeWindow; +struct ANativeWindowBuffer; namespace sw { diff --git a/src/OpenGL/common/Image.hpp b/src/OpenGL/common/Image.hpp index c2e7f534c..e13b19ece 100644 --- a/src/OpenGL/common/Image.hpp +++ b/src/OpenGL/common/Image.hpp @@ -22,7 +22,6 @@ #include #if defined(__ANDROID__) -#include #include #include "../../Common/GrallocAndroid.hpp" #include "../../Common/DebugAndroid.hpp"