Confirmed users
138
edits
| Line 608: | Line 608: | ||
It is worth reading the inline code documentation in the following files: | It is worth reading the inline code documentation in the following files: | ||
* gfx/layers/Compositor.h | * [http://mxr.mozilla.org/mozilla-central/source/gfx/layers/Compositor.h gfx/layers/Compositor.h] | ||
* gfx/layers/ShadowLayers.h | * [http://mxr.mozilla.org/mozilla-central/source/gfx/layers/ShadowLayers.h gfx/layers/ShadowLayers.h] | ||
* gfx/layers/Layers.h | * [http://mxr.mozilla.org/mozilla-central/source/gfx/layers/Layers.h gfx/layers/Layers.h] | ||
* gfx/layers/host/TextureHost.h | * [http://mxr.mozilla.org/mozilla-central/source/gfx/layers/host/TextureHost.h gfx/layers/host/TextureHost.h] | ||
* gfx/layers/client/CompositableClient.h | * [http://mxr.mozilla.org/mozilla-central/source/gfx/layers/client/CompositableClient.h gfx/layers/client/CompositableClient.h] | ||
To visualize how a web page is layered, turn on the pref "layers.draw-borders" in about:config. When this pref is on, the borders of layers and tiles are displayed on top of the content. This only works when using the new Compositor API, that is when off-main-thread compositing is activated. OMTC is activated by default on all mobile platforms, and will progressively get activated on desktop platforms (not yet, though). On platforms where OMTC is not used, this pref has no effect. | |||
Blog posts with information on Layers that should be integrated here: | Blog posts with information on Layers that should be integrated here: | ||