2010-07-01 Simon Fraser <simon.fraser@apple.com>
[WebKit-https.git] / WebKit2 / UIProcess / DrawingAreaProxy.h
index f475a67..62b1ba0 100644 (file)
@@ -50,7 +50,10 @@ typedef HDC PlatformDrawingContext;
 class DrawingAreaProxy {
 public:
     enum Type {
-        ChunkedUpdateDrawingAreaType
+        ChunkedUpdateDrawingAreaType,
+#if USE(ACCELERATED_COMPOSITING)
+        LayerBackedDrawingAreaType,
+#endif
     };
 
     virtual ~DrawingAreaProxy();
@@ -68,6 +71,11 @@ public:
         encoder.encode(static_cast<uint32_t>(m_type));
     }
 
+#if USE(ACCELERATED_COMPOSITING)
+    virtual void attachCompositingContext(uint32_t contextID) = 0;
+    virtual void detachCompositingContext() = 0;
+#endif
+
 protected:
     DrawingAreaProxy(Type);