| Index: cc/LayerChromium.cpp
|
| diff --git a/cc/LayerChromium.cpp b/cc/LayerChromium.cpp
|
| index 59a63eff8e0db77d6557992b2e047f6dc01036ba..b053403fb81b3efd3af8aee6542ba54d102981f8 100644
|
| --- a/cc/LayerChromium.cpp
|
| +++ b/cc/LayerChromium.cpp
|
| @@ -262,6 +262,11 @@ void LayerChromium::setBackgroundColor(SkColor backgroundColor)
|
| setNeedsCommit();
|
| }
|
|
|
| +IntSize LayerChromium::contentBounds() const
|
| +{
|
| + return bounds();
|
| +}
|
| +
|
| void LayerChromium::setMasksToBounds(bool masksToBounds)
|
| {
|
| if (m_masksToBounds == masksToBounds)
|
| @@ -316,6 +321,11 @@ void LayerChromium::setBackgroundFilters(const WebKit::WebFilterOperations& back
|
| CCLayerTreeHost::setNeedsFilterContext(true);
|
| }
|
|
|
| +bool LayerChromium::needsDisplay() const
|
| +{
|
| + return m_needsDisplay;
|
| +}
|
| +
|
| void LayerChromium::setOpacity(float opacity)
|
| {
|
| if (m_opacity == opacity)
|
| @@ -568,6 +578,21 @@ PassOwnPtr<CCLayerImpl> LayerChromium::createCCLayerImpl()
|
| return CCLayerImpl::create(m_layerId);
|
| }
|
|
|
| +bool LayerChromium::drawsContent() const
|
| +{
|
| + return m_isDrawable;
|
| +}
|
| +
|
| +bool LayerChromium::needMoreUpdates()
|
| +{
|
| + return false;
|
| +}
|
| +
|
| +bool LayerChromium::needsContentsScale() const
|
| +{
|
| + return false;
|
| +}
|
| +
|
| void LayerChromium::setDebugBorderColor(SkColor color)
|
| {
|
| m_debugBorderColor = color;
|
| @@ -620,6 +645,16 @@ bool LayerChromium::descendantDrawsContent()
|
| return false;
|
| }
|
|
|
| +int LayerChromium::id() const
|
| +{
|
| + return m_layerId;
|
| +}
|
| +
|
| +float LayerChromium::opacity() const
|
| +{
|
| + return m_opacity;
|
| +}
|
| +
|
| void LayerChromium::setOpacityFromAnimation(float opacity)
|
| {
|
| // This is called due to an ongoing accelerated animation. Since this animation is
|
| @@ -628,6 +663,11 @@ void LayerChromium::setOpacityFromAnimation(float opacity)
|
| m_opacity = opacity;
|
| }
|
|
|
| +const WebKit::WebTransformationMatrix& LayerChromium::transform() const
|
| +{
|
| + return m_transform;
|
| +}
|
| +
|
| void LayerChromium::setTransformFromAnimation(const WebTransformationMatrix& transform)
|
| {
|
| // This is called due to an ongoing accelerated animation. Since this animation is
|
| @@ -721,6 +761,11 @@ Region LayerChromium::visibleContentOpaqueRegion() const
|
| return Region();
|
| }
|
|
|
| +ScrollbarLayerChromium* LayerChromium::toScrollbarLayerChromium()
|
| +{
|
| + return 0;
|
| +}
|
| +
|
| void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChromium> >::iterator, void*)
|
| {
|
| // Currently we don't use z-order to decide what to paint, so there's no need to actually sort LayerChromiums.
|
|
|