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

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: 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/find_dev.cc ('k') | ppapi/cpp/dev/font_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d0875a50cc3fe599bb7a388f7a950c8f7d1bd5c8 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,14 @@ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698