Changeset 82675 in webkit
- Timestamp:
- Apr 1, 2011 6:26:52 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 9 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r82660 r82675 1 2011-03-31 Adam Roben <aroben@apple.com> 2 3 Split LayerTreeHostCA into a base class and derived Mac and Win classes 4 5 This will make it easier to customize the Mac and Windows implementations without adding too 6 many #ifdefs. 7 8 Fixes <http://webkit.org/b/57606> Windows and Mac should use separate LayerTreeHost classes 9 10 Reviewed by Anders Carlsson. 11 12 * WebKit2.xcodeproj/project.pbxproj: Added LayerTreeHostCAMac.h. 13 14 * WebProcess/WebPage/LayerTreeHost.cpp: 15 (WebKit::LayerTreeHost::create): Create a LayerTreeHostCAMac on Mac, and LayerTreeHostCAWin 16 on Windows. 17 18 * WebProcess/WebPage/ca/LayerTreeHostCA.cpp: 19 (WebKit::LayerTreeHostCA::LayerTreeHostCA): Moved some code from here... 20 (WebKit::LayerTreeHostCA::initialize): ...to here. This function will be called after the 21 constructor returns, and thus can safely call functions that are pure virtual in this class 22 and its base class. We now pass our LayerTreeContext to platformInitialize so that our 23 derived classes can initialize it. 24 (WebKit::LayerTreeHostCA::~LayerTreeHostCA): Removed Mac-specific code. 25 26 (WebKit::LayerTreeHostCA::invalidate): 27 (WebKit::LayerTreeHostCA::sizeDidChange): 28 (WebKit::LayerTreeHostCA::forceRepaint): 29 (WebKit::LayerTreeHostCA::didPerformScheduledLayerFlush): 30 Removed platform* calls. Derived classes can just override these functions to do what they 31 need. 32 33 * WebProcess/WebPage/ca/LayerTreeHostCA.h: Removed Mac-specific pieces. Made some functions 34 virtual so that derived classes can override them. 35 36 * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h: Added. 37 38 * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm: 39 (WebKit::LayerTreeHostCAMac::create): Create and initialize a host. 40 (WebKit::LayerTreeHostCAMac::LayerTreeHostCAMac): Simple constructor. 41 (WebKit::LayerTreeHostCAMac::~LayerTreeHostCAMac): Moved code here from LayerTreeHostCA 42 destructor. 43 (WebKit::LayerTreeHostCAMac::platformInitialize): Removed direct uses of LayerTreeHostCA 44 data members. 45 46 (WebKit::LayerTreeHostCAMac::invalidate): 47 (WebKit::LayerTreeHostCAMac::sizeDidChange): 48 (WebKit::LayerTreeHostCAMac::forceRepaint): 49 (WebKit::LayerTreeHostCAMac::didPerformScheduledLayerFlush): 50 Renamed from platform*. Now call up to the base class. 51 52 (WebKit::LayerTreeHostCAMac::flushPendingLayerChangesRunLoopObserverCallback): Updated type. 53 54 * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp: 55 (WebKit::LayerTreeHostCAWin::create): Create and initialize a host. 56 57 (WebKit::LayerTreeHostCAWin::LayerTreeHostCAWin): 58 (WebKit::LayerTreeHostCAWin::~LayerTreeHostCAWin): 59 (WebKit::LayerTreeHostCAWin::platformInitialize): 60 (WebKit::LayerTreeHostCAWin::scheduleLayerFlush): 61 Stubbed out. 62 63 * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Added. 64 65 * win/WebKit2.vcproj: Added LayerTreeHostCAWin.h 66 67 * win/WebKit2Apple.vsprops: Added WebProcess/WebPage/ca/win to the include path. 68 1 69 2011-03-31 Brent Fulgham <bfulgham@webkit.org> 2 70 -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r82465 r82675 763 763 C0E3AA7B1209E83500A49D01 /* Module.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C0E3AA451209E2BA00A49D01 /* Module.cpp */; }; 764 764 C0E3AA7C1209E83C00A49D01 /* Module.h in Headers */ = {isa = PBXBuildFile; fileRef = C0E3AA441209E2BA00A49D01 /* Module.h */; }; 765 C0FA52431345694A0028E8C2 /* LayerTreeHostCAMac.h in Headers */ = {isa = PBXBuildFile; fileRef = C0FA52421345694A0028E8C2 /* LayerTreeHostCAMac.h */; }; 765 766 C517388112DF8F4F00EE3F47 /* DragControllerAction.h in Headers */ = {isa = PBXBuildFile; fileRef = C517388012DF8F4F00EE3F47 /* DragControllerAction.h */; }; 766 767 C5237F6012441CA300780472 /* WebEditorClientMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = C5237F5F12441CA300780472 /* WebEditorClientMac.mm */; }; … … 1672 1673 C0E3AA451209E2BA00A49D01 /* Module.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Module.cpp; sourceTree = "<group>"; }; 1673 1674 C0E3AA481209E45000A49D01 /* ModuleMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ModuleMac.mm; sourceTree = "<group>"; }; 1675 C0FA52421345694A0028E8C2 /* LayerTreeHostCAMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayerTreeHostCAMac.h; sourceTree = "<group>"; }; 1674 1676 C517388012DF8F4F00EE3F47 /* DragControllerAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DragControllerAction.h; sourceTree = "<group>"; }; 1675 1677 C5237F5F12441CA300780472 /* WebEditorClientMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebEditorClientMac.mm; sourceTree = "<group>"; }; … … 3109 3111 isa = PBXGroup; 3110 3112 children = ( 3113 C0FA52421345694A0028E8C2 /* LayerTreeHostCAMac.h */, 3111 3114 C03A136B133BEBF900D767D1 /* LayerTreeHostCAMac.mm */, 3112 3115 ); … … 3652 3655 5110AE0D133C16CB0072717A /* WKIconDatabase.h in Headers */, 3653 3656 5123CF1C133D260A0056F800 /* WKIconDatabaseCG.h in Headers */, 3657 C0FA52431345694A0028E8C2 /* LayerTreeHostCAMac.h in Headers */, 3654 3658 ); 3655 3659 runOnlyForDeploymentPostprocessing = 0; -
trunk/Source/WebKit2/WebProcess/WebPage/LayerTreeHost.cpp
r81902 r82675 28 28 29 29 #if PLATFORM(MAC) 30 #include "LayerTreeHostCA .h"31 #e ndif32 33 # if !PLATFORM(MAC) && !PLATFORM(WIN)30 #include "LayerTreeHostCAMac.h" 31 #elif PLATFORM(WIN) 32 #include "LayerTreeHostCAWin.h" 33 #else 34 34 #error "This class is not ready for use by other ports yet." 35 35 #endif … … 42 42 { 43 43 #if PLATFORM(MAC) 44 return LayerTreeHostCA::create(webPage); 44 return LayerTreeHostCAMac::create(webPage); 45 #elif PLATFORM(WIN) 46 return LayerTreeHostCAWin::create(webPage); 45 47 #endif 46 47 return 0;48 48 } 49 49 -
trunk/Source/WebKit2/WebProcess/WebPage/ca/LayerTreeHostCA.cpp
r81903 r82675 39 39 namespace WebKit { 40 40 41 PassRefPtr<LayerTreeHostCA> LayerTreeHostCA::create(WebPage* webPage)42 {43 return adoptRef(new LayerTreeHostCA(webPage));44 }45 46 41 LayerTreeHostCA::LayerTreeHostCA(WebPage* webPage) 47 42 : LayerTreeHost(webPage) … … 49 44 , m_notifyAfterScheduledLayerFlush(false) 50 45 { 51 46 } 47 48 void LayerTreeHostCA::initialize() 49 { 52 50 // Create a root layer. 53 51 m_rootLayer = GraphicsLayer::create(this); … … 56 54 #endif 57 55 m_rootLayer->setDrawsContent(false); 58 m_rootLayer->setSize( webPage->size());56 m_rootLayer->setSize(m_webPage->size()); 59 57 60 58 m_nonCompositedContentLayer = GraphicsLayer::create(this); … … 64 62 m_nonCompositedContentLayer->setDrawsContent(true); 65 63 m_nonCompositedContentLayer->setContentsOpaque(m_webPage->drawsBackground() && !m_webPage->drawsTransparentBackground()); 66 m_nonCompositedContentLayer->setSize( webPage->size());64 m_nonCompositedContentLayer->setSize(m_webPage->size()); 67 65 if (m_webPage->corePage()->settings()->acceleratedDrawingEnabled()) 68 66 m_nonCompositedContentLayer->setAcceleratesDrawing(true); … … 73 71 createPageOverlayLayer(); 74 72 75 platformInitialize( );73 platformInitialize(m_layerTreeContext); 76 74 77 75 scheduleLayerFlush(); … … 82 80 ASSERT(!m_isValid); 83 81 ASSERT(!m_rootLayer); 84 #if PLATFORM(MAC)85 ASSERT(!m_flushPendingLayerChangesRunLoopObserver);86 ASSERT(!m_remoteLayerClient);87 #endif88 82 } 89 83 … … 110 104 { 111 105 ASSERT(m_isValid); 112 platformInvalidate();113 106 m_rootLayer = nullptr; 114 107 m_isValid = false; … … 139 132 scheduleLayerFlush(); 140 133 flushPendingLayerChanges(); 141 142 platformSizeDidChange();143 134 } 144 135 … … 147 138 scheduleLayerFlush(); 148 139 flushPendingLayerChanges(); 149 150 platformForceRepaint();151 140 } 152 141 … … 219 208 void LayerTreeHostCA::didPerformScheduledLayerFlush() 220 209 { 221 platformDidPerformScheduledLayerFlush();222 223 210 if (m_notifyAfterScheduledLayerFlush) { 224 211 // Let the drawing area know that we've done a flush of the layer changes. -
trunk/Source/WebKit2/WebProcess/WebPage/ca/LayerTreeHostCA.h
r81903 r82675 32 32 #include <wtf/OwnPtr.h> 33 33 34 #if PLATFORM(MAC)35 #include <wtf/RetainPtr.h>36 #endif37 38 #if PLATFORM(MAC)39 typedef struct __WKCARemoteLayerClientRef* WKCARemoteLayerClientRef;40 #endif41 42 34 namespace WebKit { 43 35 44 36 class LayerTreeHostCA : public LayerTreeHost, WebCore::GraphicsLayerClient { 45 37 public: 46 static PassRefPtr<LayerTreeHostCA> create(WebPage*); 47 ~LayerTreeHostCA(); 38 virtual ~LayerTreeHostCA(); 48 39 49 pr ivate:40 protected: 50 41 explicit LayerTreeHostCA(WebPage*); 51 42 43 WebCore::GraphicsLayer* rootLayer() const { return m_rootLayer.get(); } 44 45 void initialize(); 46 void performScheduledLayerFlush(); 47 48 // LayerTreeHost. 49 virtual void invalidate(); 50 virtual void sizeDidChange(const WebCore::IntSize& newSize); 51 virtual void forceRepaint(); 52 53 // LayerTreeHostCA 54 virtual void didPerformScheduledLayerFlush(); 55 56 private: 52 57 // LayerTreeHost. 53 58 virtual const LayerTreeContext& layerTreeContext(); 54 virtual void scheduleLayerFlush();55 59 virtual void setShouldNotifyAfterNextScheduledLayerFlush(bool); 56 60 virtual void setRootCompositingLayer(WebCore::GraphicsLayer*); 57 virtual void invalidate();58 61 59 62 virtual void setNonCompositedContentsNeedDisplay(const WebCore::IntRect&); 60 63 virtual void scrollNonCompositedContents(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset); 61 virtual void sizeDidChange(const WebCore::IntSize& newSize);62 virtual void forceRepaint();63 64 64 65 virtual void didInstallPageOverlay(); … … 73 74 virtual bool showRepaintCounter() const; 74 75 75 void platformInitialize(); 76 void platformInvalidate(); 77 void platformSizeDidChange(); 78 void platformForceRepaint(); 76 // LayerTreeHostCA 77 virtual void platformInitialize(LayerTreeContext&) = 0; 79 78 80 void performScheduledLayerFlush();81 void didPerformScheduledLayerFlush();82 void platformDidPerformScheduledLayerFlush();83 79 bool flushPendingLayerChanges(); 84 80 85 81 void createPageOverlayLayer(); 86 82 void destroyPageOverlayLayer(); 87 88 #if PLATFORM(MAC)89 static void flushPendingLayerChangesRunLoopObserverCallback(CFRunLoopObserverRef, CFRunLoopActivity, void*);90 #endif91 83 92 84 // The context for this layer tree. … … 108 100 // The page overlay layer. Will be null if there's no page overlay. 109 101 OwnPtr<WebCore::GraphicsLayer> m_pageOverlayLayer; 110 111 #if PLATFORM(MAC)112 RetainPtr<WKCARemoteLayerClientRef> m_remoteLayerClient;113 RetainPtr<CFRunLoopObserverRef> m_flushPendingLayerChangesRunLoopObserver;114 #endif115 102 }; 116 103 -
trunk/Source/WebKit2/WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h
r82673 r82675 24 24 */ 25 25 26 #include "config.h" 26 #ifndef LayerTreeHostCAMac_h 27 #define LayerTreeHostCAMac_h 28 27 29 #include "LayerTreeHostCA.h" 30 #include <wtf/RetainPtr.h> 28 31 29 #include <WebCore/NotImplemented.h> 32 typedef struct __WKCARemoteLayerClientRef* WKCARemoteLayerClientRef; 30 33 31 34 namespace WebKit { 32 35 33 void LayerTreeHostCA::platformInitialize() 34 { 35 // FIXME: <http://webkit.org/b/45567> Implement this! 36 notImplemented(); 37 } 36 class LayerTreeHostCAMac : public LayerTreeHostCA { 37 public: 38 static PassRefPtr<LayerTreeHostCAMac> create(WebPage*); 39 virtual ~LayerTreeHostCAMac(); 38 40 39 void LayerTreeHostCA::scheduleLayerFlush() 40 { 41 // FIXME: <http://webkit.org/b/45567> Implement this! 42 notImplemented(); 43 } 41 private: 42 explicit LayerTreeHostCAMac(WebPage*); 44 43 45 void LayerTreeHostCA::platformInvalidate() 46 { 47 // FIXME: <http://webkit.org/b/45567> Implement this!48 notImplemented();49 } 44 // LayerTreeHost. 45 virtual void scheduleLayerFlush(); 46 virtual void invalidate(); 47 virtual void sizeDidChange(const WebCore::IntSize& newSize); 48 virtual void forceRepaint(); 50 49 51 void LayerTreeHostCA::platformSizeDidChange() 52 { 53 // FIXME: <http://webkit.org/b/45567> Implement this! 54 notImplemented(); 55 } 50 // LayerTreeHostCA 51 virtual void platformInitialize(LayerTreeContext&); 52 virtual void didPerformScheduledLayerFlush(); 56 53 57 void LayerTreeHostCA::platformForceRepaint() 58 { 59 // FIXME: <http://webkit.org/b/45567> Implement this! 60 notImplemented(); 61 } 54 static void flushPendingLayerChangesRunLoopObserverCallback(CFRunLoopObserverRef, CFRunLoopActivity, void*); 62 55 63 void LayerTreeHostCA::platformDidPerformScheduledLayerFlush() 64 { 65 // FIXME: <http://webkit.org/b/45567> Implement this! 66 notImplemented(); 67 } 56 RetainPtr<WKCARemoteLayerClientRef> m_remoteLayerClient; 57 RetainPtr<CFRunLoopObserverRef> m_flushPendingLayerChangesRunLoopObserver; 58 }; 68 59 69 60 } // namespace WebKit 61 62 #endif // LayerTreeHostCAMac_h -
trunk/Source/WebKit2/WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm
r81903 r82675 25 25 26 26 #import "config.h" 27 #import "LayerTreeHostCA .h"27 #import "LayerTreeHostCAMac.h" 28 28 29 29 #import "WebProcess.h" … … 31 31 #import <WebCore/GraphicsLayer.h> 32 32 #import <WebKitSystemInterface.h> 33 34 using namespace WebCore; 33 35 34 36 @interface CATransaction (Details) … … 38 40 namespace WebKit { 39 41 40 void LayerTreeHostCA::platformInitialize() 42 PassRefPtr<LayerTreeHostCAMac> LayerTreeHostCAMac::create(WebPage* webPage) 43 { 44 RefPtr<LayerTreeHostCAMac> host = adoptRef(new LayerTreeHostCAMac(webPage)); 45 host->initialize(); 46 return host.release(); 47 } 48 49 LayerTreeHostCAMac::LayerTreeHostCAMac(WebPage* webPage) 50 : LayerTreeHostCA(webPage) 51 { 52 } 53 54 LayerTreeHostCAMac::~LayerTreeHostCAMac() 55 { 56 ASSERT(!m_flushPendingLayerChangesRunLoopObserver); 57 ASSERT(!m_remoteLayerClient); 58 } 59 60 void LayerTreeHostCAMac::platformInitialize(LayerTreeContext& layerTreeContext) 41 61 { 42 62 mach_port_t serverPort = WebProcess::shared().compositingRenderServerPort(); 43 63 m_remoteLayerClient = WKCARemoteLayerClientMakeWithServerPort(serverPort); 44 64 45 [ m_rootLayer->platformLayer() setGeometryFlipped:YES];65 [rootLayer()->platformLayer() setGeometryFlipped:YES]; 46 66 47 WKCARemoteLayerClientSetLayer(m_remoteLayerClient.get(), m_rootLayer->platformLayer());67 WKCARemoteLayerClientSetLayer(m_remoteLayerClient.get(), rootLayer()->platformLayer()); 48 68 49 m_layerTreeContext.contextID = WKCARemoteLayerClientGetClientId(m_remoteLayerClient.get());69 layerTreeContext.contextID = WKCARemoteLayerClientGetClientId(m_remoteLayerClient.get()); 50 70 } 51 71 52 void LayerTreeHostCA ::scheduleLayerFlush()72 void LayerTreeHostCAMac::scheduleLayerFlush() 53 73 { 54 74 CFRunLoopRef currentRunLoop = CFRunLoopGetCurrent(); … … 68 88 } 69 89 70 void LayerTreeHostCA ::platformInvalidate()90 void LayerTreeHostCAMac::invalidate() 71 91 { 72 92 if (m_flushPendingLayerChangesRunLoopObserver) { … … 77 97 WKCARemoteLayerClientInvalidate(m_remoteLayerClient.get()); 78 98 m_remoteLayerClient = nullptr; 99 100 LayerTreeHostCA::invalidate(); 79 101 } 80 102 81 void LayerTreeHostCA ::platformSizeDidChange()103 void LayerTreeHostCAMac::sizeDidChange(const IntSize& newSize) 82 104 { 105 LayerTreeHostCA::sizeDidChange(newSize); 83 106 [CATransaction flush]; 84 107 [CATransaction synchronize]; 85 108 } 86 109 87 void LayerTreeHostCA ::platformForceRepaint()110 void LayerTreeHostCAMac::forceRepaint() 88 111 { 112 LayerTreeHostCA::forceRepaint(); 89 113 [CATransaction flush]; 90 114 [CATransaction synchronize]; 91 115 } 92 116 93 void LayerTreeHostCA ::flushPendingLayerChangesRunLoopObserverCallback(CFRunLoopObserverRef, CFRunLoopActivity, void* context)117 void LayerTreeHostCAMac::flushPendingLayerChangesRunLoopObserverCallback(CFRunLoopObserverRef, CFRunLoopActivity, void* context) 94 118 { 95 119 // This gets called outside of the normal event loop so wrap in an autorelease pool 96 120 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 97 static_cast<LayerTreeHostCA *>(context)->performScheduledLayerFlush();121 static_cast<LayerTreeHostCAMac*>(context)->performScheduledLayerFlush(); 98 122 [pool drain]; 99 123 } 100 124 101 void LayerTreeHostCA ::platformDidPerformScheduledLayerFlush()125 void LayerTreeHostCAMac::didPerformScheduledLayerFlush() 102 126 { 103 127 // We successfully flushed the pending layer changes, remove the run loop observer. … … 105 129 CFRunLoopObserverInvalidate(m_flushPendingLayerChangesRunLoopObserver.get()); 106 130 m_flushPendingLayerChangesRunLoopObserver = 0; 131 132 LayerTreeHostCA::didPerformScheduledLayerFlush(); 107 133 } 108 134 -
trunk/Source/WebKit2/WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp
r81912 r82675 25 25 26 26 #include "config.h" 27 #include "LayerTreeHostCA .h"27 #include "LayerTreeHostCAWin.h" 28 28 29 29 #include <WebCore/NotImplemented.h> 30 #include <wtf/RefPtr.h> 30 31 31 32 namespace WebKit { 32 33 33 void LayerTreeHostCA::platformInitialize() 34 PassRefPtr<LayerTreeHostCAWin> LayerTreeHostCAWin::create(WebPage* webPage) 35 { 36 RefPtr<LayerTreeHostCAWin> host = adoptRef(new LayerTreeHostCAWin(webPage)); 37 host->initialize(); 38 return host.release(); 39 } 40 41 LayerTreeHostCAWin::LayerTreeHostCAWin(WebPage* webPage) 42 : LayerTreeHostCA(webPage) 43 { 44 } 45 46 LayerTreeHostCAWin::~LayerTreeHostCAWin() 47 { 48 } 49 50 void LayerTreeHostCAWin::platformInitialize(LayerTreeContext&) 34 51 { 35 52 // FIXME: <http://webkit.org/b/45567> Implement this! … … 37 54 } 38 55 39 void LayerTreeHostCA::scheduleLayerFlush() 40 { 41 // FIXME: <http://webkit.org/b/45567> Implement this! 42 notImplemented(); 43 } 44 45 void LayerTreeHostCA::platformInvalidate() 46 { 47 // FIXME: <http://webkit.org/b/45567> Implement this! 48 notImplemented(); 49 } 50 51 void LayerTreeHostCA::platformSizeDidChange() 52 { 53 // FIXME: <http://webkit.org/b/45567> Implement this! 54 notImplemented(); 55 } 56 57 void LayerTreeHostCA::platformForceRepaint() 58 { 59 // FIXME: <http://webkit.org/b/45567> Implement this! 60 notImplemented(); 61 } 62 63 void LayerTreeHostCA::platformDidPerformScheduledLayerFlush() 56 void LayerTreeHostCAWin::scheduleLayerFlush() 64 57 { 65 58 // FIXME: <http://webkit.org/b/45567> Implement this! -
trunk/Source/WebKit2/WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h
r82673 r82675 24 24 */ 25 25 26 #i nclude "config.h"27 # include "LayerTreeHost.h"26 #ifndef LayerTreeHostCAWin_h 27 #define LayerTreeHostCAWin_h 28 28 29 #if PLATFORM(MAC)30 29 #include "LayerTreeHostCA.h" 31 #endif32 33 #if !PLATFORM(MAC) && !PLATFORM(WIN)34 #error "This class is not ready for use by other ports yet."35 #endif36 37 using namespace WebCore;38 30 39 31 namespace WebKit { 40 32 41 PassRefPtr<LayerTreeHost> LayerTreeHost::create(WebPage* webPage) 42 { 43 #if PLATFORM(MAC) 44 return LayerTreeHostCA::create(webPage); 45 #endif 33 class LayerTreeHostCAWin : public LayerTreeHostCA { 34 public: 35 static PassRefPtr<LayerTreeHostCAWin> create(WebPage*); 36 virtual ~LayerTreeHostCAWin(); 46 37 47 return 0; 48 } 38 private: 39 explicit LayerTreeHostCAWin(WebPage*); 49 40 50 LayerTreeHost::LayerTreeHost(WebPage* webPage) 51 : m_webPage(webPage) 52 { 53 } 41 // LayerTreeHost 42 virtual void scheduleLayerFlush(); 54 43 55 LayerTreeHost::~LayerTreeHost() 56 { 57 } 44 // LayerTreeHostCA 45 virtual void platformInitialize(LayerTreeContext&); 46 }; 58 47 59 48 } // namespace WebKit 49 50 #endif // LayerTreeHostCAWin_h -
trunk/Source/WebKit2/win/WebKit2.vcproj
r82477 r82675 1964 1964 </FileConfiguration> 1965 1965 </File> 1966 <File 1967 RelativePath="..\WebProcess\WebPage\ca\win\LayerTreeHostCAWin.h" 1968 > 1969 </File> 1966 1970 </Filter> 1967 1971 </Filter> -
trunk/Source/WebKit2/win/WebKit2Apple.vsprops
r81912 r82675 7 7 <Tool 8 8 Name="VCCLCompilerTool" 9 AdditionalIncludeDirectories=""$(ProjectDir)..\WebProcess\WebPage\ca" "9 AdditionalIncludeDirectories=""$(ProjectDir)..\WebProcess\WebPage\ca";"$(ProjectDir)..\WebProcess\WebPage\ca\win"" 10 10 /> 11 11 <Tool
Note: See TracChangeset
for help on using the changeset viewer.