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

Issue 1110923003: Added switch to disable specified GL extensions. (Closed)

Created:
5 years, 7 months ago by David Yen
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added switch to disable specified GL extensions. It is now possible to remove extensions from the GL_EXTENSIONS string by specifying "--disable-gl-extensions=extension1,extension2". R=sievers@chromium.org BUG=482067 Committed: https://crrev.com/5a6bcfe5cc034e908c310f3405b62bd35f6a8793 Cr-Commit-Position: refs/heads/master@{#329752}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Skip filtering if no extensions disabled #

Patch Set 3 : Build filtered extensions in constructor #

Patch Set 4 : Simplify Removal #

Total comments: 7

Patch Set 5 : Added unit test by swapping in another GLApi which disables the extensions #

Patch Set 6 : Accidentally removed necessary class declaration #

Total comments: 14

Patch Set 7 : Added gl_api_unittest under gfx_unittests #

Total comments: 12

Patch Set 8 : Added gn rule and reinterpret cast for function pointers #

Total comments: 6

Patch Set 9 : Reverted gn rule #

Patch Set 10 : reinstantiate api instead of reinitialize #

Patch Set 11 : Renamed InitializeWithCommandLine to just Initialize with CommandLine param #

Patch Set 12 : Change back initialize function name, Export RealGLApi #

Patch Set 13 : Added gl tests in gfx for non-ios only #

Patch Set 14 : Also export GLApiBase #

Total comments: 1

Patch Set 15 : Moved gl_api_unittest from gfx_unittests to gl_unittest #

Patch Set 16 : Remove gl_unittests for ios #

Patch Set 17 : Fix gyp syntax #

