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

Unified Diff: ppapi/proxy/ppb_graphics_2d_proxy.h

Issue 8790009: Regularize how ImageData and Graphics2D are created. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 9 years 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/proxy/ppb_graphics_2d_proxy.h
diff --git a/ppapi/proxy/ppb_graphics_2d_proxy.h b/ppapi/proxy/ppb_graphics_2d_proxy.h
index c872871c044a5571bc56db264f946a32e111113c..28975954ce0be4aecbaacbca3eb0a5165e387a70 100644
--- a/ppapi/proxy/ppb_graphics_2d_proxy.h
+++ b/ppapi/proxy/ppb_graphics_2d_proxy.h
@@ -39,27 +39,31 @@ class PPB_Graphics2D_Proxy : public InterfaceProxy {
static const ApiID kApiID = API_ID_PPB_GRAPHICS_2D;
private:
- // Plugin->renderer message handlers.
- void OnMsgPaintImageData(const ppapi::HostResource& graphics_2d,
- const ppapi::HostResource& image_data,
- const PP_Point& top_left,
- bool src_rect_specified,
- const PP_Rect& src_rect);
- void OnMsgScroll(const ppapi::HostResource& graphics_2d,
- bool clip_specified,
- const PP_Rect& clip,
- const PP_Point& amount);
- void OnMsgReplaceContents(const ppapi::HostResource& graphics_2d,
- const ppapi::HostResource& image_data);
- void OnMsgFlush(const ppapi::HostResource& graphics_2d);
+ // Plugin->host message handlers.
+ void OnHostMsgCreate(PP_Instance instance,
+ const PP_Size& size,
+ PP_Bool is_always_opaque,
+ HostResource* result);
+ void OnHostMsgPaintImageData(const HostResource& graphics_2d,
+ const HostResource& image_data,
+ const PP_Point& top_left,
+ bool src_rect_specified,
+ const PP_Rect& src_rect);
+ void OnHostMsgScroll(const HostResource& graphics_2d,
+ bool clip_specified,
+ const PP_Rect& clip,
+ const PP_Point& amount);
+ void OnHostMsgReplaceContents(const HostResource& graphics_2d,
+ const HostResource& image_data);
+ void OnHostMsgFlush(const HostResource& graphics_2d);
- // Renderer->plugin message handlers.
- void OnMsgFlushACK(const ppapi::HostResource& graphics_2d,
- int32_t pp_error);
+ // Host->plugin message handlers.
+ void OnPluginMsgFlushACK(const HostResource& graphics_2d,
+ int32_t pp_error);
// Called in the renderer to send the given flush ACK to the plugin.
void SendFlushACKToPlugin(int32_t result,
- const ppapi::HostResource& graphics_2d);
+ const HostResource& graphics_2d);
pp::CompletionCallbackFactory<PPB_Graphics2D_Proxy,
ProxyNonThreadSafeRefCount> callback_factory_;

Powered by Google App Engine
This is Rietveld 408576698