Changeset 96879 in webkit
- Timestamp:
- Oct 6, 2011, 5:17:49 PM (15 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.h (modified) (1 diff)
-
WebKit/chromium/ChangeLog (modified) (1 diff)
-
WebKit/chromium/features.gypi (modified) (3 diffs)
-
WebKit/chromium/src/WebViewImpl.h (modified) (2 diffs)
-
WebKit/chromium/tests/CCLayerTreeHostTest.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96877 r96879 1 2011-10-06 James Robinson <jamesr@chromium.org> 2 3 [chromium] Remove USE(THREADED_COMPOSITING) from the tree 4 https://bugs.webkit.org/show_bug.cgi?id=69489 5 6 Reviewed by Darin Fisher. 7 8 This macro isn't needed any more since the logic it guarded is guarded by a runtime switch. 9 10 * platform/graphics/chromium/cc/CCLayerTreeHost.h: 11 1 12 2011-10-06 David Grogan <dgrogan@chromium.org> 2 13 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.h
r96813 r96879 55 55 virtual PassRefPtr<GraphicsContext3D> createLayerTreeHostContext3D() = 0; 56 56 virtual void didRecreateGraphicsContext(bool success) = 0; 57 #if !USE(THREADED_COMPOSITING) 57 58 // Used in the non-threaded path 58 59 virtual void scheduleComposite() = 0; 59 #endif 60 60 61 protected: 61 62 virtual ~CCLayerTreeHostClient() { } -
trunk/Source/WebKit/chromium/ChangeLog
r96878 r96879 1 2011-10-06 James Robinson <jamesr@chromium.org> 2 3 [chromium] Remove USE(THREADED_COMPOSITING) from the tree 4 https://bugs.webkit.org/show_bug.cgi?id=69489 5 6 Reviewed by Darin Fisher. 7 8 Updated CCLayerTreeHostTest::onEndTest() to pump all pending messages 9 after posting the Quit task and before tearing down any test 10 infrastructure. 11 12 * features.gypi: 13 * src/WebViewImpl.h: 14 * tests/CCLayerTreeHostTest.cpp: 15 (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest): 16 1 17 2011-10-06 James Robinson <jamesr@chromium.org> 2 18 -
trunk/Source/WebKit/chromium/features.gypi
r96867 r96879 108 108 'variables': { 109 109 'use_accelerated_compositing%': 1, 110 'use_threaded_compositing%': 0,111 110 'enable_svg%': 1, 112 111 'enable_touch_events%': 1, … … 117 116 }, 118 117 'use_accelerated_compositing%': '<(use_accelerated_compositing)', 119 'use_threaded_compositing%': '<(use_threaded_compositing)',120 118 'enable_svg%': '<(enable_svg)', 121 119 'enable_touch_events%': '<(enable_touch_events)', … … 140 138 'feature_defines': [ 141 139 'ENABLE_ACCELERATED_2D_CANVAS=1', 142 ],143 }],144 ['use_accelerated_compositing==1 and use_threaded_compositing==1', {145 'feature_defines': [146 'WTF_USE_THREADED_COMPOSITING=1',147 140 ], 148 141 }], -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r96813 r96879 224 224 virtual PassRefPtr<WebCore::GraphicsContext3D> createLayerTreeHostContext3D(); 225 225 virtual void didRecreateGraphicsContext(bool success); 226 #if !USE(THREADED_COMPOSITING) 226 227 227 virtual void scheduleComposite(); 228 #endif229 228 230 229 // WebViewImpl … … 453 452 #if USE(ACCELERATED_COMPOSITING) 454 453 void setIsAcceleratedCompositingActive(bool); 455 #if !USE(THREADED_COMPOSITING)456 void doComposite();457 #endif458 454 void doPixelReadbackToCanvas(WebCanvas*, const WebCore::IntRect&); 459 455 void reallocateRenderer(); -
trunk/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp
r96813 r96879 25 25 #include "config.h" 26 26 27 #if USE(THREADED_COMPOSITING)28 29 27 #include "cc/CCLayerTreeHost.h" 30 28 … … 171 169 } 172 170 173 #if !USE(THREADED_COMPOSITING)174 171 virtual void scheduleComposite() { } 175 #endif176 172 177 173 private: … … 217 213 m_webThread = adoptPtr(webKitPlatformSupport()->createThread("CCLayerTreeHostTest")); 218 214 WebCompositor::setThread(m_webThread.get()); 219 #if USE(THREADED_COMPOSITING)220 215 m_settings.enableCompositorThread = true; 221 #else222 m_settings.enableCompositorThread = false;223 #endif224 216 } 225 217 … … 234 226 { 235 227 ASSERT(isMainThread()); 228 // webkit_support::QuitMessageLoop() simply posts a task on the loop to quit. Any pending messages enqueued 229 // before the Quit task will still run. For this test scenario we want to run all pending messages before 230 // tearing down m_layerTreeHost, so we spin the loop after posting the Quit task. 236 231 webkit_support::QuitMessageLoop(); 232 webkit_support::RunAllPendingMessages(); 237 233 CCLayerTreeHostTest* test = static_cast<CCLayerTreeHostTest*>(self); 238 234 ASSERT(test); … … 717 713 718 714 } // namespace 719 720 #endif
Note:
See TracChangeset
for help on using the changeset viewer.