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

Unified Diff: ppapi/examples/gles2/gles2.cc

Issue 7737013: Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://chrome-svn/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/cpp/instance.cc ('k') | ppapi/lib/gl/gles2/gl2ext_ppapi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/gles2/gles2.cc
===================================================================
--- ppapi/examples/gles2/gles2.cc (revision 99848)
+++ ppapi/examples/gles2/gles2.cc (working copy)
@@ -12,14 +12,14 @@
#include <vector>
#include "ppapi/c/dev/ppb_console_dev.h"
-#include "ppapi/c/dev/ppb_opengles_dev.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/c/ppb_opengles.h"
#include "ppapi/cpp/dev/context_3d_dev.h"
-#include "ppapi/cpp/dev/graphics_3d_client_dev.h"
-#include "ppapi/cpp/dev/graphics_3d_dev.h"
#include "ppapi/cpp/dev/surface_3d_dev.h"
#include "ppapi/cpp/dev/video_decoder_client_dev.h"
#include "ppapi/cpp/dev/video_decoder_dev.h"
+#include "ppapi/cpp/graphics_3d.h"
+#include "ppapi/cpp/graphics_3d_client.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/rect.h"
@@ -41,7 +41,7 @@
namespace {
class GLES2DemoInstance : public pp::Instance,
- public pp::Graphics3DClient_Dev,
+ public pp::Graphics3DClient,
public pp::VideoDecoderClient_Dev {
public:
GLES2DemoInstance(PP_Instance instance, pp::Module* module);
@@ -51,7 +51,7 @@
virtual void DidChangeView(const pp::Rect& position,
const pp::Rect& clip_ignored);
- // pp::Graphics3DClient_Dev implementation.
+ // pp::Graphics3DClient implementation.
virtual void Graphics3DContextLost() {
// TODO(vrk/fischman): Properly reset after a lost graphics context. In
// particular need to delete context_ & surface_ and re-create textures.
@@ -159,7 +159,7 @@
// Unowned pointers.
const struct PPB_Console_Dev* console_if_;
const struct PPB_Core* core_if_;
- const struct PPB_OpenGLES2_Dev* gles2_if_;
+ const struct PPB_OpenGLES2* gles2_if_;
// Owned data.
pp::Context3D_Dev* context_;
@@ -193,7 +193,7 @@
}
GLES2DemoInstance::GLES2DemoInstance(PP_Instance instance, pp::Module* module)
- : pp::Instance(instance), pp::Graphics3DClient_Dev(this),
+ : pp::Instance(instance), pp::Graphics3DClient(this),
pp::VideoDecoderClient_Dev(this),
num_frames_rendered_(0),
first_frame_delivered_ticks_(-1),
@@ -205,8 +205,8 @@
module->GetBrowserInterface(PPB_CONSOLE_DEV_INTERFACE))));
assert((core_if_ = static_cast<const struct PPB_Core*>(
module->GetBrowserInterface(PPB_CORE_INTERFACE))));
- assert((gles2_if_ = static_cast<const struct PPB_OpenGLES2_Dev*>(
- module->GetBrowserInterface(PPB_OPENGLES2_DEV_INTERFACE))));
+ assert((gles2_if_ = static_cast<const struct PPB_OpenGLES2*>(
+ module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE))));
}
GLES2DemoInstance::~GLES2DemoInstance() {
« no previous file with comments | « ppapi/cpp/instance.cc ('k') | ppapi/lib/gl/gles2/gl2ext_ppapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698