| Index: cc/CCDecorationLayerImpl.h
|
| diff --git a/cc/CCDecorationLayerImpl.h b/cc/CCDecorationLayerImpl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5416c9fc166fe8e0d2dd0fc0482641872675610f
|
| --- /dev/null
|
| +++ b/cc/CCDecorationLayerImpl.h
|
| @@ -0,0 +1,48 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CCDecorationLayerImpl_h
|
| +#define CCDecorationLayerImpl_h
|
| +
|
| +#include "CCLayerImpl.h"
|
| +#include <public/WebTransformationMatrix.h>
|
| +
|
| +namespace cc {
|
| +
|
| +class CCDecorationLayerImpl : public CCLayerImpl {
|
| +public:
|
| + static scoped_ptr<CCDecorationLayerImpl> create(int id)
|
| + {
|
| + return make_scoped_ptr(new CCDecorationLayerImpl(id));
|
| + }
|
| + virtual ~CCDecorationLayerImpl();
|
| +
|
| + virtual void willDraw(CCResourceProvider*) OVERRIDE;
|
| + virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) OVERRIDE;
|
| + virtual void didDraw(CCResourceProvider*) OVERRIDE;
|
| + virtual CCResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
|
| + virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
|
| + virtual void didLoseContext() OVERRIDE;
|
| + void setResourceId(unsigned id) { m_resourceId = id; }
|
| + void setDecorationLayout(const IntSize& imageBounds, const IntRect& aperture);
|
| +
|
| +protected:
|
| + explicit CCDecorationLayerImpl(int id);
|
| +
|
| +private:
|
| +
|
| + virtual const char* layerTypeAsString() const OVERRIDE { return "DecorationLayer"; }
|
| +
|
| + // The size of the decoration bitmap in pixels.
|
| + IntSize m_imageBounds;
|
| +
|
| + // The transparent center region that shows the parent layer's contents in image space.
|
| + IntRect m_imageAperture;
|
| +
|
| + CCResourceProvider::ResourceId m_resourceId;
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif // CCDecorationLayerImpl_h
|
|
|