| Index: ppapi/tests/test_graphics_3d.h
|
| ===================================================================
|
| --- ppapi/tests/test_graphics_3d.h (revision 99012)
|
| +++ ppapi/tests/test_graphics_3d.h (working copy)
|
| @@ -5,11 +5,16 @@
|
| #ifndef PAPPI_TESTS_TEST_GRAPHICS_3D_H_
|
| #define PAPPI_TESTS_TEST_GRAPHICS_3D_H_
|
|
|
| +#include <string>
|
| #include "ppapi/tests/test_case.h"
|
|
|
| struct PPB_Graphics3D_Dev;
|
| struct PPB_OpenGLES2_Dev;
|
|
|
| +namespace pp {
|
| +class Graphics3D_Dev;
|
| +} // namespace pp
|
| +
|
| class TestGraphics3D : public TestCase {
|
| public:
|
| TestGraphics3D(TestingInstance* instance) : TestCase(instance) {}
|
| @@ -19,6 +24,14 @@
|
| virtual void RunTest();
|
|
|
| private:
|
| + // Various tests.
|
| + std::string TestFrame();
|
| +
|
| + // Utils used by various tests.
|
| + int32_t SwapBuffersSync(pp::Graphics3D_Dev* context);
|
| + std::string TestPixel(pp::Graphics3D_Dev* context,
|
| + int x, int y, const uint8_t expected_color[4]);
|
| +
|
| // Used by the tests that access the C API directly.
|
| const PPB_Graphics3D_Dev* graphics_3d_;
|
| const PPB_OpenGLES2_Dev* opengl_es2_;
|
|
|