Lines Matching refs:layer
16 #include "ui/compositor/layer.h"
26 void PrintLayerHierarchyImp(const Layer* layer,
32 layer->transform().TransformPointReverse(&mouse_location);
33 bool mouse_inside_layer_bounds = layer->bounds().Contains(mouse_location);
34 mouse_location.Offset(-layer->bounds().x(), -layer->bounds().y());
42 *out << UTF8ToWide(layer->name()) << L' ' << layer;
44 switch (layer->type()) {
50 if (layer->fills_bounds_opaquely())
58 if (!layer->visible())
63 *out << L"bounds: " << layer->bounds().x() << L',' << layer->bounds().y();
64 *out << L' ' << layer->bounds().width() << L'x' << layer->bounds().height();
66 if (layer->opacity() != 1.0f) {
68 *out << L"opacity: " << std::setprecision(2) << layer->opacity();
72 if (!layer->transform().IsIdentity() &&
73 gfx::DecomposeTransform(&decomp, layer->transform())) {
89 for (size_t i = 0, count = layer->children().size(); i < count; ++i) {
91 layer->children()[i], indent + 3, mouse_location, out);
97 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) {
100 PrintLayerHierarchyImp(layer, 0, mouse_location, &out);