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

Unified Diff: ppapi/cpp/graphics_3d_client.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_3d.cc ('k') | ppapi/cpp/graphics_3d_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/graphics_3d_client.h
diff --git a/ppapi/cpp/graphics_3d_client.h b/ppapi/cpp/graphics_3d_client.h
index 60299cabace8bf6a697f485d3fe4ee6158545d32..5886b8466ba62fee816d21cd53fc759258dab77c 100644
--- a/ppapi/cpp/graphics_3d_client.h
+++ b/ppapi/cpp/graphics_3d_client.h
@@ -6,14 +6,13 @@
#define PPAPI_CPP_GRAPHICS_3D_CLIENT_H_
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/cpp/instance_handle.h"
/// @file
/// This file defines the API for callbacks related to 3D.
namespace pp {
-class Instance;
-
// This class provides a C++ interface for callbacks related to 3D. You
// would normally use multiple inheritance to derive from this class in your
// instance.
@@ -24,7 +23,7 @@ class Graphics3DClient {
///
/// @param[in] instance The instance that will own the new
/// <code>Graphics3DClient</code>.
- explicit Graphics3DClient(Instance* instance);
+ explicit Graphics3DClient(const InstanceHandle& instance);
/// Destructor.
virtual ~Graphics3DClient();
@@ -34,7 +33,7 @@ class Graphics3DClient {
virtual void Graphics3DContextLost() = 0;
private:
- Instance* associated_instance_;
+ InstanceHandle associated_instance_;
};
} // namespace pp
« no previous file with comments | « ppapi/cpp/graphics_3d.cc ('k') | ppapi/cpp/graphics_3d_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698