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

Unified Diff: ppapi/cpp/graphics_3d_client.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/graphics_3d_client.h ('k') | ppapi/cpp/instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/graphics_3d_client.cc
===================================================================
--- ppapi/cpp/graphics_3d_client.cc (revision 99577)
+++ ppapi/cpp/graphics_3d_client.cc (working copy)
@@ -1,10 +1,10 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ppapi/cpp/dev/graphics_3d_client_dev.h"
+#include "ppapi/cpp/graphics_3d_client.h"
-#include "ppapi/c/dev/ppp_graphics_3d_dev.h"
+#include "ppapi/c/ppp_graphics_3d.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -13,30 +13,30 @@
namespace {
-const char kPPPGraphics3DInterface[] = PPP_GRAPHICS_3D_DEV_INTERFACE;
+const char kPPPGraphics3DInterface[] = PPP_GRAPHICS_3D_INTERFACE;
void Graphics3D_ContextLost(PP_Instance instance) {
void* object =
pp::Instance::GetPerInstanceObject(instance, kPPPGraphics3DInterface);
if (!object)
return;
- return static_cast<Graphics3DClient_Dev*>(object)->Graphics3DContextLost();
+ return static_cast<Graphics3DClient*>(object)->Graphics3DContextLost();
}
-static PPP_Graphics3D_Dev graphics3d_interface = {
+static PPP_Graphics3D graphics3d_interface = {
&Graphics3D_ContextLost,
};
} // namespace
-Graphics3DClient_Dev::Graphics3DClient_Dev(Instance* instance)
+Graphics3DClient::Graphics3DClient(Instance* instance)
: associated_instance_(instance) {
pp::Module::Get()->AddPluginInterface(kPPPGraphics3DInterface,
&graphics3d_interface);
associated_instance_->AddPerInstanceObject(kPPPGraphics3DInterface, this);
}
-Graphics3DClient_Dev::~Graphics3DClient_Dev() {
+Graphics3DClient::~Graphics3DClient() {
associated_instance_->RemovePerInstanceObject(kPPPGraphics3DInterface, this);
}
« no previous file with comments | « ppapi/cpp/graphics_3d_client.h ('k') | ppapi/cpp/instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698