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

Unified Diff: ppapi/tests/test_graphics_3d.cc

Issue 7782020: Revert 99855 - Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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/tests/test_graphics_3d.h ('k') | ppapi/thunk/ppb_graphics_3d_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_graphics_3d.cc
===================================================================
--- ppapi/tests/test_graphics_3d.cc (revision 99860)
+++ ppapi/tests/test_graphics_3d.cc (working copy)
@@ -6,9 +6,9 @@
#include <GLES2/gl2.h>
+#include "ppapi/c/dev/ppb_opengles_dev.h"
#include "ppapi/c/dev/ppb_testing_dev.h"
-#include "ppapi/c/ppb_opengles.h"
-#include "ppapi/cpp/graphics_3d.h"
+#include "ppapi/cpp/dev/graphics_3d_dev.h"
#include "ppapi/cpp/module.h"
#include "ppapi/tests/test_utils.h"
#include "ppapi/tests/testing_instance.h"
@@ -16,8 +16,8 @@
REGISTER_TEST_CASE(Graphics3D);
bool TestGraphics3D::Init() {
- opengl_es2_ = reinterpret_cast<const PPB_OpenGLES2*>(
- pp::Module::Get()->GetBrowserInterface(PPB_OPENGLES2_INTERFACE));
+ opengl_es2_ = reinterpret_cast<const PPB_OpenGLES2_Dev*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_OPENGLES2_DEV_INTERFACE));
return opengl_es2_ && InitTestingInterface();
}
@@ -33,7 +33,7 @@
PP_GRAPHICS3DATTRIB_HEIGHT, height,
PP_GRAPHICS3DATTRIB_NONE
};
- pp::Graphics3D context(*instance_, pp::Graphics3D(), attribs);
+ pp::Graphics3D_Dev context(*instance_, pp::Graphics3D_Dev(), attribs);
ASSERT_FALSE(context.is_null());
// Clear color buffer to opaque red.
@@ -50,7 +50,7 @@
PASS();
}
-int32_t TestGraphics3D::SwapBuffersSync(pp::Graphics3D* context) {
+int32_t TestGraphics3D::SwapBuffersSync(pp::Graphics3D_Dev* context) {
TestCompletionCallback callback(instance_->pp_instance(), true);
int32_t rv = context->SwapBuffers(callback);
if (rv != PP_OK_COMPLETIONPENDING)
@@ -60,7 +60,7 @@
}
std::string TestGraphics3D::TestPixel(
- pp::Graphics3D* context,
+ pp::Graphics3D_Dev* context,
int x, int y, const uint8_t expected_color[4]) {
GLubyte pixel_color[4];
opengl_es2_->ReadPixels(context->pp_resource(),
Property changes on: ppapi/tests/test_graphics_3d.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « ppapi/tests/test_graphics_3d.h ('k') | ppapi/thunk/ppb_graphics_3d_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698