canvas->clipRect(r);
}
- if (!m_isRootLayer)
- return;
-
if (!prepareContext())
return;
writeIntVal(file, indentLevel + 1, "fixedWidth", m_fixedWidth);
writeIntVal(file, indentLevel + 1, "fixedHeight", m_fixedHeight);
+ if (m_recordingPicture) {
+ writeIntVal(file, indentLevel + 1, "picture width", m_recordingPicture->width());
+ writeIntVal(file, indentLevel + 1, "picture height", m_recordingPicture->height());
+ }
+
if (countChildren()) {
writeln(file, indentLevel + 1, "children = [");
for (int i = 0; i < countChildren(); i++) {
return m_viewImpl->m_moveGeneration;
}
-const LayerAndroid* rootLayer() const
+LayerAndroid* rootLayer() const
{
return m_rootLayer;
}
// this will playback the picture into the canvas, which will
// spew its contents to the dumper
view->getWebViewCore()->drawContent(&canvas, 0);
+ if (true) {
+ LayerAndroid* rootLayer = view->rootLayer();
+ if (rootLayer)
+ rootLayer->draw(&canvas);
+ }
// we're done with the file now
fwrite("\n", 1, 1, file);
fclose(file);