cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / ppapi / native_client / src / trusted / plugin / arch_x86 / sandbox_isa.cc
blob3f5ab0db243fdb6ae6eea5860f2906f538e9f4b0
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
6 #include "ppapi/native_client/src/trusted/plugin/nexe_arch.h"
8 namespace {
9 // The list of supported ISA strings for x86. See issue:
10 // http://code.google.com/p/nativeclient/issues/detail?id=1040 for more
11 // information. Note that these string are to be case-insensitive compared.
12 const char* const kNexeArchX86_32 = "x86-32";
13 const char* const kNexeArchX86_64 = "x86-64";
14 } // namespace
16 namespace plugin {
17 const char* GetSandboxISA() {
18 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 64) && \
19 (defined(NACL_LINUX) || defined(NACL_OSX))
20 return kNexeArchX86_64; // 64-bit Linux or Mac.
21 #else
22 return NaClOsIs64BitWindows() == 1
23 ? kNexeArchX86_64 // 64-bit Windows (Chrome, Firefox)
24 : kNexeArchX86_32; // everything else.
25 #endif
27 } // namespace plugin