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

Issue 2221063003: Make ui/gl/... consistently use on Swiftshader includes on Windows official builds. (Closed)

Created:
4 years, 4 months ago by Kevin M
Modified:
4 years, 4 months ago
Reviewers:
kylechar, no sievers, piman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ui/gl/... consistently use on Swiftshader includes on Windows. The existing code specifies the Swiftshader include directory for //ui/gl/init . The Swiftshader include directory has its own EGL headers, which collide with the Khronos EGL headers (which are different due to Chromium-specific modifications.) The net effect is that //ui/gl's typedefs may collide with typdefs of //ui/gl/init/... In this case, EGLNativeDisplayType is incompatible with USE_OZONE=1 (intptr_t in Khronos; XDisplay* in Swiftshader.) Moving the Swiftshader include dir to all of //ui/gl will keep things consistent; making it Winows-only ensures that we aren't picking up the dependency on unsupported platforms. R=kylechar@chromium.org,piman@chromium.org,sievers@chromium.org CC=wez@chromium.org,lethalantidote@chromium.org BUG= Committed: https://crrev.com/adbb93f546038fd7d4c809a70f8dd10d6ad2add0 Cr-Commit-Position: refs/heads/master@{#410493}

Patch Set 1 #

Total comments: 2

Patch Set 2 : kyle feedback #

Patch Set 3 : Make swiftshader build on official builds only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M ui/gl/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/init/BUILD.gn View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Kevin M
4 years, 4 months ago (2016-08-08 21:49:05 UTC) #1
kylechar
https://codereview.chromium.org/2221063003/diff/1/ui/gl/init/BUILD.gn File ui/gl/init/BUILD.gn (right): https://codereview.chromium.org/2221063003/diff/1/ui/gl/init/BUILD.gn#newcode20 ui/gl/init/BUILD.gn:20: This include_dirs is still needed in //ui/gl/init for Windows ...
4 years, 4 months ago (2016-08-08 21:54:03 UTC) #2
Kevin M
https://codereview.chromium.org/2221063003/diff/1/ui/gl/init/BUILD.gn File ui/gl/init/BUILD.gn (right): https://codereview.chromium.org/2221063003/diff/1/ui/gl/init/BUILD.gn#newcode20 ui/gl/init/BUILD.gn:20: On 2016/08/08 21:54:02, kylechar wrote: > This include_dirs is ...
4 years, 4 months ago (2016-08-08 22:06:55 UTC) #3
piman
lgtm
4 years, 4 months ago (2016-08-08 22:34:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2221063003/40001
4 years, 4 months ago (2016-08-08 22:56:21 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-08 23:22:19 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/adbb93f546038fd7d4c809a70f8dd10d6ad2add0 Cr-Commit-Position: refs/heads/master@{#410493}
4 years, 4 months ago (2016-08-08 23:24:06 UTC) #14
Sébastien Marchand
4 years, 4 months ago (2016-08-09 00:10:41 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2226153002/ by sebmarchand@chromium.org.

The reason for reverting is: This break the Win official builds, e.g.:

C:\b\build\slave\chromium-win-pgo-builder\build\src\buildtools\win\gn.exe gen
//out/Release --check
  -> returned 1
ERROR at //ui/gl/BUILD.gn:236:7: Replacing nonempty list.
      include_dirs = [ "//third_party/swiftshader/include" ]
      ^-----------
This overwrites a previously-defined nonempty list (length 1).
See //ui/gl/BUILD.gn:132:18: for previous definition
  include_dirs = [ "//third_party/mesa/src/include" ]
                 ^----------------------------------
with another one (length 1). Did you mean "+=" to append instead? If you
really want to do this, do
  foo = []
before reassigning.
See //BUILD.gn:298:7: which caused the file to be included.
      "//ui/gl:gl_unittests",
      ^---------------------.

Powered by Google App Engine
This is Rietveld 408576698