Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed)

Created:
4 years, 8 months ago by alessandroa
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, jam, teravest+watch_chromium.org, darin-cc_chromium.org, bradnelson+warch_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, bokan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added SetLayerTransform to PPAPI. SetLayerTransform() sets a transformation factor that will be applied for the current layer displayed on the output device. This function has no effect until you call Flush(). @param[in] scale The scale to be applied. @param[in] origin The origin of the scale. @param[in] translate The translation to be applied. @return Returns true on success or false if the resource is invalid or the scale factor is 0 or less. BUG=605379 NOPRESUBMIT=true Reason: ** Presubmit ERRORS ** TODOs found in stable public PPAPI files: ppapi/cpp/graphics_2d.h Committed: https://crrev.com/d55efd0d4b7573d763dd6e4d1d9ccfe4ca5be2f7 Cr-Commit-Position: refs/heads/master@{#388851}

Patch Set 1 #

Total comments: 55

Patch Set 2 : Cleaned up the code #

Total comments: 16

Patch Set 3 : Fixed indentation #

Total comments: 19

Patch Set 4 : Moved origin before IPC #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : Added M52 to API idl #

Total comments: 4

Patch Set 7 : Cleaned bad copy paste #

Patch Set 8 : Changes for version 1.2 of Graphics2D #

Total comments: 4

Patch Set 9 : Changed PPAPI version in tests #

