]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blobdiff - kmscube/cube-gbm.cpp
kms++: organize into subdirs
[android/external-libkmsxx.git] / kmscube / cube-gbm.cpp
index d015c55f64de16abd2d9b520c5263e042bdf1c5b..93ebece90a38cf34b28b8a6097a0a69dc7c354ca 100644 (file)
@@ -9,8 +9,8 @@
 #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"
 
@@ -89,7 +89,7 @@ class GbmEglSurface
 {
 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));
@@ -140,7 +140,7 @@ public:
                return fb;
        }
 
-       struct Framebuffer* lock_next()
+       Framebuffer* lock_next()
        {
                bo_prev = bo_next;
                bo_next = gsurface->lock_front_buffer();
@@ -161,7 +161,6 @@ public:
 
 private:
        Card& card;
-       GbmDevice& gdev;
        const EglState& egl;
 
        unique_ptr<GbmSurface> gsurface;
@@ -201,9 +200,9 @@ public:
 
                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();
@@ -272,9 +271,9 @@ private:
                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();