PlatformCALayerWin.h [plain text]
#ifndef PlatformCALayerWin_h
#define PlatformCALayerWin_h
#include "PlatformCALayer.h"
namespace WebCore {
class PlatformCALayerWin final : public PlatformCALayer {
public:
static PassRefPtr<PlatformCALayer> create(LayerType, PlatformCALayerClient*);
static PassRefPtr<PlatformCALayer> create(PlatformLayer*, PlatformCALayerClient*);
~PlatformCALayerWin();
virtual void setNeedsDisplayInRect(const FloatRect& dirtyRect) override;
virtual void setNeedsDisplay() override;
virtual void copyContentsFromLayer(PlatformCALayer*) override;
virtual PlatformCALayer* superlayer() const override;
virtual void removeFromSuperlayer() override;
virtual void setSublayers(const PlatformCALayerList&) override;
virtual void removeAllSublayers() override;
virtual void appendSublayer(PlatformCALayer&) override;
virtual void insertSublayer(PlatformCALayer&, size_t index) override;
virtual void replaceSublayer(PlatformCALayer& reference, PlatformCALayer&) override;
virtual const PlatformCALayerList* customSublayers() const override { return m_customSublayers.get(); }
virtual void adoptSublayers(PlatformCALayer& source) override;
virtual void addAnimationForKey(const String& key, PlatformCAAnimation&) override;
virtual void removeAnimationForKey(const String& key) override;
virtual PassRefPtr<PlatformCAAnimation> animationForKey(const String& key) override;
virtual void animationStarted(const String& key, CFTimeInterval beginTime) override;
virtual void animationEnded(const String& key) override;
virtual void setMask(PlatformCALayer*) override;
virtual bool isOpaque() const override;
virtual void setOpaque(bool) override;
virtual FloatRect bounds() const override;
virtual void setBounds(const FloatRect&) override;
virtual FloatPoint3D position() const override;
virtual void setPosition(const FloatPoint3D&) override;
virtual FloatPoint3D anchorPoint() const override;
virtual void setAnchorPoint(const FloatPoint3D&) override;
virtual TransformationMatrix transform() const override;
virtual void setTransform(const TransformationMatrix&) override;
virtual TransformationMatrix sublayerTransform() const override;
virtual void setSublayerTransform(const TransformationMatrix&) override;
virtual void setHidden(bool) override;
virtual void setBackingStoreAttached(bool) override;
virtual bool backingStoreAttached() const override;
virtual void setGeometryFlipped(bool) override;
virtual bool isDoubleSided() const override;
virtual void setDoubleSided(bool) override;
virtual bool masksToBounds() const override;
virtual void setMasksToBounds(bool) override;
virtual bool acceleratesDrawing() const override;
virtual void setAcceleratesDrawing(bool) override;
virtual CFTypeRef contents() const override;
virtual void setContents(CFTypeRef) override;
virtual void setContentsRect(const FloatRect&) override;
virtual void setMinificationFilter(FilterType) override;
virtual void setMagnificationFilter(FilterType) override;
virtual Color backgroundColor() const override;
virtual void setBackgroundColor(const Color&) override;
virtual void setBorderWidth(float) override;
virtual void setBorderColor(const Color&) override;
virtual float opacity() const override;
virtual void setOpacity(float) override;
virtual void setFilters(const FilterOperations&) override;
static bool filtersCanBeComposited(const FilterOperations&) { return false; }
virtual void copyFiltersFrom(const PlatformCALayer&) override;
virtual void setName(const String&) override;
virtual void setSpeed(float) override;
virtual void setTimeOffset(CFTimeInterval) override;
virtual float contentsScale() const override;
virtual void setContentsScale(float) override;
virtual float cornerRadius() const override;
virtual void setCornerRadius(float) override;
virtual FloatRoundedRect shapeRoundedRect() const override;
virtual void setShapeRoundedRect(const FloatRoundedRect&) override;
virtual Path shapePath() const override;
virtual void setShapePath(const Path&) override;
virtual WindRule shapeWindRule() const override;
virtual void setShapeWindRule(WindRule) override;
virtual void setEdgeAntialiasingMask(unsigned) override;
virtual GraphicsLayer::CustomAppearance customAppearance() const override { return m_customAppearance; }
virtual void updateCustomAppearance(GraphicsLayer::CustomAppearance customAppearance) override { m_customAppearance = customAppearance; }
virtual TiledBacking* tiledBacking() override;
virtual PlatformCALayer* rootLayer() const override;
virtual void setNeedsLayout() override;
virtual void setNeedsCommit() override;
virtual void drawTextAtPoint(CGContextRef, CGFloat x, CGFloat y, const char* text, size_t length) const override;
#ifndef NDEBUG
virtual void printTree() const override;
#endif
virtual PassRefPtr<PlatformCALayer> clone(PlatformCALayerClient* owner) const override;
virtual PassRefPtr<PlatformCALayer> createCompatibleLayer(PlatformCALayer::LayerType, PlatformCALayerClient*) const override;
private:
PlatformCALayerWin(LayerType, PlatformLayer*, PlatformCALayerClient* owner);
HashMap<String, RefPtr<PlatformCAAnimation>> m_animations;
std::unique_ptr<PlatformCALayerList> m_customSublayers;
GraphicsLayer::CustomAppearance m_customAppearance;
};
}
#endif // PlatformCALayerWin_h