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

Issue 324983005: [PPAPI] Add browser tests for compositor API (Closed)

Created:
6 years, 6 months ago by Peng
Modified:
6 years, 6 months ago
Reviewers:
raymes, piman
CC:
chromium-reviews, darin-cc_chromium.org, jam, danakj, mknowles, kmixter1, avallee
Base URL:
https://chromium.googlesource.com/chromium/src.git@compositor_api_impl_new
Visibility:
Public.

Description

[PPAPI] Add browser tests for compositor API And fix a bug found with the tests. BindGraphics() does not work for a device which is in the same type with the current bound device. BUG=374383 R=piman@chromium.org, raymes@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278728 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278779

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : Update #

Patch Set 6 : Update #

Patch Set 7 : Update #

Patch Set 8 : Update #

Patch Set 9 : Update #

Total comments: 1

Patch Set 10 : Fix build errors #

Patch Set 11 : Rebase #

Total comments: 24

Patch Set 12 : Fix review issues #

Total comments: 27

Patch Set 13 : Fix review issues #

Patch Set 14 : Rebase #

Patch Set 15 : Update #

Patch Set 16 : Fix review issues #

Patch Set 17 : Remove change in base folder. #

Total comments: 8

Patch Set 18 : Fix review issues #

Total comments: 20

Patch Set 19 : Fix review issues. #

Patch Set 20 : Fix reivew issue #

