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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.cc

Issue 711343002: Exclude unused functions for NaCl code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « base/threading/platform_thread_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_graphics_3d_proxy.cc
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc
index e55e9ca369626fa39ca29a34507db14de1cbf3e1..7cd2b88bcdb27155f68e2921bd21f7a9b4a5bf68 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.cc
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc
@@ -28,6 +28,7 @@ namespace {
const int32 kCommandBufferSize = 1024 * 1024;
const int32 kTransferBufferSize = 1024 * 1024;
+#if !defined(OS_NACL)
base::SharedMemoryHandle TransportSHMHandle(
Dispatcher* dispatcher,
const base::SharedMemoryHandle& handle) {
@@ -35,6 +36,7 @@ base::SharedMemoryHandle TransportSHMHandle(
// Don't close the handle, it doesn't belong to us.
return dispatcher->ShareHandleWithRemote(source, false);
}
+#endif // !defined(OS_NACL)
gpu::CommandBuffer::State GetErrorState() {
gpu::CommandBuffer::State error_state;
@@ -378,4 +380,3 @@ void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin(
} // namespace proxy
} // namespace ppapi
-
« no previous file with comments | « base/threading/platform_thread_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698