| Index: ppapi/proxy/ppb_graphics_2d_proxy.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppb_graphics_2d_proxy.cc (revision 74021)
|
| +++ ppapi/proxy/ppb_graphics_2d_proxy.cc (working copy)
|
| @@ -189,7 +189,7 @@
|
| return PP_ERROR_WOULDBLOCK;
|
| }
|
|
|
| -const PPB_Graphics2D ppb_graphics_2d = {
|
| +const PPB_Graphics2D graphics_2d_interface = {
|
| &Create,
|
| &IsGraphics2D,
|
| &Describe,
|
| @@ -199,6 +199,11 @@
|
| &Flush
|
| };
|
|
|
| +InterfaceProxy* CreateGraphics2DProxy(Dispatcher* dispatcher,
|
| + const void* target_interface) {
|
| + return new PPB_Graphics2D_Proxy(dispatcher, target_interface);
|
| +}
|
| +
|
| } // namespace
|
|
|
| PPB_Graphics2D_Proxy::PPB_Graphics2D_Proxy(Dispatcher* dispatcher,
|
| @@ -210,14 +215,18 @@
|
| PPB_Graphics2D_Proxy::~PPB_Graphics2D_Proxy() {
|
| }
|
|
|
| -const void* PPB_Graphics2D_Proxy::GetSourceInterface() const {
|
| - return &ppb_graphics_2d;
|
| +// static
|
| +const InterfaceProxy::Info* PPB_Graphics2D_Proxy::GetInfo() {
|
| + static const Info info = {
|
| + &graphics_2d_interface,
|
| + PPB_GRAPHICS_2D_INTERFACE,
|
| + INTERFACE_ID_PPB_GRAPHICS_2D,
|
| + false,
|
| + &CreateGraphics2DProxy,
|
| + };
|
| + return &info;
|
| }
|
|
|
| -InterfaceID PPB_Graphics2D_Proxy::GetInterfaceId() const {
|
| - return INTERFACE_ID_PPB_GRAPHICS_2D;
|
| -}
|
| -
|
| bool PPB_Graphics2D_Proxy::OnMessageReceived(const IPC::Message& msg) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(PPB_Graphics2D_Proxy, msg)
|
|
|