| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Several APIs are now unused after turning on OOP PDF. This removes:
Selection_Dev
Widget_Dev
Scrollbar_Dev
Zoom_Dev
These APIs only work in-process so we can be sure they aren't used by existing plugins (except possibly the NaCl plugin but they aren't used by that either).
BUG=303491
Review URL: https://codereview.chromium.org/1161563002
Cr-Commit-Position: refs/heads/master@{#331904}
|
|
|
|
|
|
|
|
|
|
| |
There are a bunch of PPB_PDF functions that are now unused. Delete them.
BUG=303491
Review URL: https://codereview.chromium.org/1154313002
Cr-Commit-Position: refs/heads/master@{#331899}
|
|
|
|
|
|
|
|
|
|
|
| |
Just noticed that some single-arg ctors in the codebase missed the explicit qualifier.
BUG=
TBR=armansito
Review URL: https://codereview.chromium.org/1148943005
Cr-Commit-Position: refs/heads/master@{#331595}
|
|
|
|
|
|
|
|
| |
BUG=none
Review URL: https://codereview.chromium.org/1161613003
Cr-Commit-Position: refs/heads/master@{#331410}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We previously reported hardware acceleration support using an enum.
Make this simpler by reporting it with a boolean field.
Now if a profile is supported both in hardware and software, it will be
reported with 2 different PP_VideoProfileDescription.
BUG=455409
TEST=compile a NaCl app with the 0.2 api and test it against chromium before and after this patch
Review URL: https://codereview.chromium.org/1089223002
Cr-Commit-Position: refs/heads/master@{#328442}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently initialization happens asynchronously, but as Initialize()
has no way to report success/failure, subsequent calls need to check
that it succeeded. This change passes a promise to Initialize() so
that the CDM can report success/failure properly.
BUG=407435,469003
TEST=EME tests pass
Review URL: https://codereview.chromium.org/1102363005
Cr-Commit-Position: refs/heads/master@{#328418}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generated using sed:
OnSessionError -> OnLegacySessionError
SessionErrorCB -> LegacySessionErrorCB
session_error_cb -> legacy_session_error_cb
TBR=dcheng@chromium.org,isherman@chromium.org
BUG=448818
Review URL: https://codereview.chromium.org/1042273004
Cr-Commit-Position: refs/heads/master@{#323442}
|
|
|
|
|
|
|
|
|
| |
BUG=469228
TEST=EME layout tests pass
Review URL: https://codereview.chromium.org/1021403002
Cr-Commit-Position: refs/heads/master@{#323403}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change introduces two new values to be used with SetOption(), to
set up the behavior of the multicast packets:
- PP_UDPSOCKET_OPTION_MULTICAST_LOOP (Boolean)
Whether packets sent from the host to the multicast group will be
looped back to the host or not.
- PP_UDPSOCKET_OPTION_MULTICAST_TTL (Integer)
Sets time-to-live of multicast packets sent to the multicast group.
It also introduces two new functions JoinGroup() and LeaveGroup(), both
of them expecting the address of the multicast group as specified by
the PPB_NetAddress API. These two functions should only be called after
the socket is bound.
This CL adds specific test cases to browser_tests in order to exercise
the different versions of the SetOption function. For this reason, the
PPAPI UDPSocket tests were split into multiple tests, instead of a
single one that enclosed all of them. This way we get clearer
information about the results of each test.
BUG=430939
TEST=browser_tests
NOPRESUBMIT=true
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
Review URL: https://codereview.chromium.org/704133005
Cr-Commit-Position: refs/heads/master@{#320504}
|
|
|
|
|
|
|
|
|
|
|
|
| |
configuration disallows access to them.
Based on the configured value of distinctiveIdentifier and persistentState, we compute permission bits and pass them through PPAPI to the CDM adapter. This enables us to enforce 'not-allowed' configs even when user permission has been granted.
BUG=487452
Review URL: https://codereview.chromium.org/985113003
Cr-Commit-Position: refs/heads/master@{#319798}
|
|
|
|
|
|
|
|
|
| |
BUG=387547
TEST=Call the API from a trusted plugin.
Review URL: https://codereview.chromium.org/929053003
Cr-Commit-Position: refs/heads/master@{#317271}
|
|
|
|
|
|
|
|
|
| |
BUG=387547
TEST=Call the API from a trusted plugin and print all video capture formats.
Review URL: https://codereview.chromium.org/911623002
Cr-Commit-Position: refs/heads/master@{#317230}
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Support PPB_CameraCapabilities_Private.GetSupportedPreviewSizes()
2. Implement basic skeleton of image capture PPAPI
BUG=387547
TEST=Call the API from a trusted plugin and print all preview
sizes.
Review URL: https://codereview.chromium.org/848863002
Cr-Commit-Position: refs/heads/master@{#316552}
|
|
|
|
|
|
|
|
|
|
|
|
| |
This puts BUILD files in the corresponding directories without duplicate names.
Adds a template for ppapi examples and writes the build for one example. I only did one at this point to test the infrastructure without making this patch too large.
NOPRESUBMIT=true
Review URL: https://codereview.chromium.org/921953002
Cr-Commit-Position: refs/heads/master@{#316352}
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also removed a few extra "-Wpedantic" warnings in ppapi_cpp. I don't see a good justification why this should be different than the rest of the project.
Fix GN error in media.
NOPRESUBMIT=true
Review URL: https://codereview.chromium.org/915403003
Cr-Commit-Position: refs/heads/master@{#316289}
|
|
|
|
|
|
|
|
|
| |
BUG=455409
TEST=none
Review URL: https://codereview.chromium.org/887223009
Cr-Commit-Position: refs/heads/master@{#315007}
|
|
|
|
|
|
|
|
|
|
| |
Also changes copyright notices to the new style.
BUG=455409
Review URL: https://codereview.chromium.org/885803003
Cr-Commit-Position: refs/heads/master@{#314893}
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Remove ppb_image_capture_config_private.
2. Remove PPB_ImageCapture_Private.{Set|Get}Config
3. Remove PPB_ImageCapture_Private.CaptureStillImage
BUG=387547
TEST=None
Review URL: https://codereview.chromium.org/884483007
Cr-Commit-Position: refs/heads/master@{#314834}
|
|
|
|
|
|
|
|
| |
BUG=455409
Review URL: https://codereview.chromium.org/901733002
Cr-Commit-Position: refs/heads/master@{#314696}
|
|
|
|
|
|
|
|
|
|
|
| |
Since this bumps the milestone definition in pp_macros.h
NOPRESUBMIT=true
BUG=417589
Review URL: https://codereview.chromium.org/842293003
Cr-Commit-Position: refs/heads/master@{#314645}
|
|
|
|
|
|
|
|
|
|
|
| |
Web session ID was introduced when we also have integer session IDs. Now we
have removed integer session IDs and we don't need the "web" prefix any more.
TEST=Renaming only.
Review URL: https://codereview.chromium.org/858313002
Cr-Commit-Position: refs/heads/master@{#312661}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the implementation to allow multiple SendTo calls to be in
flight at the same time. The plugin can now call SendTo multiple times
before getting PP_ERROR_INPROGRESS. The number of calls is an
implementation detail. Plugins that want maximum performance should
call SendTo continuously until they get an in progress result, then wait
for one or more previous calls to complete before calling Send again.
The resource is changed to queue SendTo callbacks. It checks that the
plugin stays within the limit, which is currently 8.
The browser message filter is changed to call SendTo until the socket is
busy, then queue the sends. It checks that the plugin can't grow the
queue past the limit. In theory, a plugin could go over the limit by
bypassing the resource checks but not saturating the socket. This is
not really a problem.
Adds a test to send multiple messages in the "optional callbacks" case.
BUG=154338
Review URL: https://codereview.chromium.org/632113003
Cr-Commit-Position: refs/heads/master@{#311563}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recent changes to CDM_7 removed |destination_url| as it is no longer
used in the EME spec. However legacy applications using the prefixed
EME API depend on it, so adding it back in so that it is available
to those applications.
BUG=448242
TEST=existing EME tests pass + Play movies play
Review URL: https://codereview.chromium.org/813683005
Cr-Commit-Position: refs/heads/master@{#311371}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for CDM_7 and update Pepper to support the updated
interface.
Changes:
- Rename CreateSession() to CreateSessionAndGenerateRequest()
with reordered parameter list.
- Add |session_type| to LoadSession().
- OnSessionMessage() adds |message_type|, removes |destination_url|.
- OnSessionKeysChange() adds |key_information|.
- Remove GetUsableKeyIds()
- Remove OnPromiseResolvedWithKeyIds()
- Remove OnSessionReady().
BUG=428384
TEST=existing EME test cases pass
Review URL: https://codereview.chromium.org/811923002
Cr-Commit-Position: refs/heads/master@{#310615}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently PPAPI has timing limitation for sockets' SetOption.
NODELAY, and BROADCAST need to be before Connect() or Bind(),
while RCVBUF_SIZE and SNFBUF_SIZE need to be after it.
This CL removes such a limitation.
Along with the change, pepper_udp_socket_message_filter starts to use UDPSocket instead of UDPServerSocket, so that the implementation direction gets closer to TCP message filter a little bit.
BUG=425563, 420697
TEST=Ran trybots.
Review URL: https://codereview.chromium.org/690903002
Cr-Commit-Position: refs/heads/master@{#307867}
|
|
|
|
|
|
|
|
| |
BUG=none
Review URL: https://codereview.chromium.org/752033007
Cr-Commit-Position: refs/heads/master@{#305861}
|
|
|
|
|
|
|
|
| |
BUG=421063
Review URL: https://codereview.chromium.org/718453003
Cr-Commit-Position: refs/heads/master@{#304223}
|
|
|
|
|
|
|
|
|
|
| |
renderer process.
BUG=421063
Review URL: https://codereview.chromium.org/705623002
Cr-Commit-Position: refs/heads/master@{#304020}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds an out parameter to GetPicture to return the subrectangle of
the picture texture that contains the picture.
Adds a new 0.3 version of PPB_VideoDecoder.
BUG=429071
NOPRESUBMIT=true
R=binji@chromium.org, dmichael@chromium.org, mpearson@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/703753002
Cr-Commit-Position: refs/heads/master@{#303102}
|
|
|
|
|
|
|
|
|
|
|
|
| |
from about 4ms to 0.7ms for each 720p frame.
If the current video frame is of the same size as the previous frame, reuse the shared memory and overwrite the previous frame. Pepper does not hold onto a frame after it has been processed, and it indicates processing is done by sending a new request, so overwriting the previous frame should be fine.
BUG=423365
Review URL: https://codereview.chromium.org/653873003
Cr-Commit-Position: refs/heads/master@{#301657}
|
|
|
|
|
|
|
|
| |
BUG=367896
Review URL: https://codereview.chromium.org/318763003
Cr-Commit-Position: refs/heads/master@{#295495}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To support CDM_6, make the following changes:
- add SetServerCertificate
- add GetUsableKeyIds
- rename ReleaseSession to CloseSession
- add RemoveSession
- add SessionKeysChange event
- add SessionExpirationChange event
Includes changes to cdm_adapter for the new functionality. Changes to
use these new interfaces in blink in a future CL.
BUG=358271
TEST=existing EME tests still pass + manual testing
Review URL: https://codereview.chromium.org/496143002
Cr-Commit-Position: refs/heads/master@{#293672}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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}
|
|
|
|
|
|
|
|
| |
TBR=binji@chromium.org
Review URL: https://codereview.chromium.org/498123002
Cr-Commit-Position: refs/heads/master@{#292086}
|
|
|
|
|
|
|
|
|
|
|
| |
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}
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
API proposal:
https://docs.google.com/a/chromium.org/document/d/1deeCrsvT9xA77UP4yWMhqbHgS3FvYCTF_8meIMQRrDo/edit#
BUG=387547
TEST=Build chrome, run PPAPITest, and run an app that uses ppapi.
Review URL: https://codereview.chromium.org/391323002
Cr-Commit-Position: refs/heads/master@{#290186}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290186 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=403504
Review URL: https://codereview.chromium.org/475123003
Cr-Commit-Position: refs/heads/master@{#290016}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290016 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change links the trusted plugin into the renderer, making it easier for
the trusted plugin to use libraries in Chromium. This removes the
ppGoogleNaClPlugin loadable module file on various platforms.
This is part of a larger effort to remove the "trusted plugin" used to
bootstrap NaCl plugins.
It introduces an "internal_module" interface for setting the value returned by
pp::Module::Get(). This is so that both the trusted plugin and the remoting
plugin can be linked into the renderer. However, I believe this is safe because
the trusted plugin runs in-process and the remoting plugin runs out-of-process.
BUG=394497
R=dmichael@chromium.org, mseaborn@chromium.org, phajdan.jr@chromium.org, thestig@chromium.org, wez@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287071
Review URL: https://codereview.chromium.org/397243004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287580 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
The reverted change broke the ChromeOS builder, which depends on the loadable
module file existing. Argh.
This reverts commit b0b91c06bc2ed6afc0611f00d68f72b19dd06d26.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287090 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change links the trusted plugin into the renderer, making it easier for
the trusted plugin to use libraries in Chromium. This removes the
ppGoogleNaClPlugin loadable module file on various platforms.
This is part of a larger effort to remove the "trusted plugin" used to
bootstrap NaCl plugins.
It introduces an "internal_module" interface for setting the value returned by
pp::Module::Get(). This is so that both the trusted plugin and the remoting
plugin can be linked into the renderer. However, I believe this is safe because
the trusted plugin runs in-process and the remoting plugin runs out-of-process.
BUG=394497
R=dmichael@chromium.org, mseaborn@chromium.org, phajdan.jr@chromium.org, thestig@chromium.org, wez@chromium.org
Review URL: https://codereview.chromium.org/397243004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287071 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
textures.
Reset now will allow plugin to call RecyclePicture. The plugin must recycle any
texture it receives now. This makes plugin code simpler, since it can treat all
textures it receives in the same way (no special Reset handling).
Also fix a bug where Reset didn't return textures to the hardware decoder, which
already has this behavior.
BUG=281689
Review URL: https://codereview.chromium.org/390213002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283483 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This contains fixes for the following sorts of issues:
* Assignment inside conditional
* Possibly-uninitialized local variable
* Signedness mismatch
This also contains a small number of other cleanups/simplifications to nearby
code.
BUG=81439
TEST=none
R=teravest@chromium.org
Review URL: https://codereview.chromium.org/375133003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282133 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a function to PPB_View which allows plugins to know the scroll offset
of the page when they are in view. This is useful for OOP PDF which uses the
scroll offset of the window it is contained in to determine the document's
scroll location. A web page can send scroll location via postMessage but
this is slow. Sending the offset directly via view messages is much faster
and seems reasonable.
We don't send the scroll offset in the cases where the plugin is off screen
to avoid any more additional IPC traffic than what currently exists.
BUG=303491
Review URL: https://codereview.chromium.org/329033003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278236 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=366304
TEST=None
Review URL: https://codereview.chromium.org/314823002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277513 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that the EME-WD spec has changed to specify promises, implement
them on the Chromium side. They currently get converted back to
events before passing them to blink:: until the blink interface gets
changed.
Additional changes in this CL:
1. Pass a reference to the promise though PPAPI.
2. Roll DEPS for CDM.h to include CDM_5.
3. Update cdm_adapter to use CDM_5 (in addition to existing CDM_4).
4. Change External Clear Key to use CDM_5.
5. Since CDM_5 references sessions by the actual session id (a string,
web_session_id), switch to using it rather than the previously used
session_id (which is an integer, and used as a reference).
BUG=358271
TEST=all existing encrypted media layout and browser tests pass
Review URL: https://codereview.chromium.org/265993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275656 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
API Proposal http://goo.gl/V7xcu3
BUG=374383
R=binji@chromium.org, dmichael@chromium.org, mpearson@chromium.org, piman@chromium.org, raymes@chromium.org, yzshen@chromium.org
Review URL: https://codereview.chromium.org/292523003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275490 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
A optionally larger number of buffers makes recording audio in a pnacl module
more reliable when latency is not an issue.
BUG=330851
Review URL: https://codereview.chromium.org/290993005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274511 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
At most of the places default_url was changed to destination_url, however, it was missed at some places.
This patch changes the remaining default_url(s) to destination_url.
BUG=378737
Review URL: https://codereview.chromium.org/301933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274497 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL uses LatencyInfo to track the plugin input event latency.
1.Each plugin input event has an associated LatencyInfo which includes
some important components from its according ui::Event/WebInputEvent's
LatencyInfo. To do that, during the scope of
RenderWidget::OnHandleInputEvent(WebInputEvent, latency_info)
we first cache the WebInputEvent's latency_info, then if the input
event needs to be routed to plugin, we copy the important components
from the cached latency_info into the plugin input event's LatencyInfo.
2.A private API InputEventPrivate::TraceInputLatency(bool has_damage) is exposed.
3.If the event is believed to cause rendering damage, private_event.TraceInputLatency(true)
can be called, and the input event's LatencyInfo will be sent to renderer with next
plugin frame and be tracked until it reaches screen.
If the event is believed to not cause any rendering damage,
private_event.TraceInputLatency(false) can be called, and the LatencyInfo tracking ends
right at the call.
BUG=355719
TEST=with custom test touch drawing plugin, input-to-swapbuffer latency
is shown correctly in trace viewer.
Review URL: https://codereview.chromium.org/252663002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272990 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Decode function should not require the plugin to
maintain its buffer when it completes asynchronously.
BUG=281689
R=dmichael@chromium.org
Review URL: https://codereview.chromium.org/291083003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271917 0039d316-1c4b-4281-b951-d872f2087c98
|