Title: [216483] trunk/Source
Revision
216483
Author
carlo...@webkit.org
Date
2017-05-09 00:45:14 -0700 (Tue, 09 May 2017)

Log Message

[GTK] Building Webkit2Gtk without OpenGL fails.
https://bugs.webkit.org/show_bug.cgi?id=170959

Reviewed by Žan Doberšek.

Source/WebCore:

* platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp:
* platform/graphics/texmap/TextureMapperGC3DPlatformLayer.h:
* platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h:

Source/WebKit2:

* UIProcess/gtk/HardwareAccelerationManager.cpp:
(WebKit::HardwareAccelerationManager::HardwareAccelerationManager):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (216482 => 216483)


--- trunk/Source/WebCore/ChangeLog	2017-05-09 07:37:03 UTC (rev 216482)
+++ trunk/Source/WebCore/ChangeLog	2017-05-09 07:45:14 UTC (rev 216483)
@@ -1,3 +1,14 @@
+2017-05-09  Carlos Garcia Campos  <cgar...@igalia.com>
+
+        [GTK] Building Webkit2Gtk without OpenGL fails.
+        https://bugs.webkit.org/show_bug.cgi?id=170959
+
+        Reviewed by Žan Doberšek.
+
+        * platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp:
+        * platform/graphics/texmap/TextureMapperGC3DPlatformLayer.h:
+        * platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h:
+
 2017-05-09  Fujii Hironori  <hironori.fu...@sony.com>
 
         [AppleWin] CaptureDeviceManager.cpp: error C2813: #import is not supported with /MP

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp (216482 => 216483)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp	2017-05-09 07:37:03 UTC (rev 216482)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp	2017-05-09 07:45:14 UTC (rev 216483)
@@ -20,7 +20,7 @@
 #include "config.h"
 #include "TextureMapperGC3DPlatformLayer.h"
 
-#if USE(TEXTURE_MAPPER)
+#if ENABLE(GRAPHICS_CONTEXT_3D) && USE(TEXTURE_MAPPER)
 
 #if USE(OPENGL_ES_2)
 #define GL_GLEXT_PROTOTYPES 1
@@ -129,4 +129,4 @@
 
 } // namespace WebCore
 
-#endif // USE(TEXTURE_MAPPER)
+#endif // ENABLE(GRAPHICS_CONTEXT_3D) && USE(TEXTURE_MAPPER)

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.h (216482 => 216483)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.h	2017-05-09 07:37:03 UTC (rev 216482)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.h	2017-05-09 07:45:14 UTC (rev 216483)
@@ -19,7 +19,7 @@
 
 #pragma once
 
-#if USE(TEXTURE_MAPPER)
+#if ENABLE(GRAPHICS_CONTEXT_3D) && USE(TEXTURE_MAPPER)
 
 #include "GraphicsContext3D.h"
 #include "PlatformLayer.h"
@@ -61,4 +61,4 @@
 
 } // namespace WebCore
 
-#endif // USE(TEXTURE_MAPPER)
+#endif // ENABLE(GRAPHICS_CONTEXT_3D) && USE(TEXTURE_MAPPER)

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h (216482 => 216483)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h	2017-05-09 07:37:03 UTC (rev 216482)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h	2017-05-09 07:45:14 UTC (rev 216483)
@@ -23,8 +23,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef TextureMapperPlatformLayerBuffer_h
-#define TextureMapperPlatformLayerBuffer_h
+#pragma once
 
 #include "BitmapTextureGL.h"
 #include "GraphicsTypes3D.h"
@@ -31,6 +30,8 @@
 #include "TextureMapperPlatformLayer.h"
 #include <wtf/CurrentTime.h>
 
+#if USE(COORDINATED_GRAPHICS_THREADED)
+
 namespace WebCore {
 
 class TextureMapperPlatformLayerBuffer : public TextureMapperPlatformLayer {
@@ -76,4 +77,4 @@
 
 } // namespace WebCore
 
-#endif // TextureMapperPlatformLayerBuffer_h
+#endif // COORDINATED_GRAPHICS_THREADED

Modified: trunk/Source/WebKit2/ChangeLog (216482 => 216483)


--- trunk/Source/WebKit2/ChangeLog	2017-05-09 07:37:03 UTC (rev 216482)
+++ trunk/Source/WebKit2/ChangeLog	2017-05-09 07:45:14 UTC (rev 216483)
@@ -1,3 +1,13 @@
+2017-05-09  Carlos Garcia Campos  <cgar...@igalia.com>
+
+        [GTK] Building Webkit2Gtk without OpenGL fails.
+        https://bugs.webkit.org/show_bug.cgi?id=170959
+
+        Reviewed by Žan Doberšek.
+
+        * UIProcess/gtk/HardwareAccelerationManager.cpp:
+        (WebKit::HardwareAccelerationManager::HardwareAccelerationManager):
+
 2017-05-08  Youenn Fablet  <you...@apple.com>
 
         Follow-up to bug 171710: use more references and reject if either audio or video source creation is failing

Modified: trunk/Source/WebKit2/UIProcess/gtk/HardwareAccelerationManager.cpp (216482 => 216483)


--- trunk/Source/WebKit2/UIProcess/gtk/HardwareAccelerationManager.cpp	2017-05-09 07:37:03 UTC (rev 216482)
+++ trunk/Source/WebKit2/UIProcess/gtk/HardwareAccelerationManager.cpp	2017-05-09 07:45:14 UTC (rev 216483)
@@ -70,7 +70,7 @@
     }
 #endif
 
-#if PLATFORM(WAYLAND)
+#if PLATFORM(WAYLAND) && USE(EGL)
     if (PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::Wayland) {
         if (!WaylandCompositor::singleton().isRunning()) {
             m_canUseHardwareAcceleration = false;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to