Patch Set 10 : Added Graphics2D 1.2 to histograms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -16 lines) Patch
M content/renderer/pepper/pepper_graphics_2d_host.h View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host.cc View 1 2 3 6 chunks +32 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +28 lines, -4 lines 0 comments Download
M ppapi/api/ppb_graphics_2d.idl View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -1 line 0 comments Download
M ppapi/c/pp_macros.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/c/ppb_graphics_2d.h View 1 2 3 4 5 6 7 8 5 chunks +46 lines, -4 lines 0 comments Download
M ppapi/cpp/graphics_2d.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/cpp/graphics_2d.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 5 chunks +75 lines, -0 lines 0 comments Download
M ppapi/proxy/graphics_2d_resource.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/graphics_2d_resource.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/tests/test_graphics_2d.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_graphics_2d.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/ppb_graphics_2d_api.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_graphics_2d_thunk.cc View 1 2 3 4 5 4 chunks +21 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 72 (32 generated)
wjmaclean
Here's an initial set of comments. Most are style related. https://codereview.chromium.org/1881603002/diff/1/content/renderer/pepper/pepper_graphics_2d_host.cc File content/renderer/pepper/pepper_graphics_2d_host.cc (left): https://codereview.chromium.org/1881603002/diff/1/content/renderer/pepper/pepper_graphics_2d_host.cc#oldcode501 ...
4 years, 8 months ago (2016-04-13 14:47:19 UTC) #4
wjmaclean
One other thing: you should write a detailed description for this issue, as it will ...
4 years, 8 months ago (2016-04-13 18:31:15 UTC) #5
alessandroa
On 2016/04/13 18:31:15, wjmaclean wrote: > One other thing: you should write a detailed description ...
4 years, 8 months ago (2016-04-13 19:05:51 UTC) #6
wjmaclean
On 2016/04/13 19:05:51, alessandroa wrote: > On 2016/04/13 18:31:15, wjmaclean wrote: > > One other ...
4 years, 8 months ago (2016-04-13 20:12:45 UTC) #7
alessandroa
On 2016/04/13 20:12:45, wjmaclean wrote: > On 2016/04/13 19:05:51, alessandroa wrote: > > On 2016/04/13 ...
4 years, 8 months ago (2016-04-13 21:48:11 UTC) #9
wjmaclean
On 2016/04/13 21:48:11, alessandroa wrote: > On 2016/04/13 20:12:45, wjmaclean wrote: > > On 2016/04/13 ...
4 years, 8 months ago (2016-04-14 13:45:42 UTC) #13
alessandroa
On 2016/04/14 13:45:42, wjmaclean wrote: > On 2016/04/13 21:48:11, alessandroa wrote: > > On 2016/04/13 ...
4 years, 8 months ago (2016-04-14 13:58:23 UTC) #15
wjmaclean
A few more indenting issues. https://codereview.chromium.org/1881603002/diff/20001/content/renderer/pepper/pepper_graphics_2d_host.cc File content/renderer/pepper/pepper_graphics_2d_host.cc (right): https://codereview.chromium.org/1881603002/diff/20001/content/renderer/pepper/pepper_graphics_2d_host.cc#newcode542 content/renderer/pepper/pepper_graphics_2d_host.cc:542: //conform the origin point ...
4 years, 8 months ago (2016-04-14 20:14:17 UTC) #18
bokan
https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_graphics_2d_host.h File content/renderer/pepper/pepper_graphics_2d_host.h (right): https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_graphics_2d_host.h#newcode124 content/renderer/pepper/pepper_graphics_2d_host.h:124: float Scale, Line up indent with the first parameter. ...
4 years, 8 months ago (2016-04-14 21:45:01 UTC) #20
piman
https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1550 content/renderer/pepper/pepper_plugin_instance_impl.cc:1550: DCHECK(transform.IsScaleOrTranslation()); On 2016/04/14 21:45:01, bokan wrote: > Any reason ...
4 years, 8 months ago (2016-04-14 23:11:35 UTC) #21
alessandroa
On 2016/04/14 23:11:35, piman wrote: > https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc > File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): > > https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1550 > ...
4 years, 8 months ago (2016-04-15 17:38:33 UTC) #22
alessandroa
On 2016/04/14 23:11:35, piman wrote: > https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc > File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): > > https://codereview.chromium.org/1881603002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1550 > ...
4 years, 8 months ago (2016-04-15 17:38:45 UTC) #23
piman
https://codereview.chromium.org/1881603002/diff/80001/content/renderer/pepper/pepper_graphics_2d_host.h File content/renderer/pepper/pepper_graphics_2d_host.h (right): https://codereview.chromium.org/1881603002/diff/80001/content/renderer/pepper/pepper_graphics_2d_host.h#newcode90 content/renderer/pepper/pepper_graphics_2d_host.h:90: void SetLayerTransform(float Scale, const PP_Point& Transform); nit: lowercase |scale|, ...
4 years, 8 months ago (2016-04-15 19:24:39 UTC) #24
alessandroa
On 2016/04/15 19:24:39, piman wrote: > https://codereview.chromium.org/1881603002/diff/80001/content/renderer/pepper/pepper_graphics_2d_host.h > File content/renderer/pepper/pepper_graphics_2d_host.h (right): > > https://codereview.chromium.org/1881603002/diff/80001/content/renderer/pepper/pepper_graphics_2d_host.h#newcode90 > ...
4 years, 8 months ago (2016-04-15 19:43:16 UTC) #25
piman
https://codereview.chromium.org/1881603002/diff/100001/ppapi/api/ppb_graphics_2d.idl File ppapi/api/ppb_graphics_2d.idl (right): https://codereview.chromium.org/1881603002/diff/100001/ppapi/api/ppb_graphics_2d.idl#newcode75 ppapi/api/ppb_graphics_2d.idl:75: * M resource is invalid. The output parameters will ...
4 years, 8 months ago (2016-04-15 20:12:28 UTC) #26
alessandroa
On 2016/04/15 20:12:28, piman wrote: > https://codereview.chromium.org/1881603002/diff/100001/ppapi/api/ppb_graphics_2d.idl > File ppapi/api/ppb_graphics_2d.idl (right): > > https://codereview.chromium.org/1881603002/diff/100001/ppapi/api/ppb_graphics_2d.idl#newcode75 > ...
4 years, 8 months ago (2016-04-15 22:42:00 UTC) #27
piman
lgtm
4 years, 8 months ago (2016-04-15 22:47:40 UTC) #28
raymes
Looks good. I didn't look at the computations in close detail because piman is a ...
4 years, 8 months ago (2016-04-20 00:48:55 UTC) #31
alessandroa
On 2016/04/20 at 00:48:55, raymes wrote: > Looks good. I didn't look at the computations ...
4 years, 8 months ago (2016-04-20 20:17:00 UTC) #32
piman
On Wed, Apr 20, 2016 at 1:17 PM, <alessandroa@google.com> wrote: > On 2016/04/20 at 00:48:55, ...
4 years, 8 months ago (2016-04-20 20:25:32 UTC) #33
alessandroa
On 2016/04/20 at 20:25:32, piman wrote: > On Wed, Apr 20, 2016 at 1:17 PM, ...
4 years, 8 months ago (2016-04-20 21:35:18 UTC) #34
raymes
lgtm
4 years, 8 months ago (2016-04-20 22:52:12 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881603002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881603002/160001
4 years, 8 months ago (2016-04-21 01:19:07 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/171172)
4 years, 8 months ago (2016-04-21 01:28:35 UTC) #40
bokan
still need approval from an owner of ppapi_messages. +kenrb@
4 years, 8 months ago (2016-04-21 01:29:57 UTC) #42
alessandroa
On 2016/04/21 01:28:35, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-21 01:30:48 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881603002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881603002/160001
4 years, 8 months ago (2016-04-21 01:42:06 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/171184)
4 years, 8 months ago (2016-04-21 01:50:42 UTC) #47
bokan
Also, before committing this patch, please create a tracking bug for the "improve PDF pinch-zoom" ...
4 years, 8 months ago (2016-04-21 02:01:49 UTC) #48
alessandroa
On 2016/04/21 02:01:49, bokan wrote: > Also, before committing this patch, please create a tracking ...
4 years, 8 months ago (2016-04-21 02:14:55 UTC) #50
kenrb
ipc lgtm
4 years, 8 months ago (2016-04-21 15:18:36 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881603002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881603002/160001
4 years, 8 months ago (2016-04-21 15:28:25 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/171433)
4 years, 8 months ago (2016-04-21 15:36:47 UTC) #56
alessandroa
https://codereview.chromium.org/1881603002/diff/1/content/renderer/pepper/pepper_graphics_2d_host.cc File content/renderer/pepper/pepper_graphics_2d_host.cc (left): https://codereview.chromium.org/1881603002/diff/1/content/renderer/pepper/pepper_graphics_2d_host.cc#oldcode501 content/renderer/pepper/pepper_graphics_2d_host.cc:501: // Reuse image data when running out of process. ...
4 years, 8 months ago (2016-04-21 15:39:23 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881603002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881603002/180001
4 years, 8 months ago (2016-04-21 17:54:37 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/171512)
4 years, 8 months ago (2016-04-21 18:12:19 UTC) #62
Alexei Svitkine (slow)
lgtm
4 years, 8 months ago (2016-04-21 18:33:41 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881603002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881603002/180001
4 years, 8 months ago (2016-04-21 18:40:45 UTC) #68
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-21 19:35:37 UTC) #70
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:37:43 UTC) #72
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d55efd0d4b7573d763dd6e4d1d9ccfe4ca5be2f7
Cr-Commit-Position: refs/heads/master@{#388851}

Powered by Google App Engine
This is Rietveld 408576698