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

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 165433003: PnaclCoordinator: Use llc's module-splitting for pexe compilation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make modules_used explicit Created 6 years, 10 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: components/nacl/renderer/ppb_nacl_private_impl.cc
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
index a9d909a5e322e8476a139b4205cf80f766e5e400..3534f81e5b975df420f8fd007f589fe4b34b3fa8 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -10,6 +10,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/rand_util.h"
+#include "base/sys_info.h"
#include "components/nacl/common/nacl_host_messages.h"
#include "components/nacl/common/nacl_types.h"
#include "components/nacl/renderer/pnacl_translation_resource_host.h"
@@ -256,6 +257,10 @@ PP_FileHandle CreateTemporaryFile(PP_Instance instance) {
return handle;
}
+int32_t GetNumberOfProcessors() {
+ return base::SysInfo::NumberOfProcessors();
+}
+
int32_t GetNexeFd(PP_Instance instance,
const char* pexe_url,
uint32_t abi_version,
@@ -465,6 +470,7 @@ const PPB_NaCl_Private nacl_interface = {
&BrokerDuplicateHandle,
&GetReadonlyPnaclFD,
&CreateTemporaryFile,
+ &GetNumberOfProcessors,
&GetNexeFd,
&ReportTranslationFinished,
&ReportNaClError,
« no previous file with comments | « no previous file | ppapi/api/private/ppb_nacl_private.idl » ('j') | ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698