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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.cc

Issue 11094060: Exclude host-side code from the NaCl IRT proxy build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
Index: ppapi/proxy/ppb_graphics_3d_proxy.cc
===================================================================
--- ppapi/proxy/ppb_graphics_3d_proxy.cc (revision 161132)
+++ ppapi/proxy/ppb_graphics_3d_proxy.cc (working copy)
@@ -192,6 +192,7 @@
bool PPB_Graphics3D_Proxy::OnMessageReceived(const IPC::Message& msg) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(PPB_Graphics3D_Proxy, msg)
+#if !defined(OS_NACL)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBGraphics3D_Create,
OnMsgCreate)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
@@ -212,7 +213,7 @@
OnMsgGetTransferBuffer)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
OnMsgSwapBuffers)
-
+#endif // !defined(OS_NACL)
IPC_MESSAGE_HANDLER(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
OnMsgSwapBuffersACK)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -222,6 +223,7 @@
return handled;
}
+#if !defined(OS_NACL)
void PPB_Graphics3D_Proxy::OnMsgCreate(PP_Instance instance,
HostResource share_context,
const std::vector<int32_t>& attribs,
@@ -338,6 +340,14 @@
enter.SetResult(enter.object()->SwapBuffers(enter.callback()));
}
+void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin(
+ int32_t result,
+ const HostResource& context) {
+ dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK(
+ API_ID_PPB_GRAPHICS_3D, context, result));
+}
+#endif // !defined(OS_NACL)
+
void PPB_Graphics3D_Proxy::OnMsgSwapBuffersACK(const HostResource& resource,
int32_t pp_error) {
EnterPluginFromHostResource<PPB_Graphics3D_API> enter(resource);
@@ -345,13 +355,6 @@
static_cast<Graphics3D*>(enter.object())->SwapBuffersACK(pp_error);
}
-void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin(
- int32_t result,
- const HostResource& context) {
- dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK(
- API_ID_PPB_GRAPHICS_3D, context, result));
-}
-
} // namespace proxy
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698