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

Unified Diff: ppapi/cpp/dev/buffer_dev.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/dev/buffer_dev.h ('k') | ppapi/cpp/dev/device_ref_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/buffer_dev.cc
diff --git a/ppapi/cpp/dev/buffer_dev.cc b/ppapi/cpp/dev/buffer_dev.cc
index aa616deb51f6ef2023262fee4a6aef1c64d3db70..7994be293dd2a31aa195b89dffc598ed946eca87 100644
--- a/ppapi/cpp/dev/buffer_dev.cc
+++ b/ppapi/cpp/dev/buffer_dev.cc
@@ -5,7 +5,7 @@
#include "ppapi/cpp/dev/buffer_dev.h"
#include "ppapi/c/dev/ppb_buffer_dev.h"
-#include "ppapi/cpp/instance.h"
+#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -32,14 +32,14 @@ Buffer_Dev::Buffer_Dev(PP_Resource resource)
Init();
}
-Buffer_Dev::Buffer_Dev(Instance* instance, uint32_t size)
+Buffer_Dev::Buffer_Dev(const InstanceHandle& instance, uint32_t size)
: data_(NULL),
size_(0) {
if (!has_interface<PPB_Buffer_Dev>())
return;
PassRefFromConstructor(get_interface<PPB_Buffer_Dev>()->Create(
- instance->pp_instance(), size));
+ instance.pp_instance(), size));
Init();
}
« no previous file with comments | « ppapi/cpp/dev/buffer_dev.h ('k') | ppapi/cpp/dev/device_ref_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698