PlatformCALayerClient.h [plain text]
#ifndef PlatformCALayerClient_h
#define PlatformCALayerClient_h
#if USE(ACCELERATED_COMPOSITING)
#include "GraphicsContext.h"
#include "GraphicsLayer.h"
#include "PlatformCAAnimation.h"
#include "PlatformString.h"
#include <wtf/HashMap.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/RetainPtr.h>
#include <wtf/Vector.h>
#include <wtf/text/StringHash.h>
namespace WebCore {
class PlatformCALayer;
class PlatformCALayerClient {
public:
virtual void platformCALayerLayoutSublayersOfLayer(PlatformCALayer*) = 0;
virtual bool platformCALayerRespondsToLayoutChanges() const = 0;
virtual void platformCALayerAnimationStarted(CFTimeInterval beginTime) = 0;
virtual GraphicsLayer::CompositingCoordinatesOrientation platformCALayerContentsOrientation() const = 0;
virtual void platformCALayerPaintContents(GraphicsContext&, const IntRect& inClip) = 0;
virtual bool platformCALayerShowDebugBorders() const = 0;
virtual bool platformCALayerShowRepaintCounter() const = 0;
virtual int platformCALayerIncrementRepaintCount() = 0;
virtual bool platformCALayerContentsOpaque() const = 0;
virtual bool platformCALayerDrawsContent() const = 0;
virtual void platformCALayerLayerDidDisplay(PlatformLayer*) = 0;
protected:
virtual ~PlatformCALayerClient() {}
};
}
#endif // USE(ACCELERATED_COMPOSITING)
#endif // PlatformCALayerClient_h