diff --git a/kmscube/cube-gbm.cpp b/kmscube/cube-gbm.cpp
index d015c55f64de16abd2d9b520c5263e042bdf1c5b..93ebece90a38cf34b28b8a6097a0a69dc7c354ca 100644 (file)
--- a/kmscube/cube-gbm.cpp
+++ b/kmscube/cube-gbm.cpp
#include <xf86drmMode.h>
#include <gbm.h>
-#include <kms++.h>
-#include "test.h"
+#include <kms++/kms++.h>
+#include <kms++util.h>
#include "cube-egl.h"
#include "cube-gles2.h"
{
public:
GbmEglSurface(Card& card, GbmDevice& gdev, const EglState& egl, int width, int height)
- : card(card), gdev(gdev), egl(egl), m_width(width), m_height(height),
+ : card(card), egl(egl), m_width(width), m_height(height),
bo_prev(0), bo_next(0)
{
gsurface = unique_ptr<GbmSurface>(new GbmSurface(gdev, width, height));
return fb;
}
- struct Framebuffer* lock_next()
+ Framebuffer* lock_next()
{
bo_prev = bo_next;
bo_next = gsurface->lock_front_buffer();
private:
Card& card;
- GbmDevice& gdev;
const EglState& egl;
unique_ptr<GbmSurface> gsurface;
m_surface1->make_current();
m_surface1->swap_buffers();
- struct Framebuffer* fb = m_surface1->lock_next();
+ Framebuffer* fb = m_surface1->lock_next();
- struct Framebuffer* planefb = 0;
+ Framebuffer* planefb = 0;
if (m_plane) {
m_surface2->make_current();
m_surface1->make_current();
m_scene1->draw(m_frame_num * m_rotation_mult);
m_surface1->swap_buffers();
- struct Framebuffer* fb = m_surface1->lock_next();
+ Framebuffer* fb = m_surface1->lock_next();
- struct Framebuffer* planefb = 0;
+ Framebuffer* planefb = 0;
if (m_plane) {
m_surface2->make_current();