| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_TOOLS_NPAPI_PEPPER_TEST_PLUGIN_PEPPER_3D_TEST_H | 5 #ifndef WEBKIT_TOOLS_NPAPI_PEPPER_TEST_PLUGIN_PEPPER_3D_TEST_H |
| 6 #define WEBKIT_TOOLS_NPAPI_PEPPER_TEST_PLUGIN_PEPPER_3D_TEST_H | 6 #define WEBKIT_TOOLS_NPAPI_PEPPER_TEST_PLUGIN_PEPPER_3D_TEST_H |
| 7 | 7 |
| 8 #include "gpu/pgl/pgl.h" | 8 #include "gpu/pgl/pgl.h" |
| 9 #include "third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h" | 9 #include "third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h" |
| 10 #include "webkit/glue/plugins/test/plugin_test.h" | 10 #include "webkit/glue/plugins/test/plugin_test.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void SwapBuffers(); | 37 void SwapBuffers(); |
| 38 | 38 |
| 39 void InitGL(); | 39 void InitGL(); |
| 40 void ReleaseGL(); | 40 void ReleaseGL(); |
| 41 void DrawGL(); | 41 void DrawGL(); |
| 42 void TestGL(); | 42 void TestGL(); |
| 43 void TestPixel(int x, int y, const GLubyte expected_color[3]); | 43 void TestPixel(int x, int y, const GLubyte expected_color[3]); |
| 44 | 44 |
| 45 NPExtensions* pepper_extensions_; | 45 NPExtensions* pepper_extensions_; |
| 46 NPDevice* device_3d_; | 46 NPDevice* device_3d_; |
| 47 #if defined(ENABLE_NEW_NPDEVICE_API) |
| 48 NPDeviceContext3D* context_3d_; |
| 49 #else |
| 47 NPDeviceContext3D context_3d_; | 50 NPDeviceContext3D context_3d_; |
| 51 #endif |
| 48 PGLContext pgl_context_; | 52 PGLContext pgl_context_; |
| 49 | 53 |
| 50 ESContext es_context_; | 54 ESContext es_context_; |
| 51 STUserData es_data_; | 55 STUserData es_data_; |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 } // namespace NPAPIClient | 58 } // namespace NPAPIClient |
| 55 | 59 |
| 56 #endif // WEBKIT_TOOLS_NPAPI_PEPPER_TEST_PLUGIN_PEPPER_3D_TEST_H | 60 #endif // WEBKIT_TOOLS_NPAPI_PEPPER_TEST_PLUGIN_PEPPER_3D_TEST_H |
| OLD | NEW |