• andersca@apple.com's avatar
    2011-01-31 Anders Carlsson <andersca@apple.com> · cc230861
    andersca@apple.com authored
            Reviewed by Adam Roben.
    
            Make LayerTreeHost an abstract base class and make LayerTreeHostMac inherit from it
            https://bugs.webkit.org/show_bug.cgi?id=53432
    
            * WebKit2.xcodeproj/project.pbxproj:
            Add LayerTreeHostMac.h.
    
            * WebProcess/WebPage/DrawingAreaImpl.cpp:
            * WebProcess/WebPage/DrawingAreaImpl.h:
            Make m_layerTreeHost an OwnPtr and initialize/destroy it appropriately.
    
            * WebProcess/WebPage/LayerTreeHost.cpp:
            (WebKit::LayerTreeHost::create):
            On Mac, create a LayerTreeHostMac instance.
    
            (WebKit::LayerTreeHost::~LayerTreeHost):
            No need to call platformInvalidate anymore.
    
            * WebProcess/WebPage/LayerTreeHost.h:
            * WebProcess/WebPage/mac/LayerTreeHostMac.h: Added.
            * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
            (WebKit::LayerTreeHostMac::~LayerTreeHostMac):
            Invalidate the run loop observer here instead of in platformInvalidate.
    
            (WebKit::LayerTreeHostMac::scheduleLayerFlush):
            (WebKit::LayerTreeHostMac::flushPendingLayerChangesRunLoopObserverCallback):
            These are now members of LayerTreeHostMac.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cc230861
LayerTreeHost.h 1.98 KB