Commit c12c7687 authored by davve's avatar davve Committed by Commit bot

Avoid calling imageForCurrentFrame needlessly on SVGImageForContainer

Propagate SVGImage::isTextureBacked() through SVGImageForContainer to
make https://codereview.chromium.org/1438663002 effective in more
cases.

BUG=552406

Review URL: https://codereview.chromium.org/1635123002

Cr-Commit-Position: refs/heads/master@{#371535}
parent 56dc8e21
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
namespace blink { namespace blink {
bool SVGImageForContainer::isTextureBacked()
{
return m_image->isTextureBacked();
}
IntSize SVGImageForContainer::size() const IntSize SVGImageForContainer::size() const
{ {
FloatSize scaledContainerSize(m_containerSize); FloatSize scaledContainerSize(m_containerSize);
......
...@@ -44,6 +44,7 @@ public: ...@@ -44,6 +44,7 @@ public:
return adoptRef(new SVGImageForContainer(image, containerSizeWithoutZoom, zoom, url)); return adoptRef(new SVGImageForContainer(image, containerSizeWithoutZoom, zoom, url));
} }
bool isTextureBacked() override;
IntSize size() const override; IntSize size() const override;
bool usesContainerSize() const override { return m_image->usesContainerSize(); } bool usesContainerSize() const override { return m_image->usesContainerSize(); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment