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

Unified Diff: ppapi/cpp/dev/font_dev.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: 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
Index: ppapi/cpp/dev/font_dev.h
diff --git a/ppapi/cpp/dev/font_dev.h b/ppapi/cpp/dev/font_dev.h
index a9604e939529688bdff2277c992a598a5aa32e14..12a4b5727b0287c474209e5f6ce07ba3abf87351 100644
--- a/ppapi/cpp/dev/font_dev.h
+++ b/ppapi/cpp/dev/font_dev.h
@@ -16,7 +16,7 @@ struct PP_FontDescription_Dev;
namespace pp {
class ImageData;
-class Instance;
+class InstanceHandle;
class Point;
class Rect;
@@ -103,13 +103,13 @@ class Font_Dev : public Resource {
Font_Dev();
explicit Font_Dev(PP_Resource resource);
- Font_Dev(Instance* instance, const FontDescription_Dev& description);
+ Font_Dev(const InstanceHandle& instance, const FontDescription_Dev& description);
Font_Dev(const Font_Dev& other);
Font_Dev& operator=(const Font_Dev& other);
// PPB_Font methods:
- static Var GetFontFamilies(Instance* instance);
+ static Var GetFontFamilies(const InstanceHandle& instance);
bool Describe(FontDescription_Dev* description,
PP_FontMetrics_Dev* metrics) const;
bool DrawTextAt(ImageData* dest,
« no previous file with comments | « ppapi/cpp/dev/find_dev.cc ('k') | ppapi/cpp/dev/font_dev.cc » ('j') | ppapi/cpp/instance.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698