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

Unified Diff: ppapi/shared_impl/resource_object_base.h

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/shared_impl/font_impl.cc ('k') | ppapi/shared_impl/webkit_forwarding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/resource_object_base.h
===================================================================
--- ppapi/shared_impl/resource_object_base.h (revision 84713)
+++ ppapi/shared_impl/resource_object_base.h (working copy)
@@ -8,6 +8,7 @@
namespace ppapi {
namespace thunk {
+class PPB_Font_API;
class PPB_Graphics2D_API;
class PPB_ImageData_API;
}
@@ -17,6 +18,7 @@
class ResourceObjectBase {
public:
+ virtual thunk::PPB_Font_API* AsFont_API() { return NULL; }
virtual thunk::PPB_Graphics2D_API* AsGraphics2D_API() { return NULL; }
virtual thunk::PPB_ImageData_API* AsImageData_API() { return NULL; }
@@ -24,6 +26,10 @@
};
template<>
+inline thunk::PPB_Font_API* ResourceObjectBase::GetAs() {
+ return AsFont_API();
+}
+template<>
inline thunk::PPB_Graphics2D_API* ResourceObjectBase::GetAs() {
return AsGraphics2D_API();
}
« no previous file with comments | « ppapi/shared_impl/font_impl.cc ('k') | ppapi/shared_impl/webkit_forwarding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698