~ubuntu-branches/ubuntu/utopic/mir/utopic-proposed

« back to all changes in this revision

Viewing changes to src/platform/graphics/mesa/display.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-03-10 19:28:46 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: package-import@ubuntu.com-20140310192846-rq9qm3ec26yrelo2
Tags: upstream-0.1.6+14.04.20140310
ImportĀ upstreamĀ versionĀ 0.1.6+14.04.20140310

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        auto const& kms_conf = dynamic_cast<RealKMSDisplayConfiguration const&>(conf);
135
135
        std::vector<std::unique_ptr<DisplayBuffer>> display_buffers_new;
136
136
 
 
137
        /*
 
138
         * Notice for a little while here we will have duplicate
 
139
         * DisplayBuffers attached to each output, and the display_buffers_new
 
140
         * will take over the outputs before the old display_buffers are
 
141
         * destroyed. So to avoid page flipping confusion in-between, make
 
142
         * sure we wait for all pending page flips to finish before the
 
143
         * display_buffers_new are created and take control of the outputs.
 
144
         */
 
145
        for (auto& db : display_buffers)
 
146
            db->wait_for_page_flip();
 
147
 
137
148
        /* Reset the state of all outputs */
138
149
        kms_conf.for_each_output([&](DisplayConfigurationOutput const& conf_output)
139
150
        {