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

Unified Diff: ppapi/cpp/graphics_3d.cc

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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.h ('k') | ppapi/cpp/graphics_3d_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/graphics_3d.cc
diff --git a/ppapi/cpp/graphics_3d.cc b/ppapi/cpp/graphics_3d.cc
index cce55478430e049ff2c92d88c34bc712c58b38f3..32578de8791f5cf4df1d387c8b0c9d31292cfdb1 100644
--- a/ppapi/cpp/graphics_3d.cc
+++ b/ppapi/cpp/graphics_3d.cc
@@ -6,7 +6,7 @@
#include "ppapi/c/pp_errors.h"
#include "ppapi/cpp/completion_callback.h"
-#include "ppapi/cpp/instance.h"
+#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/module_impl.h"
#include "ppapi/cpp/var.h"
@@ -23,20 +23,20 @@ template <> const char* interface_name<PPB_Graphics3D>() {
Graphics3D::Graphics3D() {
}
-Graphics3D::Graphics3D(const Instance* instance,
+Graphics3D::Graphics3D(const InstanceHandle& instance,
const int32_t attrib_list[]) {
if (has_interface<PPB_Graphics3D>()) {
PassRefFromConstructor(get_interface<PPB_Graphics3D>()->Create(
- instance->pp_instance(), 0, attrib_list));
+ instance.pp_instance(), 0, attrib_list));
}
}
-Graphics3D::Graphics3D(const Instance* instance,
+Graphics3D::Graphics3D(const InstanceHandle& instance,
const Graphics3D& share_context,
const int32_t attrib_list[]) {
if (has_interface<PPB_Graphics3D>()) {
PassRefFromConstructor(get_interface<PPB_Graphics3D>()->Create(
- instance->pp_instance(),
+ instance.pp_instance(),
share_context.pp_resource(),
attrib_list));
}
« no previous file with comments | « ppapi/cpp/graphics_3d.h ('k') | ppapi/cpp/graphics_3d_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698