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

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
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_;

Powered by Google App Engine
This is Rietveld 408576698