Bug 1063692. layers: Document the Prepare() phase better.

--HG--
extra : rebase_source : 5378145a501c45c8091cf316a72b72c42c598447
This commit is contained in:
Jeff Muizelaar 2014-09-05 14:44:19 -04:00
Родитель 2eaef1e702
Коммит a1d21210ab
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -362,9 +362,10 @@ public:
virtual Layer* GetLayer() = 0;
/**
* Perform a first pass over the layer tree to prepare intermediate surfaces.
* This allows us on to avoid framebuffer switches in the middle of our render
* which is inefficient. This must be called before RenderLayer.
* Perform a first pass over the layer tree to render all of the intermediate
* surfaces that we can. This allows us to avoid framebuffer switches in the
* middle of our render which is inefficient especially on mobile GPUs. This
* must be called before RenderLayer.
*/
virtual void Prepare(const RenderTargetIntRect& aClipRect) {}