Bug 564991. Part 8: Hoist GetLayerType out of individual layer manager types and make it available for all layers. r=jrmuizel,sr=vlad

This commit is contained in:
Matt Woodrow
2010-07-01 20:01:09 -05:00
parent 5c97e52a5d
commit a349797ef9
24 changed files with 33 additions and 102 deletions

View File

@@ -62,22 +62,6 @@ using namespace mozilla::gl;
int LayerManagerOGLProgram::sCurrentProgramKey = 0;
static void
DumpLayerAndChildren(LayerOGL *l, int advance = 0)
{
for (int i = 0; i < advance; i++)
fprintf(stderr, " ");
fprintf(stderr, "%p: Layer type %d\n", l, l->GetType());
l = l->GetFirstChildOGL();
while (l) {
DumpLayerAndChildren(l, advance+1);
Layer *genl = l->GetLayer()->GetNextSibling();
l = genl ? static_cast<LayerOGL*>(genl->ImplData()) : nsnull;
}
}
/**
* LayerManagerOGL
*/