Patch Set 18 : Fix gl_unittests for windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -4 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A ui/gl/gl_api_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +153 lines, -0 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +17 lines, -2 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.cc View 1 2 3 4 5 6 7 8 9 11 3 chunks +71 lines, -1 line 0 comments Download
M ui/gl/gl_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (6 generated)
David Yen
5 years, 7 months ago (2015-04-29 18:09:08 UTC) #1
no sievers
Very cool. Can you add a small test? Unfortunately we don't have unittests for ui/gl ...
5 years, 7 months ago (2015-04-29 18:48:11 UTC) #2
David Yen
I will see about adding a test, I did see that virtual_contexts had a unit ...
5 years, 7 months ago (2015-04-29 19:23:09 UTC) #3
Zhenyao Mo
https://codereview.chromium.org/1110923003/diff/60001/ui/gl/gl_gl_api_implementation.cc File ui/gl/gl_gl_api_implementation.cc (right): https://codereview.chromium.org/1110923003/diff/60001/ui/gl/gl_gl_api_implementation.cc#newcode451 ui/gl/gl_gl_api_implementation.cc:451: *params = static_cast<GLint>(filtered_exts_str_.size()); This is incorrect. I think you ...
5 years, 7 months ago (2015-04-29 20:04:23 UTC) #5
no sievers
https://codereview.chromium.org/1110923003/diff/1/ui/gl/gl_gl_api_implementation.cc File ui/gl/gl_gl_api_implementation.cc (right): https://codereview.chromium.org/1110923003/diff/1/ui/gl/gl_gl_api_implementation.cc#newcode420 ui/gl/gl_gl_api_implementation.cc:420: const GLubyte* RealGLApi::glGetStringFn(GLenum name) { On 2015/04/29 19:23:09, David ...
5 years, 7 months ago (2015-04-30 20:45:03 UTC) #6
David Yen
Added a unit test. https://codereview.chromium.org/1110923003/diff/1/ui/gl/gl_gl_api_implementation.cc File ui/gl/gl_gl_api_implementation.cc (right): https://codereview.chromium.org/1110923003/diff/1/ui/gl/gl_gl_api_implementation.cc#newcode420 ui/gl/gl_gl_api_implementation.cc:420: const GLubyte* RealGLApi::glGetStringFn(GLenum name) { ...
5 years, 7 months ago (2015-04-30 22:14:18 UTC) #7
Zhenyao Mo
https://codereview.chromium.org/1110923003/diff/100001/ui/gl/gl_gl_api_implementation.h File ui/gl/gl_gl_api_implementation.h (right): https://codereview.chromium.org/1110923003/diff/100001/ui/gl/gl_gl_api_implementation.h#newcode61 ui/gl/gl_gl_api_implementation.h:61: void Initialize(DriverGL* driver, base::CommandLine* command_line = nullptr); default values ...
5 years, 7 months ago (2015-04-30 22:40:51 UTC) #8
no sievers
https://codereview.chromium.org/1110923003/diff/100001/gpu/command_buffer/tests/gl_context_unittest.cc File gpu/command_buffer/tests/gl_context_unittest.cc (right): https://codereview.chromium.org/1110923003/diff/100001/gpu/command_buffer/tests/gl_context_unittest.cc#newcode18 gpu/command_buffer/tests/gl_context_unittest.cc:18: TEST(GLContextTests, DisabledExtensionsTest) { Maybe a better name for this ...
5 years, 7 months ago (2015-04-30 23:49:05 UTC) #9
no sievers
Actually we do have gfx_unittests. Can you add it there?
5 years, 7 months ago (2015-04-30 23:54:31 UTC) #10
no sievers
On 2015/04/30 23:54:31, sievers wrote: > Actually we do have gfx_unittests. Can you add it ...
5 years, 7 months ago (2015-05-01 00:26:32 UTC) #11
David Yen
https://codereview.chromium.org/1110923003/diff/100001/gpu/command_buffer/tests/gl_context_unittest.cc File gpu/command_buffer/tests/gl_context_unittest.cc (right): https://codereview.chromium.org/1110923003/diff/100001/gpu/command_buffer/tests/gl_context_unittest.cc#newcode18 gpu/command_buffer/tests/gl_context_unittest.cc:18: TEST(GLContextTests, DisabledExtensionsTest) { On 2015/04/30 23:49:05, sievers wrote: > ...
5 years, 7 months ago (2015-05-01 21:20:38 UTC) #12
David Yen
5 years, 7 months ago (2015-05-01 21:20:38 UTC) #13
no sievers
This is great. +Dana to see if she lets us add ui/gl unittests in gfx_unittests ...
5 years, 7 months ago (2015-05-01 21:55:00 UTC) #15
David Yen
Are you sure we should be putting gl tests in gfx? I seem to be ...
5 years, 7 months ago (2015-05-01 22:34:39 UTC) #16
no sievers
https://codereview.chromium.org/1110923003/diff/120001/ui/gl/gl_api_unittest.cc File ui/gl/gl_api_unittest.cc (right): https://codereview.chromium.org/1110923003/diff/120001/ui/gl/gl_api_unittest.cc#newcode77 ui/gl/gl_api_unittest.cc:77: static uint32_t g_num_fake_extension_strings; On 2015/05/01 22:34:38, David Yen wrote: ...
5 years, 7 months ago (2015-05-01 22:44:49 UTC) #17
David Yen
https://codereview.chromium.org/1110923003/diff/120001/ui/gl/gl_api_unittest.cc File ui/gl/gl_api_unittest.cc (right): https://codereview.chromium.org/1110923003/diff/120001/ui/gl/gl_api_unittest.cc#newcode77 ui/gl/gl_api_unittest.cc:77: static uint32_t g_num_fake_extension_strings; On 2015/05/01 22:44:49, sievers wrote: > ...
5 years, 7 months ago (2015-05-01 22:46:03 UTC) #18
no sievers
https://codereview.chromium.org/1110923003/diff/140001/ui/gl/gl_gl_api_implementation.h File ui/gl/gl_gl_api_implementation.h (right): https://codereview.chromium.org/1110923003/diff/140001/ui/gl/gl_gl_api_implementation.h#newcode63 ui/gl/gl_gl_api_implementation.h:63: base::CommandLine* command_line); On 2015/05/01 22:34:38, David Yen wrote: > ...
5 years, 7 months ago (2015-05-01 22:48:36 UTC) #19
David Yen
https://codereview.chromium.org/1110923003/diff/140001/ui/gl/gl_gl_api_implementation.h File ui/gl/gl_gl_api_implementation.h (right): https://codereview.chromium.org/1110923003/diff/140001/ui/gl/gl_gl_api_implementation.h#newcode63 ui/gl/gl_gl_api_implementation.h:63: base::CommandLine* command_line); On 2015/05/01 22:48:35, sievers wrote: > On ...
5 years, 7 months ago (2015-05-01 22:59:35 UTC) #20
no sievers
On 2015/05/01 22:59:35, David Yen wrote: > https://codereview.chromium.org/1110923003/diff/140001/ui/gl/gl_gl_api_implementation.h > File ui/gl/gl_gl_api_implementation.h (right): > > https://codereview.chromium.org/1110923003/diff/140001/ui/gl/gl_gl_api_implementation.h#newcode63 ...
5 years, 7 months ago (2015-05-01 23:12:24 UTC) #21
David Yen
On 2015/05/01 23:12:24, sievers wrote: > On 2015/05/01 22:59:35, David Yen wrote: > > > ...
5 years, 7 months ago (2015-05-04 17:29:55 UTC) #22
danakj
https://codereview.chromium.org/1110923003/diff/240001/ui/gfx/gfx_tests.gyp File ui/gfx/gfx_tests.gyp (right): https://codereview.chromium.org/1110923003/diff/240001/ui/gfx/gfx_tests.gyp#newcode29 ui/gfx/gfx_tests.gyp:29: '../gl/gl_api_unittest.cc', we shouldn't be including '../*' as sources in ...
5 years, 7 months ago (2015-05-04 17:45:12 UTC) #23
no sievers
On 2015/05/04 17:29:55, David Yen wrote: > On 2015/05/01 23:12:24, sievers wrote: > > On ...
5 years, 7 months ago (2015-05-04 18:34:10 UTC) #24
danakj
On Mon, May 4, 2015 at 11:34 AM, <sievers@chromium.org> wrote: > On 2015/05/04 17:29:55, David ...
5 years, 7 months ago (2015-05-04 18:38:01 UTC) #25
no sievers
On 2015/05/04 18:38:01, danakj wrote: > On Mon, May 4, 2015 at 11:34 AM, <mailto:sievers@chromium.org> ...
5 years, 7 months ago (2015-05-04 18:40:40 UTC) #26
danakj
On Mon, May 4, 2015 at 11:40 AM, <sievers@chromium.org> wrote: > On 2015/05/04 18:38:01, danakj ...
5 years, 7 months ago (2015-05-04 18:44:56 UTC) #27
no sievers
On 2015/05/04 18:44:56, danakj wrote:> > > > > Ok how about a 'ui_gl_unittests' target ...
5 years, 7 months ago (2015-05-04 18:53:59 UTC) #28
David Yen
The bots have finally been setup to run gl_unittests including the android trybots. I just ...
5 years, 7 months ago (2015-05-13 18:37:31 UTC) #29
David Yen
+dpranke to review all.gyp, I just made it so gl_unittests does not build on iOS.
5 years, 7 months ago (2015-05-13 20:29:02 UTC) #31
Dirk Pranke
All.gyp change lgtm, though frankly I don't really understand where all chromium_builder_tests is used :).
5 years, 7 months ago (2015-05-13 20:34:08 UTC) #32
no sievers
lgtm thanks!
5 years, 7 months ago (2015-05-13 20:47:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1110923003/320001
5 years, 7 months ago (2015-05-13 20:50:35 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/57149)
5 years, 7 months ago (2015-05-13 22:38:16 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1110923003/320001
5 years, 7 months ago (2015-05-13 22:58:33 UTC) #39
commit-bot: I haz the power
Committed patchset #18 (id:320001)
5 years, 7 months ago (2015-05-14 00:09:45 UTC) #40
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 00:11:10 UTC) #41
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/5a6bcfe5cc034e908c310f3405b62bd35f6a8793
Cr-Commit-Position: refs/heads/master@{#329752}

Powered by Google App Engine
This is Rietveld 408576698