Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Unified Diff: ppapi/tests/test_graphics_3d.h

Issue 7818004: Added a simple smoke test for Graphics3D. It attempts to exercise the entire graphics-3d pipeline... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/tests/test_graphics_3d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,15 @@
#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,8 +23,15 @@
virtual void RunTest();
private:
- // Used by the tests that access the C API directly.
- const PPB_Graphics3D_Dev* graphics_3d_;
+ // 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]);
+
+ // OpenGL ES2 interface.
const PPB_OpenGLES2_Dev* opengl_es2_;
};
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/tests/test_graphics_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698