Simplify WKCACFLayerRenderer's API
[WebKit.git] / Source / WebCore / platform / graphics / win / WKCACFLayerRenderer.h
index 2da6ac5aa8a4de0e72c153f18f90c59462a9560c..02cdbdb9c5fb04594d52795f52c7389967867a7f 100644 (file)
@@ -54,7 +54,6 @@ class WKCACFLayerRendererClient {
 public:
     virtual ~WKCACFLayerRendererClient() { }
     virtual bool shouldRender() const = 0;
 public:
     virtual ~WKCACFLayerRendererClient() { }
     virtual bool shouldRender() const = 0;
-    virtual void animationsStarted(CFTimeInterval) { }
     virtual void syncCompositingState() { }
 };
 
     virtual void syncCompositingState() { }
 };
 
@@ -72,13 +71,9 @@ public:
 
     void setRootChildLayer(PlatformCALayer*);
     void layerTreeDidChange();
 
     void setRootChildLayer(PlatformCALayer*);
     void layerTreeDidChange();
-    void setNeedsDisplay(bool sync = false);
-    void setHostWindow(HWND window) { m_hostWindow = window; }
-    bool createRenderer();
-    void destroyRenderer();
+    void setHostWindow(HWND);
     void paint();
     void resize();
     void paint();
     void resize();
-    void renderSoon();
     void syncCompositingStateSoon();
 
 protected:
     void syncCompositingStateSoon();
 
 protected:
@@ -88,6 +83,9 @@ protected:
 private:
     WKCACFLayerRenderer(WKCACFLayerRendererClient*);
 
 private:
     WKCACFLayerRenderer(WKCACFLayerRendererClient*);
 
+    bool createRenderer();
+    void destroyRenderer();
+    void renderSoon();
     void renderTimerFired(Timer<WKCACFLayerRenderer>*);
 
     CGRect bounds() const;
     void renderTimerFired(Timer<WKCACFLayerRenderer>*);
 
     CGRect bounds() const;