| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index 7ec6b2eac83aa8f3e36774d88a8034e0f475149b..ddc526816790c604127f6c123ddd86df3b36e04d 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -1389,15 +1389,12 @@ void WebGLRenderingContextBase::markContextChanged(
|
|
|
| LayoutBox* layoutBox = canvas()->layoutBox();
|
| if (layoutBox && layoutBox->hasAcceleratedCompositing()) {
|
| - m_markedCanvasDirty = true;
|
| - canvas()->clearCopiedImage();
|
| layoutBox->contentChanged(changeType);
|
| - } else {
|
| - if (!m_markedCanvasDirty) {
|
| - m_markedCanvasDirty = true;
|
| - canvas()->didDraw(
|
| - FloatRect(FloatPoint(0, 0), FloatSize(clampedCanvasSize())));
|
| - }
|
| + }
|
| + if (!m_markedCanvasDirty) {
|
| + m_markedCanvasDirty = true;
|
| + IntSize canvasSize = clampedCanvasSize();
|
| + didDraw(SkIRect::MakeXYWH(0, 0, canvasSize.width(), canvasSize.height()));
|
| }
|
| }
|
|
|
|
|