summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Don't send ReleaseResource notifications to the browser for fonts. They havebrettw@chromium.org2011-05-111-2/+4
| | | | | | | no corresponding host resource so this would spew a lot of errors. Review URL: http://codereview.chromium.org/6982027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84997 0039d316-1c4b-4281-b951-d872f2087c98
* Update VideoDecode PPAPI structs to be consistent with media structures, part 1vrk@google.com2011-05-105-178/+96
| | | | | | | | | | | | | | This patch fixes some of the inconsistencies between the VideoDecode structs in the ppapi namespace and their wrappers in the media namespace. It also implements some of the hooks to pass messages to and from the browser and plugin. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6901036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84871 0039d316-1c4b-4281-b951-d872f2087c98
* Make the Pepper proxy support in-process font rendering.brettw@chromium.org2011-05-1034-494/+705
| | | | | | | | | | | | | This implements a WebKit thread in the PPAPI plugin process so we can do the font calls without IPC. The existing font support was refactored into a virtual class (to prevent PPAPI from depending on WebKit and creating a circular GYP dependency). This moves the renderer sandbox support into content/common so that it can be used by the PPAPI process. Review URL: http://codereview.chromium.org/6981001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84856 0039d316-1c4b-4281-b951-d872f2087c98
* Keep a reference to the module when handling PPB_Flash::Navigatepiman@google.com2011-05-103-8/+12
| | | | | | | | | | | | | | This is needed because Navigate can end up destroying the last instance, but the dispatcher is still needed to send the reply. This also cleans up a typo in a safeguard, and an incorrect assumption. BUG=chromium-os:15044 TEST=http://nmd.mcd06514.orl.wayport.net/index.adp?MacAddr=48%3a5D%3a60%3a77%3a53%3a2A&IpAddr=192%2e168%2e6%2e84&vsgpId=&vsgId=60982&UserAgent=&ProxyHost= Review URL: http://codereview.chromium.org/6999006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84751 0039d316-1c4b-4281-b951-d872f2087c98
* Merge gpu_trace_event back into base/debug/trace_event.scheib@chromium.org2011-05-102-14/+14
| | | | | | | | | | | | | | | | | | | | | | | Initial land attempt at http://codereview.chromium.org/6551019/ gpu_trace_event fork at http://codereview.chromium.org/6691013 - gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug - Unit Tests implemented for trace_event - gpu_common library removed (was added only for gpu_trace_event) - Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019) - GPU trace calls renamed to new calls. - Tracing switch removed from test_shell, as linux log file support removed. BUG=79509 TEST=trace_event_win_unittest and about:gpu Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84486 Review URL: http://codereview.chromium.org/6862002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84739 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ppapi proxycpu@chromium.org2011-05-092-4/+9
| | | | | | | | | | - Originally part of brettw's fix, here so we unblock me. BUG=none TEST= out-of-process pepper works. Review URL: http://codereview.chromium.org/6994001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84710 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of Flush() in ppb_graphics_2d_thunk.cc returns ↵bbudge@google.com2011-05-091-1/+1
| | | | | | | | PP_ERROR_BADARGUMENT instead of PP_ERROR_BADRESOURCE when given an invalid resource. Review URL: http://codereview.chromium.org/6985003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84701 0039d316-1c4b-4281-b951-d872f2087c98
* ppapi: remove accidental #include of a .cc fileevan@chromium.org2011-05-091-1/+0
| | | | | | Review URL: http://codereview.chromium.org/6975007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84684 0039d316-1c4b-4281-b951-d872f2087c98
* This implements the new system for Graphics2D only.brettw@chromium.org2011-05-0628-368/+1056
| | | | | | | | | | | This works by adding a new thunk layer that will forward to an "API" that's either per-instance (function APIs) or per-resource (resource APIs). The proxying and such is then implemented in terms of this C++ API. Ideally the trackers of the PP_Resource/PP_Instance -> object mapping would be shared between the plugin and renderer processes. To keep this patch under control, I did this as a virtual base class which is implemented by ppapi::proxy::PluginResourceTracker and webkit::ppapi::ResourceTracker. Later, the functionality of these objects should be shared in a common tracker class. Still to do it a lot of cleanup and merging of things. Also, the namespaces are a bit out of control. Review URL: http://codereview.chromium.org/6905088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84519 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84486 - Merge gpu_trace_event back into ↵scheib@chromium.org2011-05-062-14/+14
| | | | | | | | | base/debug/trace_event.Initial land attempt at http://codereview.chromium.org/6551019/gpu_trace_event fork at http://codereview.chromium.org/6691013- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug- Unit Tests implemented for trace_event- gpu_common library removed (was added only for gpu_trace_event)- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)- GPU trace calls renamed to new calls.- Tracing switch removed from test_shell, as linux log file support removed.BUG=79509TEST=trace_event_win_unittest and about:gpuCommitted: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284Review URL: http://codereview.chromium.org/6862002 TBR=scheib@chromium.org Review URL: http://codereview.chromium.org/6955006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84494 0039d316-1c4b-4281-b951-d872f2087c98
* Merge gpu_trace_event back into base/debug/trace_event.scheib@chromium.org2011-05-062-14/+14
| | | | | | | | | | | | | | | | | | | | | Initial land attempt at http://codereview.chromium.org/6551019/ gpu_trace_event fork at http://codereview.chromium.org/6691013 - gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug - Unit Tests implemented for trace_event - gpu_common library removed (was added only for gpu_trace_event) - Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019) - GPU trace calls renamed to new calls. - Tracing switch removed from test_shell, as linux log file support removed. BUG=79509 TEST=trace_event_win_unittest and about:gpu Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284 Review URL: http://codereview.chromium.org/6862002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84486 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84284 - Merge gpu_trace_event back into ↵scheib@chromium.org2011-05-052-14/+14
| | | | | | | | | base/debug/trace_event.Initial land attempt at http://codereview.chromium.org/6551019/gpu_trace_event fork at http://codereview.chromium.org/6691013- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug- Unit Tests implemented for trace_event- gpu_common library removed (was added only for gpu_trace_event)- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)- GPU trace calls renamed to new calls.- Tracing switch removed from test_shell, as linux log file support removed.BUG=79509TEST=trace_event_win_unittest and about:gpuReview URL: http://codereview.chromium.org/6862002 TBR=scheib@chromium.org Review URL: http://codereview.chromium.org/6933035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84293 0039d316-1c4b-4281-b951-d872f2087c98
* Merge gpu_trace_event back into base/debug/trace_event.scheib@chromium.org2011-05-052-14/+14
| | | | | | | | | | | | | | | | | | | Initial land attempt at http://codereview.chromium.org/6551019/ gpu_trace_event fork at http://codereview.chromium.org/6691013 - gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug - Unit Tests implemented for trace_event - gpu_common library removed (was added only for gpu_trace_event) - Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019) - GPU trace calls renamed to new calls. - Tracing switch removed from test_shell, as linux log file support removed. BUG=79509 TEST=trace_event_win_unittest and about:gpu Review URL: http://codereview.chromium.org/6862002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84284 0039d316-1c4b-4281-b951-d872f2087c98
* Move crypto_helpers from sync to cryptoqsr@google.com2011-05-051-8/+1
| | | | | | | | | | | | | crypto_helpers only depends on resources in base and is used by sync and password_manager. BUG= TEST= Review URL: http://codereview.chromium.org/6873156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84223 0039d316-1c4b-4281-b951-d872f2087c98
* Pass fullscreen state along with DidChangeView to avoid sync messagespiman@google.com2011-05-046-26/+27
| | | | | | | | | BUG=none TEST=NYTimes with Pepper Flash, check that video still plays while scrolling. Review URL: http://codereview.chromium.org/6923001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84112 0039d316-1c4b-4281-b951-d872f2087c98
* IDL cleanup, added AST node, namespace, StageResultnoelallen@google.com2011-05-045-48/+264
| | | | | | | | | | | | | | Added the ability to track namespace within the tree to look for references. Added a BuildTree and Resolve step. Added a StageResult object to return partial trees and error counts. Built test search into parser so now test files no longer need to be specified on the command line. BUG=77551 TEST= python idl_parser.py --test Review URL: http://codereview.chromium.org/6903097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84086 0039d316-1c4b-4281-b951-d872f2087c98
* Defer asynchronous loading when the buffer in PPB_URLLoader_Impl exceeds an ↵ddorwin@chromium.org2011-05-042-1/+36
| | | | | | | | | | | optionally-specified threshold and re-enable it when the buffer drops below a lower threshold. BUG=80684 TEST=Set the thresholds to 4 MB and 2 MB, respectively from a plugin then download a large file (> 200 MB). Observe that the renderer/plugin process memory usage in Task Manager does not exceed ~100MB and that network traffic drops to 0 then picks up again briefly after 10 MB are used. Review URL: http://codereview.chromium.org/6923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84071 0039d316-1c4b-4281-b951-d872f2087c98
* Properly set the testing_interface_ member. Previously this was not beingbrettw@chromium.org2011-05-0410-50/+26
| | | | | | | | | | | | initialized in the Graphics2D test. I did some refactoring to make one for all tests and have a consistent way to initialize it for the tests that need it, which saved some duplicated code. TEST=this is BUG=81324 Review URL: http://codereview.chromium.org/6914022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84059 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes the shared memory failure in OOO mode for the pepper example plugincpu@chromium.org2011-05-041-5/+16
| | | | | | | | | | | - We need to properly duplicate the memory section handle - Not clear if we should close the source handle, gut feeling says no BUG=none TEST= example plugin draws on windows with --ppapi-out-of-process --no-sandbox Review URL: http://codereview.chromium.org/6911039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84025 0039d316-1c4b-4281-b951-d872f2087c98
* Instrument Pepper IPCs with the tracing stuffpiman@google.com2011-05-032-0/+14
| | | | | | | | | BUG=none TEST=about:gpu with Pepper Flash Review URL: http://codereview.chromium.org/6913019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83938 0039d316-1c4b-4281-b951-d872f2087c98
* Add a way to pass information to Pepper Flash from the command-line (e.g., ↵viettrungluu@chromium.org2011-05-035-2/+99
| | | | | | | | | | | | | | for debugging). This also adds a |ProxyModule| singleton object to the Pepper proxy, which we may eventually use for communicating directly with the browser. BUG=none TEST=none Review URL: http://codereview.chromium.org/6910007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83932 0039d316-1c4b-4281-b951-d872f2087c98
* IDL cleanup, added IDLOutFilenoelallen@google.com2011-05-031-0/+115
| | | | | | | | | | | | | Added the ability to create output objects for storing the output until the object is closed. By default, closing the object will not write or modify the timestamp if a file with identical data already exists. BUG=77551 TEST= python idl_outfile.py Review URL: http://codereview.chromium.org/6901108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83837 0039d316-1c4b-4281-b951-d872f2087c98
* Protect against a NULL dispatcherpiman@google.com2011-05-021-12/+18
| | | | | | | | | BUG=14338 TEST=none Review URL: http://codereview.chromium.org/6903158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83759 0039d316-1c4b-4281-b951-d872f2087c98
* Make FSP work for peppercpu@chromium.org2011-05-021-3/+26
| | | | | | | | | | Basically cook gettimeofday for win32 BUG=none TEST=none Review URL: http://codereview.chromium.org/6880334 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83757 0039d316-1c4b-4281-b951-d872f2087c98
* Switch IPC::ChannelProxy to use MessageLoopProxy instead of MessageLoop. ↵jam@chromium.org2011-05-024-13/+11
| | | | | | | | This allows us to remove usage of the IOThread object, and generally makes IPC::ChannelProxy more robust for future uses. Review URL: http://codereview.chromium.org/6901146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83741 0039d316-1c4b-4281-b951-d872f2087c98
* Implement PseudoTCP support in P2P Transport Pepper API.sergeyu@chromium.org2011-05-024-22/+100
| | | | | | | | | BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/6893101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83736 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/6893138jond@google.com2011-05-022-6/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83721 0039d316-1c4b-4281-b951-d872f2087c98
* Add UMA private PPAPI interface for UMA logging from NaCl pluginelijahtaylor@google.com2011-04-295-0/+135
| | | | | | | | BUG= none TEST= manual test of ppapi_tests, run UMA tests Review URL: http://codereview.chromium.org/6903084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83622 0039d316-1c4b-4281-b951-d872f2087c98
* Clarify PREMUL suffix in description of image data formats.nfullagar@google.com2011-04-291-1/+19
| | | | | | | | TEST=try bot (this is a comment change) BUG=none Review URL: http://codereview.chromium.org/6905120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83608 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/6883277jond@google.com2011-04-293-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83596 0039d316-1c4b-4281-b951-d872f2087c98
* Added removefilesCPP.sh to remove all unneeded html files generated by ↵jond@google.com2011-04-292-18/+36
| | | | | | | | Doxygen. Removing three files not used by CPP doxygen process. Review URL: http://codereview.chromium.org/6903110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83587 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper video layer APIhclam@chromium.org2011-04-294-1/+194
| | | | | | | | | | | | | | Define the Pepper Video Layer API to enhance video rendering performance. This video layer will have a corresponding LayerChromium in WebKit which the compositor can use directly. The objective is to save the extra operation to write to PPB_Surface3D which saves one memory read/write routine in the GPU. BUG=None TEST=None Review URL: http://codereview.chromium.org/6902048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83546 0039d316-1c4b-4281-b951-d872f2087c98
* Adding file to delete unused Doxygen files. jond@google.com2011-04-291-0/+41
| | | | | | Review URL: http://codereview.chromium.org/6901123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83525 0039d316-1c4b-4281-b951-d872f2087c98
* Rework FlushSync to return early if commands have been processed since the ↵piman@google.com2011-04-284-14/+48
| | | | | | | | | | | last update BUG=80480 TEST= Review URL: http://codereview.chromium.org/6883179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83442 0039d316-1c4b-4281-b951-d872f2087c98
* We now have documentation directories specific to c and cpp (under these two ↵jond@google.com2011-04-289-2050/+0
| | | | | | | | directories) Review URL: http://codereview.chromium.org/6903108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83395 0039d316-1c4b-4281-b951-d872f2087c98
* Removing a couple unused filesjond@google.com2011-04-282-32/+0
| | | | | | Review URL: http://codereview.chromium.org/6880279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83392 0039d316-1c4b-4281-b951-d872f2087c98
* Minor fixes to enable manual running of all PPAPI tests ("Run all tests"cstefansen@google.com2011-04-286-34/+44
| | | | | | | | | | | | | | | button was broken). Add missing instance_ parameter to constructors in several places. This fixes most of the URLLoader tests. DirectoryReader still fails, but at a later point. More CLs to follow. The nacl.scons is not currently active, as it is commented out in the NaCl repository and not used in the Chrome repo. A forthcoming CL will fix this. TEST= Follow instructions at https://sites.google.com/a/chromium.org/dev/developers/design-documents/pepper-plugin-implementation BUG= http://code.google.com/p/nativeclient/issues/detail?id=1671 Review URL: http://codereview.chromium.org/6904071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83375 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Adjust dependencies to build with base.dllrvargas@google.com2011-04-281-0/+1
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6883205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83269 0039d316-1c4b-4281-b951-d872f2087c98
* Add version-specific defines for each C interface.brettw@chromium.org2011-04-2740-40/+86
| | | | | | | | | | | This explicitly does not change any of the version numbers, and just makes the name of the define string match the current version number. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6893022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83176 0039d316-1c4b-4281-b951-d872f2087c98
* Trailing commas in PPB_PDF enums cause compile errors in Native Client ↵bbudge@google.com2011-04-271-2/+2
| | | | | | | | | | toolchain. BUG=none TEST=none Review URL: http://codereview.chromium.org/6905038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83174 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Adjust dependencies to build with base.dllrvargas@google.com2011-04-261-1/+4
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6894040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83082 0039d316-1c4b-4281-b951-d872f2087c98
* IDL Cleanup - add logger, and nodenoelallen@google.com2011-04-264-134/+248
| | | | | | | | | | | Cleanup parser by splitting out logging function and an AST node object. Cleanup use of 'lineno' by starting the lexer on line 1 instead of line 0. BUG= 77551 TEST= python idl_parser.py --test test_parser/*.idl Review URL: http://codereview.chromium.org/6905006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83049 0039d316-1c4b-4281-b951-d872f2087c98
* Revert Pepper Key event "USB code" CL.wez@chromium.org2011-04-263-36/+4
| | | | | | | | | | | | | | Revert "Expose scancodes to PP_InputEvent_Key events that are independent of the input language/layout in effect, i.e. that represent the physical key pressed, independent of its meaning in the current context." This reverts commit 35b9f7f01686f51142d8d5b16a88d04575113029. BUG= TEST= Review URL: http://codereview.chromium.org/6902020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83034 0039d316-1c4b-4281-b951-d872f2087c98
* Fix uninitialized variable.piman@google.com2011-04-261-1/+2
| | | | | | | | | BUG=chromium-os:14517 TEST=myspace.com with pepper flash. Click on login. Observe no plugin crash. Review URL: http://codereview.chromium.org/6904012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82954 0039d316-1c4b-4281-b951-d872f2087c98
* Delete a few unused functions.thakis@chromium.org2011-04-252-14/+0
| | | | | | | | | BUG=none TEST=Compiles. Review URL: http://codereview.chromium.org/6880164 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82884 0039d316-1c4b-4281-b951-d872f2087c98
* Delay release of object Varspiman@google.com2011-04-222-6/+37
| | | | | | | | | BUG=chromium-os:14397 TEST=grooveshark Review URL: http://codereview.chromium.org/6900009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82667 0039d316-1c4b-4281-b951-d872f2087c98
* Actually hook up the Pepper time message.brettw@chromium.org2011-04-221-0/+2
| | | | | | | TEST=manual Review URL: http://codereview.chromium.org/6898006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82650 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy time zone requests to the browser. This is because the current codebrettw@chromium.org2011-04-214-17/+31
| | | | | | | | | | can't run in the sandbox on Linux. TEST=manual BUG=80176 Review URL: http://codereview.chromium.org/6891001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82575 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Enable custom content-transfer-encoding header to be set in URL ↵viettrungluu@chromium.org2011-04-212-23/+45
| | | | | | | | | | | | | requests. Such URL requests can be made by a trusted loader. BUG=none TEST=manual Review URL: http://codereview.chromium.org/6882125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82541 0039d316-1c4b-4281-b951-d872f2087c98
* Properly serialize FileRef_CreateInfo vectors. This has the same serializationbrettw@chromium.org2011-04-212-35/+89
| | | | | | | | | | problem as vectors of SerializedVars. TEST=manual BUG=none Review URL: http://codereview.chromium.org/6879101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82507 0039d316-1c4b-4281-b951-d872f2087c98