File tree Expand file tree Collapse file tree
Source/WebCore/platform/graphics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888#include < wtf/glib/GRefPtr.h>
8989#endif
9090
91- #if USE(CAIRO)
91+ #if USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS)
9292#include < cairo-gl.h>
9393#endif
9494
9595namespace WebCore {
9696
97- #if USE(CAIRO)
97+ #if USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS)
9898static cairo_device_t * s_cairoDevice { nullptr };
9999
100100cairo_device_t * PlatformDisplay::cairoGLDevice ()
@@ -247,7 +247,7 @@ GLContext* PlatformDisplay::sharingGLContext()
247247
248248void PlatformDisplay::clearSharingGLContext ()
249249{
250- #if USE(CAIRO)
250+ #if USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS)
251251 clearCairoGLDevice ();
252252#endif
253253 m_sharingGLContext = nullptr ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ typedef struct _GstGLDisplay GstGLDisplay;
5050#include " LCMSUniquePtr.h"
5151#endif
5252
53- #if USE(CAIRO)
53+ #if USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS)
5454#include < cairo.h>
5555#endif
5656
@@ -113,7 +113,7 @@ class PlatformDisplay {
113113 const String& accessibilityBusAddress () const ;
114114#endif
115115
116- #if USE(CAIRO)
116+ #if USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS)
117117 cairo_device_t * cairoGLDevice ();
118118#endif
119119
You can’t perform that action at this time.
0 commit comments