From 6239d34076222cbfe1d42770c604822b0ba894f4 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Fri, 6 May 2011 22:55:47 +0000 Subject: This implements the new system for Graphics2D only. This works by adding a new thunk layer that will forward to an "API" that's either per-instance (function APIs) or per-resource (resource APIs). The proxying and such is then implemented in terms of this C++ API. Ideally the trackers of the PP_Resource/PP_Instance -> object mapping would be shared between the plugin and renderer processes. To keep this patch under control, I did this as a virtual base class which is implemented by ppapi::proxy::PluginResourceTracker and webkit::ppapi::ResourceTracker. Later, the functionality of these objects should be shared in a common tracker class. Still to do it a lot of cleanup and merging of things. Also, the namespaces are a bit out of control. Review URL: http://codereview.chromium.org/6905088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84519 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/host_dispatcher.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ppapi/proxy/host_dispatcher.h') diff --git a/ppapi/proxy/host_dispatcher.h b/ppapi/proxy/host_dispatcher.h index 2391308..9547c46 100644 --- a/ppapi/proxy/host_dispatcher.h +++ b/ppapi/proxy/host_dispatcher.h @@ -14,6 +14,7 @@ #include "ppapi/c/pp_instance.h" #include "ppapi/proxy/dispatcher.h" #include "ppapi/proxy/plugin_var_tracker.h" +#include "ppapi/shared_impl/function_group_base.h" struct PPB_Proxy_Private; struct PPB_Var_Deprecated; @@ -115,6 +116,12 @@ class HostDispatcher : public Dispatcher { // messages. They are created on demand when we receive messages. scoped_ptr target_proxies_[INTERFACE_ID_COUNT]; + // Function proxies created for "new-style" FunctionGroups. + // TODO(brettw) this is in progress. It should be merged with the target + // proxies so there is one list to consult. + scoped_ptr< ::ppapi::shared_impl::FunctionGroupBase > + function_proxies_[INTERFACE_ID_COUNT]; + // Guaranteed non-NULL. const PPB_Proxy_Private* ppb_proxy_; -- cgit v1.1