summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'Redirecting output to the JavaScript console'.jmedley2014-09-032-116/+8
| | | | | | | | | | | | BUG=none R= teravest@chromium.org TEST=none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/530173003 Cr-Commit-Position: refs/heads/master@{#293171}
* [NaCl SDK] nacl_io: fix bionic buildsbc2014-08-301-2/+8
| | | | | | | | | | getnameinfo has a slightly different signature on bionic. TEST=./build_tools/build_sdk.py --bionic Review URL: https://codereview.chromium.org/523043004 Cr-Commit-Position: refs/heads/master@{#292725}
* [NaCl SDK] genhttpfs.py: allow filenames with spaces in them.sbc2014-08-291-14/+22
| | | | | | | | | | Allow special characters such as spaces in filenames. Also includes some general cleanup, and documentation. Review URL: https://codereview.chromium.org/15854004 Cr-Commit-Position: refs/heads/master@{#292713}
* [NaCl SDK] Allow ppapi_simple executables to run in both sel_ldr and in chrome.sbc2014-08-2913-133/+90
| | | | | | | | | | | | Override the main() function from libppapi_stub, and rather than simply failing when PPAPI is missing, assume that we are running in sel_ldr and jump directly to the user's main function. As a nice side effect this removes the needs to SEL_LDR=1 builds. Review URL: https://codereview.chromium.org/412083002 Cr-Commit-Position: refs/heads/master@{#292710}
* [NaCl SDK] Fix a bug in build_version.ChromeVersion()Ben Smith2014-08-293-32/+143
| | | | | | | | | | | And add tests. BUG=408896 R=sbc@chromium.org Review URL: https://codereview.chromium.org/524503002 Cr-Commit-Position: refs/heads/master@{#292641}
* [NaCl SDK] nacl_io: add getnameinfo scaffoldingsbc2014-08-298-0/+69
| | | | | | | | This initial version still returns ENOSYS. Review URL: https://codereview.chromium.org/512603008 Cr-Commit-Position: refs/heads/master@{#292515}
* [NaCl SDK] Update build_sdk.py to display Cr-Commit-Position in README.Ben Smith2014-08-285-17/+66
| | | | | | | | | BUG=none R=bradnelson@google.com, bradnelson@chromium.org Review URL: https://codereview.chromium.org/495423010 Cr-Commit-Position: refs/heads/master@{#292480}
* [NaCl SDK] Add pepper_38 to naclsdk_manifest2.jsonSam Clegg2014-08-281-0/+10
| | | | | | | | R=binji@chromium.org Review URL: https://codereview.chromium.org/514333002 Cr-Commit-Position: refs/heads/master@{#292478}
* NaCl docs: fix community indexJF Bastien2014-08-272-6/+5
| | | | | | | | | | | | | | The ReST URL was bad, and somehow it started parsing differently, maybe because I have a newer version of the ReST parser. TBR= binji@chromium.org, sbc@chromium.org TEST=none BUG=none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/504343006 Cr-Commit-Position: refs/heads/master@{#292214}
* NaCl documentation: update release notes for Chrome 38JF Bastien2014-08-275-35/+47
| | | | | | | | | | | | | | | | Please let me know if I'm missing anything on the release notes. Some other files updated, they seem to have been forgotten by previous commits. R=dmichael@chromium.org, jmedley@chromium.org, binji@chromium.org BUG= none TEST= none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/477203002 Cr-Commit-Position: refs/heads/master@{#292213}
* [NaCl SDK] Update build_version.ChromeVersion to return "trunk.###"Ben Smith2014-08-271-7/+4
| | | | | | | | | | | | | | This will make the SDK archive step upload to the correct URL for trunk builds. No tries because this does not affect the Chrome build. BUG=none R=bradnelson@google.com, bradnelson@chromium.org TEST=ran locally Review URL: https://codereview.chromium.org/510133002 Cr-Commit-Position: refs/heads/master@{#292211}
* [NaCl SDK] Fix the SDK builders to use Cr-Commit-Position.Ben Smith2014-08-271-3/+53
| | | | | | | | | | | | | | | | We are relying on lastchange.FetchVersionInfo in build_sdk.py. The revision changed from being an SVN revision to a git sha, but we want to be able to compare the values numerically. This change modifies build_version.py to get "Cr-Commit-Position", which for our purposes is functionally equivalent to the SVN revision. BUG=none R=bradnelson@google.com, bradnelson@chromium.org Review URL: https://codereview.chromium.org/507883003 Cr-Commit-Position: refs/heads/master@{#292179}
* Revert of Remove unused PPB_View_Dev (patchset #3 of ↵dmichael2014-08-272-0/+4
| | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/498123002/) Reason for revert: I should've checked sooner; this is apparently still used by Flash. (See go/UMA, histograms, Pepper.InterfaceUsed) Original issue's description: > Remove unused PPB_View_Dev > > TBR=binji@chromium.org > > Committed: https://chromium.googlesource.com/chromium/src/+/2210d5fb49cd4b75972f2e304b29637c050de4f1 TBR=binji@chromium.org,raymes@chromium.org NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/512703003 Cr-Commit-Position: refs/heads/master@{#292152}
* Remove unused PPB_View_Devraymes2014-08-272-4/+0
| | | | | | | | TBR=binji@chromium.org Review URL: https://codereview.chromium.org/498123002 Cr-Commit-Position: refs/heads/master@{#292086}
* [NaCl SDK] Update getos.py tests to match new behaviour.Sam Clegg2014-08-261-1/+1
| | | | | | | | | | | | | | | | | The revision reported by getos is now a string rather than an integer (since we use git shas now). The behavior was changes in https://codereview.chromium.org/502883002 but unfortunately the NaCl SDK bot are still not part of the CQ so it slipped through. BUG=406993 R=binji@chromium.org Review URL: https://codereview.chromium.org/507673003 Cr-Commit-Position: refs/heads/master@{#291926}
* NaCl SDK: Fixed getos.py crashing due to Git migration.mgiuca2014-08-261-5/+8
| | | | | | | | | | | | | | | Was trying to parse a Git commit hash as an int. getos --check-version no longer compares exact revision numbers, only major version numbers (because the Git hashes can't directly be compared, unlike SVN numbers). Added a TODO to compare Cr-Commit-Position when it becomes available. BUG=406993 Review URL: https://codereview.chromium.org/502883002 Cr-Commit-Position: refs/heads/master@{#291888}
* Per P0 reqs add launch points + make download obvious. Also misc copy edits.jmedley2014-08-2544-628/+1247
| | | | | | | | | | | | | | | | | | | | | | BUG=none R= mkearney@chromium.org, smain@chromium.org, binji@chromium.org TEST=none NOTRY=true (documentation only change) Priority list copied here for reference: P1 But written by different engineers, very uneven quality and voice. P2 Some documentation could be expanded. P0 The ramp-in for new users could be improved. P0 The landing page isn't "cool", it doesn't make developers want to jump in and use it. Could we have a more github-like thing that gets people started quickly? Could we have a narrative intro? We just bought the pna.cl domain, we should use it! P3 We think it's pretty important to keep the deep-dive in there (e.g. sandbox internals, bitcode reference). Review URL: https://codereview.chromium.org/476793002 Cr-Commit-Position: refs/heads/master@{#291696}
* Whitespace change to kick off client.nacl.sdkhinoka2014-08-251-0/+1
| | | | | | | | | | | BUG=406974 TBR=cmp NOTRY=true NOTREECHECKS=true Review URL: https://codereview.chromium.org/505813002 Cr-Commit-Position: refs/heads/master@{#291693}
* Pepper: PPB_VideoDecoder software-only mode.bbudge2014-08-231-1/+1
| | | | | | | | | | | Add 'Initialize' method that takes an enum value to specify hardware acceleration policy. Policies are always, with fallback and only software. BUG=406194 Review URL: https://codereview.chromium.org/496203002 Cr-Commit-Position: refs/heads/master@{#291606}
* [NaCl SDK] Remove syscalls wrappers for chmod and unlink.sbc@chromium.org2014-08-2117-67/+131
| | | | | | | | | | | | | | | | | | This allows applications that are linked with nacl_io to use the libc-supplied versions of these functions when nacl_io is not initialized. Fix some issues with using nacl_io without ppapi present. Add some tests for using syscalls when nacl_io is not initialized. R=binji@chromium.org Review URL: https://codereview.chromium.org/474433005 Cr-Commit-Position: refs/heads/master@{#291036} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291036 0039d316-1c4b-4281-b951-d872f2087c98
* Second batch of corrections for incorrect paths.jmedley@chromium.org2014-08-2113-127/+147
| | | | | | | | | | | | | BUG=none R= binji@chromium.org, jfb@chromium.org TEST=none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/488133003 Cr-Commit-Position: refs/heads/master@{#291006} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291006 0039d316-1c4b-4281-b951-d872f2087c98
* Fix incorrect paths.jmedley@chromium.org2014-08-214-146/+111
| | | | | | | | | | | | | BUG=none R= binji@chromium.org, jfb@chromium.org TEST=none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/479623002 Cr-Commit-Position: refs/heads/master@{#291005} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291005 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] nacl_io: Fix leak when recv'ing from udp socket.binji@chromium.org2014-08-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | Packet::Copy AddRefs the address resource returned from PPB_UDPSocket::RecvFrom. But the convention is that when returning a new resource, the resource will already have a refcount of 1. So the resource has an leaked reference and will never be destroyed. This memory leak cannot be detected from untrusted code (I overrode mmap/mmunmap, but was unable to find it), but can be seen from the Chrome task manager. See user report here: https://groups.google.com/d/msg/native-client-discuss/fEc6v7_wjkI/lnFNO09yw9kJ BUG=none R=noelallen@chromium.org Review URL: https://codereview.chromium.org/487363003 Cr-Commit-Position: refs/heads/master@{#290691} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290691 0039d316-1c4b-4281-b951-d872f2087c98
* Using PROFILE_ANY for vp8 and vp9amogh.bihani@samsung.com2014-08-151-1/+1
| | | | | | | | | | | | | | VP8 and VP9 do not take profile into account. Using PROFILE_MAIN is confusing. This patch uses PROFILE_ANY for these codecs. TBR=noelallen@chromium.org BUG=361676 Review URL: https://codereview.chromium.org/418193003 Cr-Commit-Position: refs/heads/master@{#289765} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289765 0039d316-1c4b-4281-b951-d872f2087c98
* ppapi: Add way to ignore presubmit warning about including in NaCl SDK.binji@chromium.org2014-08-151-0/+16
| | | | | | | | | | | | | | | | | | | The ppapi presubmit checks that a modified interface exists in the NaCl SDK. But not all interfaces should be included. It is currently a warning, but that will prevent the CQ from submitting the CL. Now we can add that file to an "IGNORE_LIST" and it will no longer emit a presubmit warning. BUG=403713 R=bbudge@chromium.org TEST=modified pp_video_dev.h, ran presubmits, got warning. Added to ignore list, ran again. No warning. Review URL: https://codereview.chromium.org/475763003 Cr-Commit-Position: refs/heads/master@{#289734} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289734 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up a couple of stray diffsnfullagar@chromium.org2014-08-121-2/+2
| | | | | | | | | | | R=binji@chromium.org BUG=none TEST=this is an example Review URL: https://codereview.chromium.org/458383002 Cr-Commit-Position: refs/heads/master@{#288858} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288858 0039d316-1c4b-4281-b951-d872f2087c98
* Roll gtest and gmock DEPS.ncbray@chromium.org2014-08-091-0/+1
| | | | | | | | | | | | | | | | | These DEPS have not been updated for ~2 years, so there is a good chance something will blow up. Due to interdependancy between the repos, rolling gtest required gmock also be rolled. This CL was originally landed as 288164 and reverted as 288239 because it allows more aggressive LTO in MSVS. This resulted in the compiler noticing an intentional arithmetic overflow and warning about it. BUG=401761 Review URL: https://codereview.chromium.org/425333002 Cr-Commit-Position: refs/heads/master@{#288505} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288505 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Fix bug in TCPNode::Connectbinji@chromium.org2014-08-092-0/+16
| | | | | | | | | | | | | | | Calling connect() would not fail if there was an error connecting. Instead it would return 0 (success) and fail on the first read/write. The fix is to check SocketNode::last_errno_ after the wait succeeds. BUG=none R=noelallen@chromium.org Review URL: https://codereview.chromium.org/458563002 Cr-Commit-Position: refs/heads/master@{#288480} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288480 0039d316-1c4b-4281-b951-d872f2087c98
* Update SIMD version of life demo.nfullagar@chromium.org2014-08-095-461/+594
| | | | | | | | | | | | | | | - add benchmark option - add multi-thread support - convert from c to cpp (inc. ppapi) BUG=NONE TEST=this is a demo R=binji@chromium.org Review URL: https://codereview.chromium.org/451883002 Cr-Commit-Position: refs/heads/master@{#288473} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288473 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] nacl_io: Remove use of new/delete for data buffers.sbc@chromium.org2014-08-0812-65/+111
| | | | | | | | | | | | | | | This is the first step in the transition of nacl_io from C++ to C. Also, remove an unused method (Packet::Take). BUG=400779 R=binji@chromium.org Review URL: https://codereview.chromium.org/443693002 Cr-Commit-Position: refs/heads/master@{#288314} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288314 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 288164 "Roll gtest and gmock DEPS."tommi@chromium.org2014-08-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Suspected to have broken the Chrome Win build: c:\b\build\slave\google-chrome-rel-win\build\src\base\numerics\safe_numerics_unittest.cc(577) : error C2220: warning treated as error - no 'object' file generated c:\b\build\slave\google-chrome-rel-win\build\src\base\numerics\safe_numerics_unittest.cc(577) : warning C4756: overflow in constant arithmetic > Roll gtest and gmock DEPS. > > These DEPS have not been updated for ~2 years, so there is a good chance > something will blow up. Due to interdependancy between the repos, > rolling gtest required gmock also be rolled. > > BUG=none > > Review URL: https://codereview.chromium.org/425333002 TBR=ncbray@chromium.org Review URL: https://codereview.chromium.org/454823002 Cr-Commit-Position: refs/heads/master@{#288239} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288239 0039d316-1c4b-4281-b951-d872f2087c98
* Roll gtest and gmock DEPS.ncbray@chromium.org2014-08-071-0/+1
| | | | | | | | | | | | These DEPS have not been updated for ~2 years, so there is a good chance something will blow up. Due to interdependancy between the repos, rolling gtest required gmock also be rolled. BUG=none Review URL: https://codereview.chromium.org/425333002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288164 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK Docs] Only generate one top-level <section> element.binji@chromium.org2014-08-0649-712/+128
| | | | | | | | | | | | | | | This fixes the right-side table-of-contents on the documentation page, so it is collapsible and only shows h2 headings by default. NOTRY because it is a documentation-only change. BUG=374811 R=sbc@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/438403003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287804 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] nacl_io: Remove unneeded glibc syscall entry points.sbc@chromium.org2014-08-0623-241/+108
| | | | | | | | | | | | | | | | | | These can now be intercepted within glibc so there is no need to implement them directly. mkdir/mkdir were also be intercepted at this level under newlib unnecessarily. It seems that truncate.c is still needed but I've got a fix for that in glibc: https://codereview.chromium.org/439003002/ BUG= https://code.google.com/p/nativeclient/issues/detail?id=3709 R=binji@chromium.org Review URL: https://codereview.chromium.org/433193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287745 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Fix typo in build_sdk.py.sbc@chromium.org2014-08-051-1/+1
| | | | | | | | | | | The name of the gyp variable for disabling arm components was mis-typed. R=binji@chromium.org Review URL: https://codereview.chromium.org/435813002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287516 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Remove stubs for sitaddset/sigdelset and friends.sbc@chromium.org2014-07-316-69/+0
| | | | | | | | | These stubs were included in the newlib case only but newlib contains these functions already in lib_a-sigset.o. Review URL: https://codereview.chromium.org/421043003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286882 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl docs: Add a list of past design docsmseaborn@chromium.org2014-07-304-0/+117
| | | | | | | | | | | | | | | | I'd like there to be a place where we can list design docs, for reference. These are mostly Google Docs, with a couple in other formats. This is the start of a list. There are more docs we could add if we make them publicly-readable. BUG=none TEST=View result of "make html" Review URL: https://codereview.chromium.org/420323007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286634 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Remove old SDK versions (27-30) from nacl_sdk manifest.sbc@chromium.org2014-07-291-172/+0
| | | | | | | | R=binji@chromium.org Review URL: https://codereview.chromium.org/423853004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286222 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Add option to build without ARM trusted components.sbc@chromium.org2014-07-281-2/+7
| | | | | | | | | | | | | | Buiding of sel_ldr and other ARM trusted components is only possible to certain versions of ubuntu since we depend on the distro's cross toolchain. This option allows those without such a cross toolchain to still produce and otherise useful SDK. R=binji@chromium.org Review URL: https://codereview.chromium.org/414173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286025 0039d316-1c4b-4281-b951-d872f2087c98
* PNaCl documentation: clarify vector alignment, and update navigationjfb@chromium.org2014-07-282-22/+53
| | | | | | | | | | | | R= binji@chromium.org TEST=none BUG=none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/419803005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285923 0039d316-1c4b-4281-b951-d872f2087c98
* Update masters after the tryserver split.sergeyberezin@chromium.org2014-07-261-1/+5
| | | | | | | | | | | Also replace deprecated linux_chromium_rel with linux_chromium_rel_swarming, while I'm at it. R=agable@chromium.org, maruel@chromium.org BUG=395196 Review URL: https://codereview.chromium.org/415323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285752 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Add pepper_37 bundle.binji@chromium.org2014-07-261-0/+10
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/420553010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285737 0039d316-1c4b-4281-b951-d872f2087c98
* Dropping fdopen workaround now that glibc has been fixed.bradnelson@google.com2014-07-252-53/+0
| | | | | | | | | | BUG= https://code.google.com/p/nativeclient/issues/detail?id=3362 R=binji@chromium.org TEST=local Review URL: https://codereview.chromium.org/417323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285677 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] nacl_io: Remove duplication between passthroughfs and devfs.sbc@chromium.org2014-07-249-174/+193
| | | | | | | | | | | | | | They both had implementations of RealNode. Also update examples/tutorial/testing so that it shuts down the NaCl module correctly. TEST=trybots R=binji@chromium.org Review URL: https://codereview.chromium.org/414993002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285382 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] nacl_io: fix invalid access to string data.sbc@chromium.org2014-07-241-4/+6
| | | | | | | | | | | | | | | The data referenced by c_str() is only valid as long as the std::string is still live, so hold std::string values on the stack. This was causing tests to fail on my Trusty laptop. BUG= R=binji@chromium.org Review URL: https://codereview.chromium.org/414843004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285346 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Silence objdump warning when building w/ Chrome dev/beta.binji@chromium.org2014-07-241-1/+9
| | | | | | | | | | | | | | objdump was failing when running beta or dev branch of Chrome, because the filename is now google-chrome-beta or google-chrome-dev. The code in getos.py was only checking for google-chrome. BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/417763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285312 0039d316-1c4b-4281-b951-d872f2087c98
* [NaClSDK] Docs: Fix another manifest "typo" w/ portable dict.jvoung@chromium.org2014-07-212-14/+18
| | | | | | | | | | | | Similar to 283576 (was probably copy-pasted). BUG=none NOTRY=true Review URL: https://codereview.chromium.org/403073003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284442 0039d316-1c4b-4281-b951-d872f2087c98
* Currently, bionic only build a subset of the examples. This changes turns ↵noelallen@chromium.org2014-07-1825-28/+40
| | | | | | | | | | | on all the examples and tests compiling those examples. BUG=344574 R=sbc@chromium.org, binji@chromium.org Review URL: https://codereview.chromium.org/339393005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284165 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl SDK: Demonstrate use of pp::View::GetDeviceScale for 3Djhorwich@chromium.org2014-07-181-2/+5
| | | | | | | | | | | | | | Demonstrate in the NaCl SDK API demo for pp::Graphics3D how to use full device resolution on HiDPI displays. For Graphics3D it is simply a matter of sizing the texture in device pixels, by multiplying the width/height by view.GetDeviceScale(). BUG=196253 TEST=Build NaCl SDK, run with --force-device-scale-factor=2 Review URL: https://codereview.chromium.org/398943003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283952 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl SDK: Demonstrate use of pp::Graphics2D::SetScale()jhorwich@chromium.org2014-07-171-4/+12
| | | | | | | | | | | | | | | | | | Demonstrate in the NaCl SDK API demo for pp::Graphics2D how to use full device resolution on HiDPI displays. For Graphics2D, the example now calls pp::View::GetDeviceScale(), and creates a Graphics 2D context with the correct number of pixels, as well as show when to call pp::Graphics2D::SetScale(). It also scales the mouse position to the correct location and increases the radius of the circle created in DrawMouse() to match. BUG=144071,392557 TEST=Build NaCl SDK, run with --force-device-scale-factor=2 Review URL: https://codereview.chromium.org/397173003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283832 0039d316-1c4b-4281-b951-d872f2087c98