summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Convert PP_rect to use new IPC generation.tsepez@chromium.org2011-04-203-84/+18
| | | | | | Review URL: http://codereview.chromium.org/6882088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82350 0039d316-1c4b-4281-b951-d872f2087c98
* IDL AST cleanupnoelallen@google.com2011-04-201-54/+106
| | | | | | | | | | | | Remove TestNode and replace with a IDLNode and IDLAttribute. This change more directly maps the parse phase into a tree of dictionaries to make processing the AST easier. TEST= python idl_parse.py --test test_parser/*.idl BUG= 77551 Review URL: http://codereview.chromium.org/6878062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82328 0039d316-1c4b-4281-b951-d872f2087c98
* Wrap the p2p transport API in a compile time flag.satish@chromium.org2011-04-202-6/+20
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6882021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82295 0039d316-1c4b-4281-b951-d872f2087c98
* Add an initial crypto interface to fill a given buffer with random data. Thisbrettw@chromium.org2011-04-209-0/+164
| | | | | | | | | | has the same implementation as the WebKit one on ChromeOS. TEST=none BUG=none Review URL: http://codereview.chromium.org/6880053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82291 0039d316-1c4b-4281-b951-d872f2087c98
* Make AddRefObject a sync message to avoid a race condition between (1)brettw@chromium.org2011-04-196-4/+123
| | | | | | | | | | | | returning to the browser from a sync function that passes a var, and (2) the AddRef if the plugin wants to take a reference to it while handling the sync function. TEST=none BUG=79813 Review URL: http://codereview.chromium.org/6882027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82187 0039d316-1c4b-4281-b951-d872f2087c98
* Add a function to the Flash interface to get the current time zone offset.brettw@chromium.org2011-04-192-1/+23
| | | | | | | | TEST=manual BUG=none Review URL: http://codereview.chromium.org/6881059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82184 0039d316-1c4b-4281-b951-d872f2087c98
* Added/modified documentation for Doxygenjond@google.com2011-04-193-129/+327
| | | | | | Review URL: http://codereview.chromium.org/6532065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82116 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Instance_Trusted to Instance_Private, wire it up in Chrome.dmichael@chromium.org2011-04-1910-28/+167
| | | | | | | | | | | Add C++ InstancePrivate. BUG=None TEST=PPAPI tests Review URL: http://codereview.chromium.org/6871040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82104 0039d316-1c4b-4281-b951-d872f2087c98