| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| index 5c8f2329b9f16f6332811ff126ce444d048ada06..ac8b0cc4debb72dd90437aacaa07e09c48544cd5 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -251,7 +251,7 @@ CanvasRenderingContext* HTMLCanvasElement::getCanvasRenderingContext(const Strin
|
|
|
| bool HTMLCanvasElement::shouldBeDirectComposited() const
|
| {
|
| - return (m_context && m_context->isAccelerated()) || (hasImageBuffer() && buffer()->isExpensiveToPaint());
|
| + return (m_context && m_context->isAccelerated()) || (hasImageBuffer() && buffer()->isExpensiveToPaint()) || (!!m_surfaceLayerBridge);
|
| }
|
|
|
| bool HTMLCanvasElement::isPaintable() const
|
| @@ -1132,4 +1132,9 @@ String HTMLCanvasElement::getIdFromControl(const Element* element)
|
| return String();
|
| }
|
|
|
| +void HTMLCanvasElement::createSurfaceLayerBridge()
|
| +{
|
| + m_surfaceLayerBridge = adoptPtr(new CanvasSurfaceLayerBridge());
|
| +}
|
| +
|
| } // namespace blink
|
|
|