Changeset 128372 in webkit
- Timestamp:
- Sep 12, 2012 3:36:08 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r128371 r128372 1 2012-09-12 Siraj Razick <siraj.razick@collabora.co.uk> 2 3 [GTK] Protect RedirectedXCompositeWindow with USE(GLX) when building the clutter AC backend 4 https://bugs.webkit.org/show_bug.cgi?id=96165 5 6 Reviewed by Martin Robinson. 7 8 RedirectedXCompositeWindow.cpp and RedirectedXCompositeWindow.h files requies openGL specific 9 headers to compile so when we build webkit clutter AC backend these files failed to compile, 10 This patch protects these two files with USE(GLX) when building webkit with Clutter AC backend. 11 12 No new tests since this is a build fix 13 14 * platform/gtk/RedirectedXCompositeWindow.cpp: 15 * platform/gtk/RedirectedXCompositeWindow.h: 16 protects both the files with USE(GLX) 17 1 18 2012-09-12 Ojan Vafai <ojan@chromium.org> 2 19 -
trunk/Source/WebCore/platform/gtk/RedirectedXCompositeWindow.cpp
r126182 r128372 28 28 #include "RedirectedXCompositeWindow.h" 29 29 30 #if USE(GLX) 30 31 #include "GLContextGLX.h" 31 32 #include <GL/glx.h> … … 215 216 216 217 } // namespace WebCore 218 219 #endif // USE(GLX) -
trunk/Source/WebCore/platform/gtk/RedirectedXCompositeWindow.h
r126182 r128372 27 27 #ifndef RedirectedXCompositeWindow_h 28 28 #define RedirectedXCompositeWindow_h 29 30 #if USE(GLX) 29 31 30 32 #include "GLContextGLX.h" … … 69 71 } // namespace WebCore 70 72 73 #endif // USE(GLX) 74 71 75 #endif // RedirectedXCompositeWindow_h -
trunk/Source/WebKit/gtk/ChangeLog
r128231 r128372 1 2012-09-12 Siraj Razick <siraj.razick@collabora.co.uk> 2 3 [GTK] Update AcceleratedCompositingContextClutter to match AcceleratedCompositingContext.h API update 4 https://bugs.webkit.org/show_bug.cgi?id=96165 5 6 Reviewed by Martin Robinson. 7 8 Due to the refactoring done in bug #90085 AcceleratedCompositingContext API changed, as a result 9 AcceleratedCompositingContextClutter doesn't compile anymore. This patch is to update the 10 AcceleratedCompositingContextClutter implementations to match the API update, and Make webkit 11 AC backend compile again. 12 13 * WebCoreSupport/AcceleratedCompositingContextClutter.cpp: 14 (WebKit::AcceleratedCompositingContext::AcceleratedCompositingContext): 15 (WebKit::AcceleratedCompositingContext::~AcceleratedCompositingContext): 16 (WebKit::AcceleratedCompositingContext::setRootCompositingLayer): 17 (WebKit::AcceleratedCompositingContext::setNonCompositedContentsNeedDisplay): 18 (WebKit::flushAndRenderLayersCallback): 19 (WebKit::AcceleratedCompositingContext::scheduleLayerFlush): 20 (WebKit::AcceleratedCompositingContext::flushPendingLayerChanges): 21 (WebKit::AcceleratedCompositingContext::flushAndRenderLayers): 22 1 23 2012-09-11 Arnaud Renevier <a.renevier@sisa.samsung.com> 2 24 -
trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextClutter.cpp
r120359 r128372 37 37 AcceleratedCompositingContext::AcceleratedCompositingContext(WebKitWebView* webView) 38 38 : m_webView(webView) 39 , m_ syncTimerCallbackId(0)39 , m_layerFlushTimerCallbackId(0) 40 40 , m_rootGraphicsLayer(0) 41 41 , m_rootLayerEmbedder(0) … … 45 45 AcceleratedCompositingContext::~AcceleratedCompositingContext() 46 46 { 47 if (m_ syncTimerCallbackId)48 g_source_remove(m_ syncTimerCallbackId);47 if (m_layerFlushTimerCallbackId) 48 g_source_remove(m_layerFlushTimerCallbackId); 49 49 } 50 50 … … 60 60 } 61 61 62 void AcceleratedCompositingContext:: attachRootGraphicsLayer(GraphicsLayer* graphicsLayer)62 void AcceleratedCompositingContext::setRootCompositingLayer(GraphicsLayer* graphicsLayer) 63 63 { 64 64 if (!graphicsLayer) { … … 87 87 } 88 88 89 void AcceleratedCompositingContext::s cheduleRootLayerRepaint(const IntRect& rect)89 void AcceleratedCompositingContext::setNonCompositedContentsNeedDisplay(const IntRect& rect) 90 90 { 91 91 if (!m_rootGraphicsLayer) … … 113 113 } 114 114 115 static gboolean syncLayersTimeoutCallback(AcceleratedCompositingContext* context)115 static gboolean flushAndRenderLayersCallback(AcceleratedCompositingContext* context) 116 116 { 117 context-> syncLayersTimeout();117 context->flushAndRenderLayers(); 118 118 return FALSE; 119 119 } 120 120 121 void AcceleratedCompositingContext:: markForSync()121 void AcceleratedCompositingContext::scheduleLayerFlush() 122 122 { 123 if (m_ syncTimerCallbackId)123 if (m_layerFlushTimerCallbackId) 124 124 return; 125 125 126 126 // We use a GLib timer because otherwise GTK+ event handling during 127 127 // dragging can starve WebCore timers, which have a lower priority. 128 m_ syncTimerCallbackId = g_timeout_add_full(GDK_PRIORITY_EVENTS, 0, reinterpret_cast<GSourceFunc>(syncLayersTimeoutCallback), this, 0);128 m_layerFlushTimerCallbackId = g_timeout_add_full(GDK_PRIORITY_EVENTS, 0, reinterpret_cast<GSourceFunc>(flushAndRenderLayersCallback), this, 0); 129 129 } 130 130 131 void AcceleratedCompositingContext::syncLayersNow()131 bool AcceleratedCompositingContext::flushPendingLayerChanges() 132 132 { 133 133 if (m_rootGraphicsLayer) 134 134 m_rootGraphicsLayer->syncCompositingStateForThisLayerOnly(); 135 135 136 core(m_webView)->mainFrame()->view()->syncCompositingStateIncludingSubframes();136 return core(m_webView)->mainFrame()->view()->syncCompositingStateIncludingSubframes(); 137 137 } 138 138 139 void AcceleratedCompositingContext:: syncLayersTimeout()139 void AcceleratedCompositingContext::flushAndRenderLayers() 140 140 { 141 m_ syncTimerCallbackId = 0;142 syncLayersNow();141 m_layerFlushTimerCallbackId = 0; 142 flushPendingLayerChanges(); 143 143 if (!m_rootGraphicsLayer) 144 144 return;
Note: See TracChangeset
for help on using the changeset viewer.