Patch Set 21 : Disable the test on MACOSX #

Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -79 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +13 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_compositor_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +8 lines, -7 lines 0 comments Download
M content/renderer/pepper/pepper_compositor_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +30 lines, -24 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +9 lines, -8 lines 0 comments Download
M ppapi/examples/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +29 lines, -23 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/compositor_layer_resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/compositor_layer_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +14 lines, -3 lines 0 comments Download
M ppapi/proxy/compositor_resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -7 lines 0 comments Download
M ppapi/proxy/compositor_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +24 lines, -5 lines 0 comments Download
A ppapi/tests/test_compositor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +52 lines, -0 lines 0 comments Download
A ppapi/tests/test_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +430 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Peng
PTAL. Thanks. https://codereview.chromium.org/324983005/diff/160001/base/rand_util_nacl.cc File base/rand_util_nacl.cc (right): https://codereview.chromium.org/324983005/diff/160001/base/rand_util_nacl.cc#newcode7 base/rand_util_nacl.cc:7: #include <nacl/nacl_random.h> Please ignore changes in base ...
6 years, 6 months ago (2014-06-17 19:14:47 UTC) #1
piman
I don't understand why you want to track if the compositor is bound and disable ...
6 years, 6 months ago (2014-06-18 00:55:24 UTC) #2
Peng
https://codereview.chromium.org/324983005/diff/200001/content/renderer/pepper/pepper_compositor_host.cc File content/renderer/pepper/pepper_compositor_host.cc (right): https://codereview.chromium.org/324983005/diff/200001/content/renderer/pepper/pepper_compositor_host.cc#newcode124 content/renderer/pepper/pepper_compositor_host.cc:124: class ContainerLayer : public cc::Layer { On 2014/06/18 00:55:24, ...
6 years, 6 months ago (2014-06-18 02:35:04 UTC) #3
raymes
Now that I think about it I'm a bit fuzzy on the way the API ...
6 years, 6 months ago (2014-06-18 05:58:44 UTC) #4
Peng
https://codereview.chromium.org/324983005/diff/220001/base/rand_util_nacl.cc File base/rand_util_nacl.cc (right): https://codereview.chromium.org/324983005/diff/220001/base/rand_util_nacl.cc#newcode36 base/rand_util_nacl.cc:36: } On 2014/06/18 05:58:44, raymes wrote: > I'm not ...
6 years, 6 months ago (2014-06-18 11:14:37 UTC) #5
Peng
6 years, 6 months ago (2014-06-18 11:17:30 UTC) #6
Peng
On 2014/06/18 05:58:44, raymes wrote: > Now that I think about it I'm a bit ...
6 years, 6 months ago (2014-06-18 14:45:38 UTC) #7
piman
https://codereview.chromium.org/324983005/diff/200001/ppapi/proxy/compositor_layer_resource.cc File ppapi/proxy/compositor_layer_resource.cc (right): https://codereview.chromium.org/324983005/diff/200001/ppapi/proxy/compositor_layer_resource.cc#newcode117 ppapi/proxy/compositor_layer_resource.cc:117: CHECK(compositor_->bound_to_instance()); On 2014/06/18 02:35:03, Peng wrote: > On 2014/06/18 ...
6 years, 6 months ago (2014-06-18 20:30:55 UTC) #8
raymes
If piman@ is correct then this might not be important, but: > BindGraphics() is always ...
6 years, 6 months ago (2014-06-19 00:39:14 UTC) #9
piman
https://codereview.chromium.org/324983005/diff/220001/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): https://codereview.chromium.org/324983005/diff/220001/chrome/test/ppapi/ppapi_browsertest.cc#newcode1199 chrome/test/ppapi/ppapi_browsertest.cc:1199: #if defined(OS_WIN) && defined(USE_AURA) On 2014/06/19 00:39:13, raymes wrote: ...
6 years, 6 months ago (2014-06-19 01:21:21 UTC) #10
raymes
The comment says: // These tests fail with the test compositor which is what's used ...
6 years, 6 months ago (2014-06-19 01:26:54 UTC) #11
Peng
On 2014/06/19 00:39:14, raymes wrote: > If piman@ is correct then this might not be ...
6 years, 6 months ago (2014-06-19 14:54:02 UTC) #12
danakj
On Wed, Jun 18, 2014 at 6:26 PM, Raymes Khoury <raymes@chromium.org> wrote: > The comment ...
6 years, 6 months ago (2014-06-19 15:25:38 UTC) #13
danakj
On Thu, Jun 19, 2014 at 8:25 AM, Dana Jansens <danakj@chromium.org> wrote: > On Wed, ...
6 years, 6 months ago (2014-06-19 15:42:18 UTC) #14
Peng
https://codereview.chromium.org/324983005/diff/220001/ppapi/proxy/compositor_layer_resource.cc File ppapi/proxy/compositor_layer_resource.cc (right): https://codereview.chromium.org/324983005/diff/220001/ppapi/proxy/compositor_layer_resource.cc#newcode183 ppapi/proxy/compositor_layer_resource.cc:183: // We also need keep the compositor alive, otherwise ...
6 years, 6 months ago (2014-06-19 17:35:11 UTC) #15
Peng
Mark, Could you please review change in base folder? Thanks.
6 years, 6 months ago (2014-06-19 17:36:31 UTC) #16
Peng
On 2014/06/19 17:36:31, Peng wrote: > Mark, Could you please review change in base folder? ...
6 years, 6 months ago (2014-06-19 17:52:01 UTC) #17
Peng
https://codereview.chromium.org/324983005/diff/220001/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): https://codereview.chromium.org/324983005/diff/220001/chrome/test/ppapi/ppapi_browsertest.cc#newcode1199 chrome/test/ppapi/ppapi_browsertest.cc:1199: #if defined(OS_WIN) && defined(USE_AURA) On 2014/06/19 00:39:13, raymes wrote: ...
6 years, 6 months ago (2014-06-19 20:04:49 UTC) #18
piman
https://codereview.chromium.org/324983005/diff/310001/ppapi/proxy/compositor_layer_resource.cc File ppapi/proxy/compositor_layer_resource.cc (right): https://codereview.chromium.org/324983005/diff/310001/ppapi/proxy/compositor_layer_resource.cc#newcode146 ppapi/proxy/compositor_layer_resource.cc:146: // nacl_secure_random() is fixed. I thought that was getting ...
6 years, 6 months ago (2014-06-19 20:44:04 UTC) #19
Peng
CL has been updated. PTAL. Thanks. https://codereview.chromium.org/324983005/diff/310001/ppapi/proxy/compositor_layer_resource.cc File ppapi/proxy/compositor_layer_resource.cc (right): https://codereview.chromium.org/324983005/diff/310001/ppapi/proxy/compositor_layer_resource.cc#newcode146 ppapi/proxy/compositor_layer_resource.cc:146: // nacl_secure_random() is ...
6 years, 6 months ago (2014-06-19 22:33:41 UTC) #20
piman
https://codereview.chromium.org/324983005/diff/330001/ppapi/proxy/compositor_resource.cc File ppapi/proxy/compositor_resource.cc (right): https://codereview.chromium.org/324983005/diff/330001/ppapi/proxy/compositor_resource.cc#newcode143 ppapi/proxy/compositor_resource.cc:143: release_callback.Run(is_aborted ? PP_ERROR_ABORTED : PP_OK, 0, false); Actually, why ...
6 years, 6 months ago (2014-06-19 23:18:32 UTC) #21
piman
lgtm https://codereview.chromium.org/324983005/diff/330001/ppapi/proxy/compositor_resource.cc File ppapi/proxy/compositor_resource.cc (right): https://codereview.chromium.org/324983005/diff/330001/ppapi/proxy/compositor_resource.cc#newcode143 ppapi/proxy/compositor_resource.cc:143: release_callback.Run(is_aborted ? PP_ERROR_ABORTED : PP_OK, 0, false); On ...
6 years, 6 months ago (2014-06-20 01:24:56 UTC) #22
raymes
Looking good. Should we have some sanity tests that do readback of the screen to ...
6 years, 6 months ago (2014-06-20 02:57:21 UTC) #23
Peng
https://codereview.chromium.org/324983005/diff/330001/ppapi/tests/test_compositor.cc File ppapi/tests/test_compositor.cc (right): https://codereview.chromium.org/324983005/diff/330001/ppapi/tests/test_compositor.cc#newcode122 ppapi/tests/test_compositor.cc:122: PP_REQUIRED); On 2014/06/20 02:57:20, raymes wrote: > nit:indentation Done. ...
6 years, 6 months ago (2014-06-20 03:18:00 UTC) #24
Peng
On 2014/06/20 02:57:21, raymes wrote: > Looking good. > > Should we have some sanity ...
6 years, 6 months ago (2014-06-20 03:25:10 UTC) #25
raymes
It shouldn't be too hard to create a common member function in TestCompositor class and ...
6 years, 6 months ago (2014-06-20 03:35:10 UTC) #26
Peng
Thanks all for review.
6 years, 6 months ago (2014-06-20 03:59:10 UTC) #27
Peng
The CQ bit was checked by penghuang@chromium.org
6 years, 6 months ago (2014-06-20 04:00:58 UTC) #28
Peng
On 2014/06/20 03:35:10, raymes wrote: > It shouldn't be too hard to create a common ...
6 years, 6 months ago (2014-06-20 04:02:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/324983005/370001
6 years, 6 months ago (2014-06-20 04:03:49 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 15:15:49 UTC) #31
Peng
Committed patchset #20 manually as r278728 (presubmit successful).
6 years, 6 months ago (2014-06-20 17:00:55 UTC) #32
Peng
6 years, 6 months ago (2014-06-20 18:42:49 UTC) #33
Message was sent while issue was closed.
Committed patchset #21 manually as r278779 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698