Commit c5e0ac75 by Kenneth Russell Committed by Commit Bot

Conditionalize DeviceCGL implementation.

Needed in order to build in WebKit. Bug: angleproject:3973 Tbr: geofflang@chromium.org Tbr: jmadill@chromium.org Change-Id: I9818a2f74d07daa4709892c1cfa81670e5f80617 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1851245Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Commit-Queue: Kenneth Russell <kbr@chromium.org>
parent 5d9c4ee3
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
// DeviceCGL.cpp: CGL implementation of egl::Device // DeviceCGL.cpp: CGL implementation of egl::Device
#include "libANGLE/renderer/gl/cgl/DeviceCGL.h" #if __has_include(<Cocoa/Cocoa.h>)
#include "libANGLE/renderer/gl/cgl/DisplayCGL.h" # include "libANGLE/renderer/gl/cgl/DeviceCGL.h"
#include <EGL/eglext.h> # include <EGL/eglext.h>
# include "libANGLE/renderer/gl/cgl/DisplayCGL.h"
namespace rx namespace rx
{ {
...@@ -54,3 +55,5 @@ void DeviceCGL::generateExtensions(egl::DeviceExtensions *outExtensions) const ...@@ -54,3 +55,5 @@ void DeviceCGL::generateExtensions(egl::DeviceExtensions *outExtensions) const
} }
} // namespace rx } // namespace rx
#endif // __has_include(<Cocoa/Cocoa.h>)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment