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

Issue 120313002: Use stub GL draw/clear calls for browser tests that do not need pixels. (Closed)

Created:
7 years ago by danakj
Modified:
6 years, 11 months ago
Reviewers:
piman, sky, no sievers
CC:
chromium-reviews, joi+watch-content_chromium.org, piman+watch_chromium.org, jam, darin-cc_chromium.org, jbauman
Visibility:
Public.

Description

Use stub GL draw/clear calls for browser tests that do not need pixels. Instead of using the "TestCompositor" use real GL contexts that just stub out these expensive functions. Previously browser tests that did not disable the test compositor would fall into legacy software mode in the renderer, causing the renderer to produce frames in a way we don't ship. Now all tests will use a compositor in both the browser and the renderers. This allows us to remove the concept the "test compositor" from browser tests (and from unit tests if we want). R=piman@chromium.org, sky BUG=270918 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246107

Patch Set 1 #

Total comments: 2

Patch Set 2 : stubgl: rebase #

Patch Set 3 : stubgl: ppapi #

Patch Set 4 : stubgl: interactiveuitests #

Patch Set 5 : stubgl: othertests #

Patch Set 6 : stubgl: rebase #

Patch Set 7 : stubgl: disableinteractiveuitests #

Patch Set 8 : stubgl: thumbnailtabhelper #

Patch Set 9 : stubgl: betterdisable #

Patch Set 10 : stubgl: wtbrtcnogpu_and_moretabdragdisable #

Patch Set 11 : stubgl: rebase #

Patch Set 12 : stubgl: webrtccontentbrowsertests #

Patch Set 13 : stubgl: includeennesstuff #

Patch Set 14 : stubgl: rebase #

Patch Set 15 : stubgl: rebaseagain? #

Patch Set 16 : stubgl: fixownedmailboxbetter #

Patch Set 17 : stubgl: addpimanstuff2 #

Patch Set 18 : stubgl: rebaseafterenne #

Patch Set 19 : stubgl: morerebasing #

Patch Set 20 : stubgl: morewebrtc_and_browserpluginpixeltest #

Patch Set 21 : stubgl: rebaseawaystuff #

Patch Set 22 : stubgl: webrtcsplitup #

Patch Set 23 : stubgl: parameterize #

Patch Set 24 : stubgl: destroycompositorbeforewindow #

Patch Set 25 : stubgl: rebasement #

Patch Set 26 : stubgl: rebaseawaystuff #

Patch Set 27 : stubgl: omg #

Patch Set 28 : stubgl: rebased #

Patch Set 29 : stubgl: uitestcompile #

Patch Set 30 : stubgl: reenable #

Patch Set 31 : stubgl: tryfixsometests #

Patch Set 32 : stubgl: moretestfix #

Patch Set 33 : stubgl: moretestsfix2 #

Patch Set 34 : stubgl: moretests #

Patch Set 35 : stubgl: . #

Patch Set 36 : stubgl: rebasedwoo #

Patch Set 37 : stubgl: TurnOffEndToEndOnOSMesa #

Patch Set 38 : stubgl: rebaseToToT #

Patch Set 39 : stubgl: use_osmesa #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -131 lines) Patch
M chrome/browser/chromeos/file_manager/file_manager_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 +0 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 2 chunks +9 lines, -18 lines 0 comments Download
M chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/cast_streaming_apitest.cc View 1 2 3 4 14 15 16 17 18 19 20 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/extensions/extension_resource_request_policy_apitest.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 3 chunks +13 lines, -6 lines 0 comments Download
M content/browser/media/media_browsertest.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/media/media_browsertest.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M content/public/test/browser_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 2 chunks +0 lines, -8 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 4 chunks +16 lines, -26 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
no sievers
Looks good. I would maybe rename it from 'Stub'(Bindings etc.) to 'NullDraw' or something. Otherwise ...
7 years ago (2013-12-20 23:27:58 UTC) #1
danakj
https://codereview.chromium.org/120313002/diff/1/ui/gl/gl_surface.cc File ui/gl/gl_surface.cc (right): https://codereview.chromium.org/120313002/diff/1/ui/gl/gl_surface.cc#newcode74 ui/gl/gl_surface.cc:74: InitializeStubGLBindings(); On 2013/12/20 23:27:58, sievers wrote: > The only ...
7 years ago (2013-12-20 23:29:37 UTC) #2
no sievers
On 2013/12/20 23:29:37, danakj wrote: > https://codereview.chromium.org/120313002/diff/1/ui/gl/gl_surface.cc > File ui/gl/gl_surface.cc (right): > > https://codereview.chromium.org/120313002/diff/1/ui/gl/gl_surface.cc#newcode74 > ...
7 years ago (2013-12-20 23:32:12 UTC) #3
danakj
On Fri, Dec 20, 2013 at 6:32 PM, <sievers@chromium.org> wrote: > On 2013/12/20 23:29:37, danakj ...
7 years ago (2013-12-20 23:34:32 UTC) #4
piman
I think you accidentally uploaded a couple of other changes together with this one (the ...
6 years, 11 months ago (2014-01-08 05:24:41 UTC) #5
danakj
On Jan 8, 2014 12:24 AM, <piman@chromium.org> wrote: > > I think you accidentally uploaded ...
6 years, 11 months ago (2014-01-08 08:32:26 UTC) #6
danakj
piman: please review sky: please review chrome/*
6 years, 11 months ago (2014-01-20 16:26:56 UTC) #7
sky
LGTM
6 years, 11 months ago (2014-01-21 16:01:47 UTC) #8
danakj
All pre-reqs have now landed AFAICT. I'll wait for piman@ review then land this today.
6 years, 11 months ago (2014-01-21 18:35:01 UTC) #9
piman
lgtm
6 years, 11 months ago (2014-01-21 19:20:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/120313002/3810018
6 years, 11 months ago (2014-01-21 19:24:30 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-21 20:59:30 UTC) #12
Message was sent while issue was closed.
Change committed as 246107

Powered by Google App Engine
This is Rietveld 408576698