~raof/mir/prober-drm-device-probe

« back to all changes in this revision

Viewing changes to tests/mir-test-framework/testing_server_options.cpp

  • Committer: Tarmac
  • Author(s): Kevin DuBois, Alan Griffiths
  • Date: 2012-12-21 17:22:03 UTC
  • mfrom: (308.2.43 hold-resource-over-draw)
  • Revision ID: tarmac-20121221172203-0ivamoj1ww8pd2rk
compositor: hold graphic buffer resources from the time that the GL commands are issued until the time that the driver is done using them. Fixes a rendering glitch that pops up especially during triple buffer or full screen windows on android drivers.

Approved by PS Jenkins bot, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
class StubRenderer : public mg::Renderer
88
88
{
89
89
public:
90
 
    virtual void render(mg::Renderable& r)
 
90
    virtual void render(std::function<void(std::shared_ptr<void> const&)>, mg::Renderable& r)
91
91
    {
92
92
        // Need to acquire the texture to cycle buffers
93
93
        r.texture();