Don't abort just because libosso failed to initialize
[glmemperf] / pixmapblittest.h
1 /**
2  * OpenGL ES 2.0 memory performance estimator
3  * Copyright (C) 2009 Nokia
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * \author Sami Kyöstilä <sami.kyostila@nokia.com>
20  *
21  * X11 pixmap surface test using shared memory and eglBindTexImage
22  */
23 #ifndef PIXMAPBLITTEST_H
24 #define PIXMAPBLITTEST_H
25
26 #include "blittest.h"
27 #include "util.h"
28 #include <EGL/egl.h>
29
30 class PixmapBlitTest: public BlitTest
31 {
32     Pixmap m_pixmap;
33     EGLSurface m_surface;
34     EGLContext m_context;
35     EGLConfig m_config;
36     int m_depth;
37 public:
38     PixmapBlitTest(int width, int height, EGLConfig config,
39                    bool rotate = false, float texW = 1.0f, float texH = 1.0f);
40
41     void prepare();
42     std::string name() const;
43     void teardown();
44 protected:
45     bool fillPixmap();
46 };
47
48 #endif // PIXMAPBLITTEST_H