Changeset 111099 in webkit
- Timestamp:
- Mar 16, 2012 5:41:19 PM (12 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/PlatformBlackBerry.cmake
r109698 r111099 45 45 blackberry/Api/WebKitTextCodec.cpp 46 46 blackberry/Api/WebPage.cpp 47 blackberry/Api/WebPageCompositor.cpp 47 48 blackberry/Api/WebPageGroupLoadDeferrer.cpp 48 49 blackberry/Api/WebSettings.cpp … … 78 79 blackberry/WebKitSupport/TouchEventHandler.cpp 79 80 blackberry/WebKitSupport/FatFingers.cpp 80 blackberry/WebKitSupport/WebPageCompositor.cpp81 81 ) 82 82 -
trunk/Source/WebKit/blackberry/Api/BackingStore.h
r110712 r111099 41 41 class WebPage; 42 42 class WebPagePrivate; 43 class WebPageCompositor ;43 class WebPageCompositorPrivate; 44 44 class BackingStorePrivate; 45 45 class BackingStoreClient; … … 82 82 friend class BlackBerry::WebKit::WebPage; 83 83 friend class BlackBerry::WebKit::WebPagePrivate; // FIXME: For now, we expose our internals to WebPagePrivate. See PR #120301. 84 friend class BlackBerry::WebKit::WebPageCompositor ;84 friend class BlackBerry::WebKit::WebPageCompositorPrivate; 85 85 friend class WebCore::ChromeClientBlackBerry; 86 86 friend class WebCore::FrameLoaderClientBlackBerry; -
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r111024 r111099 120 120 #if USE(ACCELERATED_COMPOSITING) 121 121 #include "FrameLayers.h" 122 #include "WebPageCompositor .h"122 #include "WebPageCompositor_p.h" 123 123 #endif 124 124 … … 5326 5326 5327 5327 if (!m_compositor) { 5328 m_compositor = adoptPtr(new WebPageCompositor (this));5328 m_compositor = adoptPtr(new WebPageCompositorPrivate(this)); 5329 5329 m_isAcceleratedCompositingActive = m_compositor->hardwareCompositing(); 5330 5330 if (!m_isAcceleratedCompositingActive) -
trunk/Source/WebKit/blackberry/Api/WebPageCompositor.cpp
r111098 r111099 20 20 21 21 #if USE(ACCELERATED_COMPOSITING) 22 #include "WebPageCompositor .h"22 #include "WebPageCompositor_p.h" 23 23 24 24 #include "BackingStore_p.h" … … 37 37 namespace WebKit { 38 38 39 WebPageCompositor ::WebPageCompositor(WebPagePrivate* page)39 WebPageCompositorPrivate::WebPageCompositorPrivate(WebPagePrivate* page) 40 40 : m_webPage(page) 41 41 , m_context(GLES2Context::create(page)) … … 44 44 , m_compositedGeneration(-1) 45 45 , m_backingStoreUsesOpenGL(false) 46 , m_animationTimer(this, &WebPageCompositor ::animationTimerFired)46 , m_animationTimer(this, &WebPageCompositorPrivate::animationTimerFired) 47 47 , m_timerClient(new Platform::GenericTimerClient(Platform::userInterfaceThreadTimerClient())) 48 48 { … … 50 50 } 51 51 52 WebPageCompositor ::~WebPageCompositor()52 WebPageCompositorPrivate::~WebPageCompositorPrivate() 53 53 { 54 54 m_animationTimer.stop(); … … 56 56 } 57 57 58 bool WebPageCompositor ::hardwareCompositing() const58 bool WebPageCompositorPrivate::hardwareCompositing() const 59 59 { 60 60 return m_layerRenderer->hardwareCompositing(); 61 61 } 62 62 63 void WebPageCompositor ::setRootLayer(LayerCompositingThread* rootLayer)63 void WebPageCompositorPrivate::setRootLayer(LayerCompositingThread* rootLayer) 64 64 { 65 65 m_rootLayer = rootLayer; … … 67 67 } 68 68 69 void WebPageCompositor ::setBackingStoreUsesOpenGL(bool backingStoreUsesOpenGL)69 void WebPageCompositorPrivate::setBackingStoreUsesOpenGL(bool backingStoreUsesOpenGL) 70 70 { 71 71 m_backingStoreUsesOpenGL = backingStoreUsesOpenGL; … … 73 73 } 74 74 75 void WebPageCompositor ::commit(LayerWebKitThread* rootLayer)75 void WebPageCompositorPrivate::commit(LayerWebKitThread* rootLayer) 76 76 { 77 77 if (!rootLayer) … … 82 82 } 83 83 84 bool WebPageCompositor ::drawLayers(const IntRect& dstRect, const FloatRect& contents)84 bool WebPageCompositorPrivate::drawLayers(const IntRect& dstRect, const FloatRect& contents) 85 85 { 86 86 // Save a draw if we already drew this generation, for example due to a concurrent scroll operation. … … 106 106 } 107 107 108 void WebPageCompositor ::releaseLayerResources()108 void WebPageCompositorPrivate::releaseLayerResources() 109 109 { 110 110 m_layerRenderer->releaseLayerResources(); 111 111 } 112 112 113 void WebPageCompositor ::animationTimerFired()113 void WebPageCompositorPrivate::animationTimerFired() 114 114 { 115 115 if (m_webPage->m_backingStore->d->shouldDirectRenderingToWindow()) { -
trunk/Source/WebKit/blackberry/Api/WebPageCompositor_p.h
r111098 r111099 17 17 */ 18 18 19 #ifndef WebPageCompositor_ h20 #define WebPageCompositor_ h19 #ifndef WebPageCompositor_p_h 20 #define WebPageCompositor_p_h 21 21 22 22 #if USE(ACCELERATED_COMPOSITING) … … 40 40 41 41 // This class may only be used on the compositing thread. 42 class WebPageCompositor {42 class WebPageCompositorPrivate { 43 43 public: 44 WebPageCompositor (WebPagePrivate*);45 ~WebPageCompositor ();44 WebPageCompositorPrivate(WebPagePrivate*); 45 ~WebPageCompositorPrivate(); 46 46 47 47 bool hardwareCompositing() const; … … 82 82 WebCore::FloatRect m_compositedContentsRect; 83 83 bool m_backingStoreUsesOpenGL; 84 BlackBerry::Platform::Timer<WebPageCompositor > m_animationTimer;84 BlackBerry::Platform::Timer<WebPageCompositorPrivate> m_animationTimer; 85 85 BlackBerry::Platform::TimerClient* m_timerClient; 86 86 }; … … 91 91 #endif // USE(ACCELERATED_COMPOSITING) 92 92 93 #endif // WebPageCompositor_ h93 #endif // WebPageCompositor_p_h -
trunk/Source/WebKit/blackberry/Api/WebPage_p.h
r111024 r111099 66 66 #if USE(ACCELERATED_COMPOSITING) 67 67 class FrameLayers; 68 class WebPageCompositor ;68 class WebPageCompositorPrivate; 69 69 #endif 70 70 … … 500 500 bool m_isAcceleratedCompositingActive; 501 501 OwnPtr<FrameLayers> m_frameLayers; // WebKit thread only. 502 OwnPtr<WebPageCompositor > m_compositor; // Compositing thread only.502 OwnPtr<WebPageCompositorPrivate> m_compositor; // Compositing thread only. 503 503 OwnPtr<WebCore::Timer<WebPagePrivate> > m_rootLayerCommitTimer; 504 504 bool m_needsOneShotDrawingSynchronization; -
trunk/Source/WebKit/blackberry/ChangeLog
r111087 r111099 1 2012-03-16 Arvid Nilsson <anilsson@rim.com> 2 3 [BlackBerry] Rename the existing WebPageCompositor class to WebPageCompositorPrivate 4 https://bugs.webkit.org/show_bug.cgi?id=81108 5 RIM PR: 136687 6 7 Reviewed by Rob Buis. 8 9 This is done in anticipation of a new WebPageCompositor class in the 10 public API. The existing internal class will serve to d-pointerize the 11 new public API. In addition, it is and will be possible to create only 12 the private class, for cases where existing code paths require 13 OpenGL compositing (i.e. due to accelerated compositing layers being 14 added to the page). 15 16 Reviewed internally by Robin Cao. 17 18 * Api/BackingStore.h: 19 * Api/WebPage.cpp: 20 (BlackBerry::WebKit::WebPagePrivate::setIsAcceleratedCompositingActive): 21 * Api/WebPageCompositor.cpp: Renamed from Source/WebKit/blackberry/WebKitSupport/WebPageCompositor.cpp. 22 (BlackBerry::WebKit::WebPageCompositorPrivate::WebPageCompositorPrivate): 23 (BlackBerry::WebKit::WebPageCompositorPrivate::~WebPageCompositorPrivate): 24 (BlackBerry::WebKit::WebPageCompositorPrivate::hardwareCompositing): 25 (BlackBerry::WebKit::WebPageCompositorPrivate::setRootLayer): 26 (BlackBerry::WebKit::WebPageCompositorPrivate::setBackingStoreUsesOpenGL): 27 (BlackBerry::WebKit::WebPageCompositorPrivate::commit): 28 (BlackBerry::WebKit::WebPageCompositorPrivate::drawLayers): 29 (BlackBerry::WebKit::WebPageCompositorPrivate::releaseLayerResources): 30 (BlackBerry::WebKit::WebPageCompositorPrivate::animationTimerFired): 31 * Api/WebPageCompositor_p.h: Renamed from Source/WebKit/blackberry/WebKitSupport/WebPageCompositor.h. 32 (BlackBerry::WebKit::WebPageCompositorPrivate::layoutRectForCompositing): 33 (BlackBerry::WebKit::WebPageCompositorPrivate::setLayoutRectForCompositing): 34 (BlackBerry::WebKit::WebPageCompositorPrivate::contentsSizeForCompositing): 35 (BlackBerry::WebKit::WebPageCompositorPrivate::setContentsSizeForCompositing): 36 (BlackBerry::WebKit::WebPageCompositorPrivate::lastCompositingResults): 37 (BlackBerry::WebKit::WebPageCompositorPrivate::setLastCompositingResults): 38 * Api/WebPage_p.h: 39 * CMakeListsBlackBerry.txt: 40 1 41 2012-03-16 Nima Ghanavatian <nghanavatian@rim.com> 2 42
Note: See TracChangeset
for help on using the changeset viewer.