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

Unified Diff: ppapi/cpp/graphics_3d.h

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_2d.cc ('k') | ppapi/cpp/graphics_3d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/graphics_3d.h
diff --git a/ppapi/cpp/graphics_3d.h b/ppapi/cpp/graphics_3d.h
index 9d89e28971afbf8151888ac5f1d0f9e54caadbda..56383da1d815570e3793089c1336f5a64618d4f9 100644
--- a/ppapi/cpp/graphics_3d.h
+++ b/ppapi/cpp/graphics_3d.h
@@ -13,7 +13,7 @@
namespace pp {
class CompletionCallback;
-class Instance;
+class InstanceHandle;
/// This class represents a 3D rendering context in the browser.
class Graphics3D : public Resource {
@@ -26,7 +26,8 @@ class Graphics3D : public Resource {
/// to a module instance using <code>Instance::BindGraphics</code> to draw on
/// the web page.
///
- /// @param[in] instance The instance that will own the new Graphics3D.
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
///
/// @param[in] attrib_list The list of attributes (name=value pairs) for the
/// context. The list is terminated with
@@ -61,7 +62,7 @@ class Graphics3D : public Resource {
/// Default: Implementation defined.
///
/// On failure, the object will be is_null().
- Graphics3D(const Instance* instance,
+ Graphics3D(const InstanceHandle& instance,
const int32_t attrib_list[]);
/// A constructor for creating and initializing a 3D rendering context. The
@@ -84,7 +85,7 @@ class Graphics3D : public Resource {
/// 2-argument version of this constructor for more information.
///
/// On failure, the object will be is_null().
- Graphics3D(const Instance* instance,
+ Graphics3D(const InstanceHandle& instance,
const Graphics3D& share_context,
const int32_t attrib_list[]);
« no previous file with comments | « ppapi/cpp/graphics_2d.cc ('k') | ppapi/cpp/graphics_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698