Exemple #1
0
 virtual void Run(RenderThread& aRenderThread, WindowId aWindowId) override
 {
   auto renderer = aRenderThread.GetRenderer(aWindowId);
   if (renderer) {
     renderer->SetProfilerEnabled(mEnabled);
   }
 }
Exemple #2
0
 virtual void Run(RenderThread& aRenderThread, WindowId aWindowId) override
 {
     aRenderThread.UpdateAndRender(aWindowId);
     wr_renderer_readback(aRenderThread.GetRenderer(aWindowId)->GetWrRenderer(),
                          mSize.width, mSize.height, mBuffer, mBufferSize);
     layers::AutoCompleteTask complete(mTask);
 }