~nick-dedekind/qtmir/multi-monitor

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/miropenglcontext.cpp

  • Committer: Nick Dedekind
  • Date: 2017-02-06 11:45:16 UTC
  • Revision ID: nick.dedekind@canonical.com-20170206114516-fesjg2dr2en3537b
display configuration observer. renames

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include "offscreensurface.h"
20
20
#include "mirglconfig.h"
21
 
#include "screenwindow.h"
 
21
#include "screenplatformwindow.h"
22
22
 
23
23
#include <QDebug>
24
24
 
118
118
        // NOOP
119
119
    } else {
120
120
        // ultimately calls Mir's DisplayBuffer::post_update()
121
 
        ScreenWindow *screenWindow = static_cast<ScreenWindow*>(surface);
 
121
        ScreenPlatformWindow *screenWindow = static_cast<ScreenPlatformWindow*>(surface);
122
122
        screenWindow->swapBuffers(); //blocks for vsync
123
123
    }
124
124
}
152
152
    }
153
153
 
154
154
    // ultimately calls Mir's DisplayBuffer::make_current()
155
 
    ScreenWindow *screenWindow = static_cast<ScreenWindow*>(surface);
 
155
    ScreenPlatformWindow *screenWindow = static_cast<ScreenPlatformWindow*>(surface);
156
156
    if (Q_LIKELY(screenWindow)) {
157
157
        m_currentWindow = screenWindow;
158
158
        screenWindow->makeCurrent();