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

« back to all changes in this revision

Viewing changes to tools/buffer_render_target.h

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
class BufferRenderTarget
36
36
{
37
37
public:
38
 
    BufferRenderTarget(const mir::compositor::Buffer& buffer,
39
 
                       EGLClientBuffer client_buffer);
 
38
    BufferRenderTarget(mir::compositor::Buffer& buffer);
40
39
 
41
40
    void make_current();
42
41
 
45
44
    {
46
45
    public:
47
46
        Resources()
48
 
            : egl_image{EGL_NO_IMAGE_KHR}, fbo{0},
49
 
              color_rbo{0}, depth_rbo{0}
 
47
            : fbo{0}, color_tex{0}, depth_rbo{0}
50
48
        {
51
49
        }
52
50
        ~Resources();
53
 
        void setup(const mir::compositor::Buffer& buffer,
54
 
                   EGLClientBuffer client_buffer);
 
51
        void setup(mir::compositor::Buffer& buffer);
55
52
 
56
 
        EGLImageKHR egl_image;
57
53
        GLuint fbo;
58
 
        GLuint color_rbo;
 
54
        GLuint color_tex;
59
55
        GLuint depth_rbo;
60
56
    };
61
57
 
62
58
    Resources resources;
63
 
    const mir::compositor::Buffer& buffer;
 
59
    mir::compositor::Buffer& buffer;
64
60
};
65
61
 
66
62
}