summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Pepper: Autogenerate thunk for PPB_Graphics2D.teravest@chromium.org2013-04-3013-79/+121
| | | | | | | | | | | | | | This change fixes a typo in the IDL, and cleans up the API a little bit so we can generate a thunk for it. The implementation in webkit is vestigal and was removed. Tested: browser_tests --gtest_filter="*Graphics2D*" BUG= Review URL: https://chromiumcodereview.appspot.com/14335005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197409 0039d316-1c4b-4281-b951-d872f2087c98
* ppapi: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST.scherkus@chromium.org2013-04-3013-13/+13
| | | | | | | | | | | | | It's no longer providing value as the MSVC warning is disabled during compilation. Refer to bug for details. NOTE: This doesn't address PP_ALLOW_THIS_IN_INITIALIZER_LIST. BUG=234765 R=brettw@chromium.org Review URL: https://codereview.chromium.org/14307011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197205 0039d316-1c4b-4281-b951-d872f2087c98
* Fix uninitialized datakmixter@chromium.org2013-04-271-1/+3
| | | | | | | | | | | | | This was causing lots of messages of the form: [2936:2936:0425/211915:ERROR:resource_tracker.cc(45)] -21308287 is not a PP_Resource. BUG=235913 Review URL: https://chromiumcodereview.appspot.com/14305016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196913 0039d316-1c4b-4281-b951-d872f2087c98
* PNaCl PPAPI shims: Update for new PNaCl ABI for by-value struct passingmseaborn@chromium.org2013-04-267-1452/+929
| | | | | | | | | | | | | | | | | | | | | | | | The PNaCl ABI is changing so that by-value struct arguments (and return values) are expanded out to being passed by pointer, on all architectures. This means that __attribute__((pnaclcall)) no longer reflects PNaCl user code's calling conventions, so we have to change the PNaCl PPAPI shims. The new shims can be pure C without any special attributes. Remove now-unused ptr_prefix argument. This updates nacl_revision to pull in the following NaCl changes: r11238: (kschimpf) Update pnacl_llvm_rev to 5712db994c8a4abb8c2512fb2900650f8335af66. r11239: (mseaborn) Update PNaCl toolchain revision in TOOL_REVISIONS to get ExpandByVal BUG=https://code.google.com/p/nativeclient/issues/detail?id=3400 TEST=cd ppapi/generators && ./generator.py + compile shims + "ppapi/generators/idl_gen_pnacl.py --test" Review URL: https://codereview.chromium.org/14134011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196881 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ppapi_param_traits.cc - add missing field.bbudge@chromium.org2013-04-261-1/+3
| | | | | | | | | | Needed for URLLoader refactoring. BUG=69457 Review URL: https://chromiumcodereview.appspot.com/14061011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196880 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Fix use-after-free bug in PluginVarTracker.teravest@chromium.org2013-04-265-7/+28
| | | | | | | | | | | | | | | | | A PluginDispatcher may destroy itself in reaction to a channel error. However, ProxyObjectVar instances may still have a pointer to the (destroyed) dispatcher. This is problematic when the plugin wants to send a message to the host to release the object; the ProxyObjectVar doesn't know the PluginDispatcher has been deleted. This change alters PluginDispatcher to invoke DidDeleteDispatcher() on the PluginVarTracker, which will clean up the dangling dispatcher pointers. BUG=233044 Review URL: https://chromiumcodereview.appspot.com/14054020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196850 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PPAPI Video Stream APIs.bbudge@chromium.org2013-04-2625-909/+981
| | | | | | | | | | | | | | | | | PP_VideoFrame -> PP_VideoFrame_Private PPB_VideoReader -> PPB_VideoSource_Private PPB_VideoWriter -> PPB_VideoDestination_Private IDL, .h and C++ wrapper files are now in /private subdirectories. Renamed some methods to fit the API names better. Changed the Source Open method's stream_id param to [in]. BUG=230980 TEST=none Review URL: https://chromiumcodereview.appspot.com/14192054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196595 0039d316-1c4b-4281-b951-d872f2087c98
* Autogenerate thunk for PPB_ImageData.teravest@chromium.org2013-04-269-52/+88
| | | | | | | | | | | | | | | | | | This changes idl_thunk.py to use functions from ppapi/shared_impl when the first argument to a function is not PP_Instance or PP_Resource. This pattern seems to be used in multiple IDL files. I also needed to clean up the APIs a bit so the function signatures matched up with what idl_thunk.py emits. Tested: Built chrome and browser_tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14060022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196571 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Add a ConvertableToTraceFormat type to the trace framework."tonyg@chromium.org2013-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | Causes all performance_ui_tests to hang on linux buildbots. BUG=230085 TBR=dsinclair@chromium.org This reverts commit 296969e578a069f7c5155087acfef4f2a422d3cc. Conflicts: base/debug/trace_event.h base/debug/trace_event_impl.cc base/debug/trace_event_impl.h base/debug/trace_event_unittest.cc content/renderer/render_thread_impl.cc Review URL: https://codereview.chromium.org/13954016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196550 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_URLResponseInfo.teravest@chromium.org2013-04-252-6/+18
| | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/14031017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196523 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Pepper GetDeviceID for Windowsraymes@chromium.org2013-04-253-0/+70
| | | | | | | | | | | | The device ID is generated by mixing a salt which is specific to the users profile and with machine-specific information. This CL also connects the action of clearing the salt with the "Clear browsing data > Deauthrorize content licenses" action. The ChromeOS implementation of GetDeviceID is unified with the Windows implementation and the old method of generating the IDs has been deprecated. BUG=235193 Review URL: https://chromiumcodereview.appspot.com/12701002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196522 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Update PPB_Zoom thunk.teravest@chromium.org2013-04-241-7/+9
| | | | | | | | | | | I forgot to rebase the patch for generating the thunk for PPB_Zoom_Dev. This updates the thunk.cc file to match the current implementation of idl_thunk.py. BUG= Review URL: https://chromiumcodereview.appspot.com/14447012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196266 0039d316-1c4b-4281-b951-d872f2087c98
* Port PNaCl error handling test from scons to gyp / browser_tests.jvoung@chromium.org2013-04-2411-306/+0
| | | | | | | | | | | We stopped running PNaCl scons nacl_integration, so these tests were no longer being run. Port so that they run. BUG=http://code.google.com/p/nativeclient/issues/detail?id=3364 Review URL: https://chromiumcodereview.appspot.com/14212004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196240 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Remove verson 0.6 of PPB_Printing_Dev.teravest@chromium.org2013-04-248-122/+59
| | | | | | | | | | | | | | | | | | | | This is a deprecated dev interface that's had a replacement shipped in M23. There's a test for source compatability that will catch any problems if they exist with flash source code (which I don't have access to). Removing this interface lets us get rid of some cruft and autogenerate the thunk for PPB_Printing_Dev. Tested: Built browser_tests and chrome. R=raymes BUG= Review URL: https://chromiumcodereview.appspot.com/13852040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196194 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper IDL: Check for structs in callbacks.teravest@chromium.org2013-04-241-0/+29
| | | | | | | | | | | | | | | | | | | | | | It's problematic for PNaCl when callbacks take structs that are passed by value; there's not enough type information for matching GCC's calling conventions on the target architecture. This change scans for typedefs that define functions, and scans the arguments to see if any are a struct (or a typedef of a struct). This change whitelists one existing problematic callback. Tested: Verified that exceptions are raised for the one type in the whitelist when the whitelist was empty. Verified that no exceptions are raised with this change as-is. BUG=233439 Review URL: https://chromiumcodereview.appspot.com/13973011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196162 0039d316-1c4b-4281-b951-d872f2087c98
* Remove memory/file handle leak in FileIO_Private::RequestOSFileHandlehamaji@chromium.org2013-04-246-30/+143
| | | | | | | | | BUG=224745 TEST=out/Release/browser_tests --gtest_filter='*PPAPI*FileIO*' Review URL: https://chromiumcodereview.appspot.com/14066015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196061 0039d316-1c4b-4281-b951-d872f2087c98
* Ppapi: Autogenerate thunk for PPB_Zoom_Dev.teravest@chromium.org2013-04-234-10/+19
| | | | | | | | | | | | This also corrects a typo in the argument names for a function. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195857 Review URL: https://chromiumcodereview.appspot.com/14087017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195943 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 195915 "Add Pepper API tests for chrome.socket."ojan@chromium.org2013-04-232-197/+4
| | | | | | | | | | | | | | | | | | | | | This broke the Windows compile, e.g. see http://build.chromium.org/p/chromium.win/builders/Win%20Builder%20%28dbg%29/builds/14437/steps/compile/logs/stdio > Add Pepper API tests for chrome.socket. > > This CL also refactors the gyp definitions for building NaCl testing modules. > > BUG=226303 > TEST=None > > Review URL: https://chromiumcodereview.appspot.com/13811036 TBR=yzshen@chromium.org Review URL: https://codereview.chromium.org/14440003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195938 0039d316-1c4b-4281-b951-d872f2087c98
* PNaCl PPAPI shims: Remove unused InterfaceNeedsWrapper() methodmseaborn@chromium.org2013-04-232-20/+0
| | | | | | | | | BUG=https://code.google.com/p/nativeclient/issues/detail?id=3400 TEST=cd ppapi/generators && ./generator.py Review URL: https://codereview.chromium.org/14120012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195925 0039d316-1c4b-4281-b951-d872f2087c98
* Add an OpenNaClExecutable function to PPB_NaCl_Private.bbudge@chromium.org2013-04-236-27/+150
| | | | | | | | BUG=188757 Review URL: https://chromiumcodereview.appspot.com/12942022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195924 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper API tests for chrome.socket.yzshen@chromium.org2013-04-232-4/+197
| | | | | | | | | | | This CL also refactors the gyp definitions for building NaCl testing modules. BUG=226303 TEST=None Review URL: https://chromiumcodereview.appspot.com/13811036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195915 0039d316-1c4b-4281-b951-d872f2087c98
* PNaCl PPAPI shims: Remove function pointer casts for PPP_* shimsmseaborn@chromium.org2013-04-232-21/+30
| | | | | | | | | | | | | | | | The casts are only necessary for the PPB_* shims, where we need to cast away the "pnaclcall" function attribute. The PPP_* shim functions must match the default calling conventions and so do not have this attribute, so removing the casts here provides a little extra type checking. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3400 TEST=cd ppapi/generators && ./generator.py + compile shims Review URL: https://codereview.chromium.org/13888011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195912 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 195857 "Ppapi: Autogenerate thunk for PPB_Zoom_Dev."teravest@chromium.org2013-04-234-19/+10
| | | | | | | | | | | | | | | | > Ppapi: Autogenerate thunk for PPB_Zoom_Dev. > > This also corrects a typo in the argument names for a function. > > BUG= > > Review URL: https://chromiumcodereview.appspot.com/14087017 TBR=teravest@chromium.org Review URL: https://codereview.chromium.org/14015005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195883 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_AudioTrusted.teravest@chromium.org2013-04-235-27/+34
| | | | | | | | | | | Tested: Built chrome and browser_tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14197010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195864 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Add optional logging to PPB_AudioConfig.teravest@chromium.org2013-04-231-0/+7
| | | | | | | | | | | Tested: Built chrome and browser_tests BUG= Review URL: https://chromiumcodereview.appspot.com/14358009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195863 0039d316-1c4b-4281-b951-d872f2087c98
* Ppapi: Autogenerate thunk for PPB_Zoom_Dev.teravest@chromium.org2013-04-234-10/+19
| | | | | | | | | | This also corrects a typo in the argument names for a function. BUG= Review URL: https://chromiumcodereview.appspot.com/14087017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195857 0039d316-1c4b-4281-b951-d872f2087c98
* Make PPAPI unittests work independent of order run. The issue is that ↵jam@chromium.org2013-04-232-0/+9
| | | | | | | | | | | PpapiGlobals (a singleton) was caching pointers to MessageLoopProxy which change every test. BUG=126514 TBR=brettw Review URL: https://codereview.chromium.org/14390004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195703 0039d316-1c4b-4281-b951-d872f2087c98
* Disables dyncode syscalls for nexes that were produced by the pnacl ↵sehr@chromium.org2013-04-239-5/+29
| | | | | | | | | | translator. This reduces attacker control over the text section, but has the downside of disabling JITs and dynamic linking. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3109 Review URL: https://chromiumcodereview.appspot.com/14127005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195647 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 195344 "Attempting to fix perf regression on Linux of nac..."cdn@chromium.org2013-04-223-6/+20
| | | | | | | | | | | | | | | | | | | | | | Change did not impact perf > Attempting to fix perf regression on Linux of nacl_helper-data/data. > > Revert 195188 - Add interface to set the sub resource crash key from Flash > > BUG=N/A > TEST=N/A > > Review URL: https://chromiumcodereview.appspot.com/14311004 > > TBR=cdn@chromium.org > Review URL: https://codereview.chromium.org/13875006 TBR=rlp@chromium.org Review URL: https://codereview.chromium.org/14411006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195623 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper thunks: Merge '_Private' into overall API.teravest@chromium.org2013-04-227-24/+29
| | | | | | | | | | | | | | | | Dev and Trusted interfaces are already intergrated into APIs in ppapi/thunk. For many APIs, this is already the case. This is needed to autogenerate thunks for some "private" IDL files. Tested: Built chrome and browser_tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14362004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195555 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Add VLOG support for NaCl plugins.teravest@chromium.org2013-04-225-9/+84
| | | | | | | | | | | | | | | | | Previously, VLOG statements would never log anything to the console, since there was no way for state from the "v" and "vmodule" flags to be passed to the untrusted NaCl process. This change passes the values of the "v" and "vmodule" flags to the untrusted process as part of channel creation, and then re-initializes the logging subsystem to parse the new flag values. BUG=181607 R=dmichael Review URL: https://codereview.chromium.org/13866034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195541 0039d316-1c4b-4281-b951-d872f2087c98
* Attempting to fix perf regression on Linux of nacl_helper-data/data.rlp@chromium.org2013-04-203-20/+6
| | | | | | | | | | | | | | Revert 195188 - Add interface to set the sub resource crash key from Flash BUG=N/A TEST=N/A Review URL: https://chromiumcodereview.appspot.com/14311004 TBR=cdn@chromium.org Review URL: https://codereview.chromium.org/13875006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195344 0039d316-1c4b-4281-b951-d872f2087c98
* Hookup RawVarData to SerializedVarraymes@chromium.org2013-04-1912-326/+258
| | | | | | | | | | This hooks up the rewritten RawVarData implementation with SerializedVar. It also fixes tests to make sure that shmem ArrayBuffers are actually tested. Previously, no testing of shmem ArrayBuffers was happening because OS_LINUX is never defined in ppapi/tests and none of the other ArrayBuffer test sizes were above the threshhold to invoke that code path. This CL adds a PPB_Testing function to set the threshhold to a lower value, which permits this code path to be taken while still having fast tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14208016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195189 0039d316-1c4b-4281-b951-d872f2087c98
* Add interface to set the sub resource crash key from Flashcdn@chromium.org2013-04-193-6/+20
| | | | | | | | | BUG=N/A TEST=N/A Review URL: https://chromiumcodereview.appspot.com/14311004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195188 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Simplify idl_thunk implementation.teravest@chromium.org2013-04-1911-122/+125
| | | | | | | | | | | This gets rid of some code duplication, and rewrites functions in thunk files which return void to an alternate, equivalent form. BUG= Review URL: https://codereview.chromium.org/14161017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195180 0039d316-1c4b-4281-b951-d872f2087c98
* Allow having different files for different ISAs in NaCl manifest.halyavin@google.com2013-04-196-16/+62
| | | | | | | | | | | | | | | | | | | | Currently all files must have version for current ISA or NaCl program will not load. I relaxed this condition. This is useful when ARM version of the program is compiled with newlib but x86 version is compiled with glibc. Developer doesn't need to add ARM versions for all *.so libraries in this case. Since not having current architecture for a file is no longer an error, I changed ppapi_bad_manifest_bad_files.nmf to test for a different error in file section. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3049 TEST= run_manifest_browser_test and run_ppapi_bad_browser_test Review URL: https://chromiumcodereview.appspot.com/14069002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195145 0039d316-1c4b-4281-b951-d872f2087c98
* Category group support/Renamings.rubentopo@gmail.com2013-04-191-1/+2
| | | | | | | | | | | | | Related review: https://codereview.chromium.org/11823016/ BUG=168284 TEST=TraceEventTestFixture.Categories, TraceEventTestFixture.CategoryFilter R=nduca Review URL: https://chromiumcodereview.appspot.com/12150004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195109 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper TrueType font API call to enumerate fonts in a given family.bbudge@chromium.org2013-04-1913-39/+328
| | | | | | | | | | | | | | | Adds a new function, GetFontsInFamily, to the PPB_TrueTypeFont_Dev interface. This method returns an array of descriptors for every font in the given family on the host platform. Tests are currently disabled for Windows and Mac, since I got failures on XP and OSX 10.6 when landing them originally. I will re-enable them in follow on patches, which will be easier to land / revert if necessary. The tests pass locally for me on all platforms. BUG=79375,230130 TEST=browser_tests, gtest_filter="PPAPIOutOfProcessTest.TrueTypeFont" Review URL: https://chromiumcodereview.appspot.com/13913006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195082 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 194966 "Revert 194964 "Added images for disabled print bu..."vitalybuka@chromium.org2013-04-181-1/+2
| | | | | | | | | | | | | | | | | > Revert 194964 "Added images for disabled print button for PDF pl..." > > > Added images for disabled print button for PDF plugin. > > BUG=224623 > > Review URL: https://codereview.chromium.org/14113021 > > TBR=vitalybuka@chromium.org > Review URL: https://codereview.chromium.org/14301013 TBR=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/14040007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195007 0039d316-1c4b-4281-b951-d872f2087c98
* Rename pnacl_file_host to nacl_file_host.bbudge@chromium.org2013-04-182-3/+3
| | | | | | | | | | | | This namespace is a logical place to put the OpenNaClExecutable function needed to fast load nexes. Since these aren't pnacl files, we should rename this namespace. BUG=188757 TEST=existing Review URL: https://chromiumcodereview.appspot.com/14352005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194972 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 194964 "Added images for disabled print button for PDF pl..."vitalybuka@chromium.org2013-04-181-1/+0
| | | | | | | | | | | > Added images for disabled print button for PDF plugin. > BUG=224623 > Review URL: https://codereview.chromium.org/14113021 TBR=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/14301013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194966 0039d316-1c4b-4281-b951-d872f2087c98
* Added images for disabled print button for PDF plugin.vitalybuka@chromium.org2013-04-181-0/+1
| | | | | | | BUG=224623 Review URL: https://codereview.chromium.org/14113021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194964 0039d316-1c4b-4281-b951-d872f2087c98
* Generalize Pepper ImageData caching.bbudge@chromium.org2013-04-184-32/+31
| | | | | | | | | | | | This changes some method names and comments for ImageData caching. Other APIs could reuse this machinery. BUG=230980 TEST=none Review URL: https://chromiumcodereview.appspot.com/14126004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194923 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_URL_Loader.teravest@chromium.org2013-04-1810-81/+161
| | | | | | | | | | | | | | | | | | This requires another annotation: "always_set_output_parameters" This annotation ensures that the thunk implementation will zero-out the value of all output parameters on failure. Tested: Built chrome and browser_tests. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194613 Review URL: https://codereview.chromium.org/14007010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194915 0039d316-1c4b-4281-b951-d872f2087c98
* Verify that the image is not empty before calling memset().raphael.kubo.da.costa@intel.com2013-04-181-0/+1
| | | | | | | | | | | | | | | | Building with _FORTIFY_SOURCE=2 and NDEBUG set makes glibc complain that the call to memset() in TestGraphics2D::TestInitToZero() can have a 0-byte size argument. Avoid the warning by asserting that the image does have a valid area before using its height in the call to memset(). R=brettw, yzshen BUG= Review URL: https://chromiumcodereview.appspot.com/14087009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194893 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce RawVarData and associated classes for serializing PP_Varsraymes@chromium.org2013-04-177-8/+1202
| | | | | | | | | | This provides a replacement for the inner class of SerializedVar for serializing a PP_Var. It achieves 2 purposes: 1) it refactors the design of SerializedVar::Inner which was growing increasingly messy (and was going to become nastier) 2) it provides support for serializing/deserializing dictionary and array PP_Vars. To serialize a PP_Var, first the transitive closure of that var is computed (all nodes referenced) and then each var in the transitive closure is written to the message. Some trickiness arises from the fact that a PP_Var can be either a primitive or a reference and references have to be maintained when transmitting over the wire. The comments in the header files provide a description of the approach in more detail. BUG= Review URL: https://codereview.chromium.org/13887007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194629 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 194613 "Pepper: Autogenerate thunk for PPB_URL_Loader."asargent@chromium.org2013-04-1710-161/+81
| | | | | | | | | | | | | | | | | | | | | | > Pepper: Autogenerate thunk for PPB_URL_Loader. > > This requires another annotation: > "always_set_output_parameters" > > This annotation ensures that the thunk implementation will zero-out the value of all output parameters on failure. > > Tested: > Built chrome and browser_tests. > > BUG= > > Review URL: https://codereview.chromium.org/14007010 TBR=teravest@chromium.org Review URL: https://codereview.chromium.org/14195008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194617 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_URL_Loader.teravest@chromium.org2013-04-1710-81/+161
| | | | | | | | | | | | | | | | This requires another annotation: "always_set_output_parameters" This annotation ensures that the thunk implementation will zero-out the value of all output parameters on failure. Tested: Built chrome and browser_tests. BUG= Review URL: https://codereview.chromium.org/14007010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194613 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Enable untrusted hardware exception handling by defaultmseaborn@chromium.org2013-04-171-3/+0
| | | | | | | | | | | | I'm leaving in NaClProcessHost's enable_exception_handling_ field because we will want to disable exception handling under PNaCl. BUG=https://code.google.com/p/nativeclient/issues/detail?id=2401 TEST=inbrowser_test_runner in nacl_integration Review URL: https://codereview.chromium.org/14122010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194537 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_TrueTypeFont.teravest@chromium.org2013-04-1612-49/+78
| | | | | | | | | | | This makes a few changes to IDL annotations: * 'singleton_resource' is now 'singleton' and can be per-function or per-interface. * There is a new 'API' annotation that describes when a specific API should be used for a function. * There is a 'thunk_include' annotation for when a header file must be included in the thunk output, but we can't guess it. Review URL: https://codereview.chromium.org/13820003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194445 0039d316-1c4b-4281-b951-d872f2087c98