#include "Extensions3DChromium.h"
#include "GraphicsContext3D.h"
+#include "cc/CCLayerTreeHost.h"
#if USE(SKIA)
#include "GrContext.h"
&& (m_context->getExtensions()->getGraphicsResetStatusARB() == GraphicsContext3D::NO_ERROR));
}
-void Canvas2DLayerChromium::updateCompositorResources(GraphicsContext3D*, TextureAllocator*)
+void Canvas2DLayerChromium::updateCompositorResources(GraphicsContext3D*, CCTextureUpdater&)
{
if (m_dirtyRect.isEmpty() || !drawsContent())
return;
#endif
m_context->flush();
}
+
+ m_updateRect = FloatRect(FloatPoint(), bounds());
resetNeedsDisplay();
}
+void Canvas2DLayerChromium::contentChanged()
+{
+ if (layerTreeHost())
+ layerTreeHost()->startRateLimiter(m_context);
+}
+
}
#endif // USE(ACCELERATED_COMPOSITING)