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

Issue 455783002: GPU context creation code duplication cleanup (Closed)

Created:
6 years, 4 months ago by oetuaho-nv
Modified:
6 years, 4 months ago
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Project:
chromium
Visibility:
Public.

Description

GPU context creation code duplication cleanup Use ContextCreationAttribHelper through the context creation in both in-process and out-of-process cases, instead of duplicate structures such as GLInProcessContextAttribs. Enums used for serializing the attributes are now defined in only one place, instead of three. Remove small pieces of dead code related to share groups. share_resources_ attrib is removed since it is not in use anywhere. gpu_unittests are changed to better model how bind_generates_resource gets set, and new checks are added to make sure it is set consistently everywhere. TEST=WebGL conformance tests (with and without --in-process-gpu), cc_unittests, gpu_unittests BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289269

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix compilation and nits #

Patch Set 3 : Fix more build issues and issue added in prev patch set #

Patch Set 4 : Fix more build issues #

Patch Set 5 : Fix even more build dependencies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -271 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M cc/test/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_factory_impl.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 chunk +0 lines, -24 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 1 chunk +6 lines, -17 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.h View 3 chunks +2 lines, -17 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 1 5 chunks +9 lines, -76 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/share_group.h View 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 1 chunk +14 lines, -16 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 3 chunks +53 lines, -56 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 6 chunks +18 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_impl.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_impl.cc View 1 2 chunks +15 lines, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 3 chunks +2 lines, -8 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 chunks +1 line, -13 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
oetuaho-nv
I started running into this duplicated code when trying to add an npot validation setting ...
6 years, 4 months ago (2014-08-08 12:59:26 UTC) #1
piman
This is a good change, LGTM. Eventually I think we should stop passing a vector ...
6 years, 4 months ago (2014-08-08 20:56:34 UTC) #2
Zhenyao Mo
Nice cleanup LGTM with a few nits https://codereview.chromium.org/455783002/diff/1/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (left): https://codereview.chromium.org/455783002/diff/1/gpu/command_buffer/common/gles2_cmd_utils.cc#oldcode802 gpu/command_buffer/common/gles2_cmd_utils.cc:802: const int32 ...
6 years, 4 months ago (2014-08-09 00:42:25 UTC) #3
oetuaho-nv
The CQ bit was checked by oetuaho@nvidia.com
6 years, 4 months ago (2014-08-12 07:19:27 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oetuaho@nvidia.com/455783002/40001
6 years, 4 months ago (2014-08-12 07:20:45 UTC) #5
oetuaho-nv
The CQ bit was unchecked by oetuaho@nvidia.com
6 years, 4 months ago (2014-08-12 10:28:15 UTC) #6
oetuaho-nv
boliu, benm: Can you approve the android_webview changes? Also still working through missing deps for ...
6 years, 4 months ago (2014-08-12 13:49:15 UTC) #7
boliu
nice, android_webview lgtm
6 years, 4 months ago (2014-08-12 15:18:14 UTC) #8
oetuaho-nv
The CQ bit was checked by oetuaho@nvidia.com
6 years, 4 months ago (2014-08-13 09:37:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oetuaho@nvidia.com/455783002/80001
6 years, 4 months ago (2014-08-13 09:38:53 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 11:50:44 UTC) #11
Message was sent while issue was closed.
Change committed as 289269

Powered by Google App Engine
This is Rietveld 408576698