Commit Graph
24 Commits
Author SHA1 Message Date
Geoff Lang 45b4e74a3a Move surface size information out of SurfaceImpl.
Some implementations need to query size information directly from their
native window instead of listening for size events and storing the result.

Also move mSwapInterval to SurfaceD3D since it doesn't need to be stored
in all cases and there is no query for it.  It no longer requires that the
SurfaceImpl's derivation remembers to set mSwapInterval in
setSwapInterval too.

BUG=angle:658

Change-Id: I499c1b8b842254636fc25ff5f2a90107af8fe327
Reviewed-on: https://chromium-review.googlesource.com/242039
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-12 18:58:59 +00:00
Geoff Lang f6bf23fd8f Split up the Display::create*Surface and have them match the API.
BUG=angle:658

Change-Id: Id0054406a5ce6f6ffef28ce84737547c1869efde
Reviewed-on: https://chromium-review.googlesource.com/242038
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-12 18:54:44 +00:00
Jamie Madill 811b635267 Add a script to generate a new Renderer.
Also refactor our current Impl headers slightly to facilitate
parsing by the generation script.

BUG=angle:905

Change-Id: Ib86cff71d18e7f911cf526b27b8a82757bacd738
Reviewed-on: https://chromium-review.googlesource.com/245497
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-02-09 15:28:46 +00:00
Geoff Lang c223dc6bdf Change Config to a struct and rename it's members.
BUG=angle:658

Change-Id: I18dab915730fc28815db8080b3614da821f9c8b1
Reviewed-on: https://chromium-review.googlesource.com/239901
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-03 20:42:09 +00:00
Geoff Lang 6812a55c84 Rewrite ConfigSet and make EGLConfig synonymous with egl::Config.
BUG=angle:658

Change-Id: I3c33faf18af0bfda00dc5babe6356d6c8661f032
Reviewed-on: https://chromium-review.googlesource.com/238862
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-03 20:41:57 +00:00
Geoff Lang 691e58cd84 Merge all gl::Texture* classes.
The validation for sampler completeness had a lot of duplicated code.
The special cases have been merged into the base class by checking mTarget.

BUG=angle:681

Change-Id: I11d94c1432f8fc70a1edaaf8228bbc43c3c8fff3
Reviewed-on: https://chromium-review.googlesource.com/236932
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-14 21:14:19 +00:00
Kenneth Russell 2609bf4ca4 Refactored test targets into angle_unittests and angle_end2end_tests.
angle_unittests subsumes the previous:
  angle_compiler_tests
  angle_preprocessor_tests
and will subsume angle_implementation_unit_tests in a follow-on CL.

angle_end2end_tests subsumes the previous:
  angle_tests
  angle_standalone_tests
  angle_implementation_unit_tests

The bulk of these two targets have been factored into their own
.gypi files, so that a different main.cpp can be trivially
plugged in for the gtest harness. This refactoring has been
tested both in ANGLE standalone builds, and builds within
Chromium.

BUG=chromium:435726

Change-Id: I231a3c1989c17e188cc469dcf80fe78b052afe78
Reviewed-on: https://chromium-review.googlesource.com/236681
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Kenneth Russell <[email protected]>
2014-12-19 22:13:09 +00:00
Jamie Madill fb0580a676 MANGLE egl::Surface.
This class has its fingers in a lot of other classes. In particular,
we will likely need to revisit the context lost handling methods when
we implement the robustness extensions on top of desktop GL. For now,
we can leave them tied pretty tightly to the D3D implementation.

BUG=angle:795

Change-Id: I9b3ac90dfd393f52c5b49bc2bd6b97fb5536ed91
Reviewed-on: https://chromium-review.googlesource.com/228916
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-11-27 21:42:05 +00:00
Jamie Madill ce260bb498 Add Fence implementation tests back to project.
Somehow they had been neglected.

Change-Id: Ibe8b063758be8e99978fdd2723192be7bcea6d04
Reviewed-on: https://chromium-review.googlesource.com/232220
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-11-27 19:03:18 +00:00
Geoff Lang 2207213ba5 Move as many files as possible from common to libANGLE.
BUG=angle:733

Change-Id: If01c91cd52ac5c2102276a9fdc4b68ebc13e47f9
Reviewed-on: https://chromium-review.googlesource.com/231850
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-25 16:20:33 +00:00
Geoff Lang 4349ab855d Revert "Move as many files as possible from common to libANGLE."
Chromium directly includes our common/version.h and couldn't build after this change.

This reverts commit f0a2c7727f.

Change-Id: Iafc41b1a3973f609518fe3588fdb64cecc285332
Reviewed-on: https://chromium-review.googlesource.com/231840
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-25 15:53:46 +00:00
Geoff Lang f0a2c7727f Move as many files as possible from common to libANGLE.
BUG=angle:733

Change-Id: I40cee6e2e305ac493acbc8649f858785c0569aed
Reviewed-on: https://chromium-review.googlesource.com/231051
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-25 15:29:02 +00:00
Geoff Lang 2b5420c07f Merge libGLESv2 and libEGL classes into libANGLE.
BUG=angle:733

Change-Id: Ic491c971411fe82c56cd97c5c8325ac14ec218df
Reviewed-on: https://chromium-review.googlesource.com/230830
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-21 19:46:02 +00:00
Cooper Partin 980eb8f341 Added ISwapChainPanel support
Change-Id: I26faa32804ee47cb6ad8458c90abeb93a01dfbdf
Reviewed-on: https://chromium-review.googlesource.com/224991
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-04 17:44:55 +00:00
Cooper Partin 88d3b8cb73 Added IInspectable EGLNativeWindowType and ICoreWindow support
Change-Id: I6dd7fef72a73572d4a3deda7ce36a11da3a75c81
Reviewed-on: https://chromium-review.googlesource.com/224366
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-10-20 18:39:45 +00:00
Jamie Madill e020bed5a7 Revert "Added IInspectable EGLNativeWindowType and ICoreWindow support"
Causing regressions in the build: http://build.chromium.org/p/chromium.gpu.fyi/builders/GPU%20Mac%20Builder/builds/20182

This reverts commit 756aebfc7a.

Change-Id: I2f4bdb5aeb429c9bbc5e655a1761704f33737841
Reviewed-on: https://chromium-review.googlesource.com/224221
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-10-20 16:18:16 +00:00
Cooper Partin 756aebfc7a Added IInspectable EGLNativeWindowType and ICoreWindow support
Change-Id: I34e443b1e194800460e441ac6cee42cf68430564
Reviewed-on: https://chromium-review.googlesource.com/224302
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-10-20 15:58:08 +00:00
Shannon Woods 8858cf0a92 Revert "Added IInspectable EGLNativeWindowType and ICoreWindow support" due to build failures on Chromium FYI bots.
This reverts commit 406a3be91c.

Change-Id: Ica2abd2e557a4fd9852d85b7fc018e3d272b6edf
Reviewed-on: https://chromium-review.googlesource.com/224051
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Shannon Woods <[email protected]>
2014-10-17 20:53:49 +00:00
Cooper Partin 406a3be91c Added IInspectable EGLNativeWindowType and ICoreWindow support
Change-Id: I9ad82b7819bcca1c05e7aa60dc2baec4a7bc403c
Reviewed-on: https://chromium-review.googlesource.com/222360
Tested-by: Cooper Partin <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-10-17 20:05:34 +00:00
Kenneth Russell caa549c0fa Split FenceImpl into FenceNVImpl and FenceSyncImpl, and refactor.
Move Windows-specific code out of Fence.cpp. Split FenceImpl
based on suggestions on previous review
https://chromium-review.googlesource.com/221805/ . Refactored
further based on code review feedback and added first unit tests.

BUG=angleproject:774

Change-Id: I630034e1788e48ddb7722016ca22da474e785798
Reviewed-on: https://chromium-review.googlesource.com/222954
Reviewed-by: Kenneth Russell <[email protected]>
Tested-by: Kenneth Russell <[email protected]>
2014-10-15 21:35:54 +00:00
Kenneth Russell e0a2d1c5a8 Add needed static_casts to GLenum for compilation on Linux.
BUG=angleproject:773

Change-Id: I8b01a1f187456eb8997fc7a620b5ecdffb872c19
Reviewed-on: https://chromium-review.googlesource.com/221810
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Kenneth Russell <[email protected]>
2014-10-07 17:48:59 +00:00
Jamie Madill 1ea5350919 Fix image index iterator unit test.
This test was checking out-of-bounds. The bug only showed up in
Linux.

BUG=angle:741

Change-Id: I4cb45fc00dbb0bf9713f735a20fb6fd04bc95140
Reviewed-on: https://chromium-review.googlesource.com/221057
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
2014-10-06 19:56:02 +00:00
Jamie Madill ef4ac5b1df Add ImageIndexIterator.
We can use image index iterators to iterate over all images in a
Texture. This allows us to do some operations in TextureD3D rather
than in the typed subclasses and save on some repeated code.

BUG=angle:729

Change-Id: I3ba47b2eebad2cfca313117fd501ff76d5107044
Reviewed-on: https://chromium-review.googlesource.com/219834
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
2014-09-29 21:04:59 +00:00
Kenneth Russell db8ae16b8b Refactored TransformFeedback for multi-platform ANGLE and added tests.
Added angle_implementation_unit_tests target designed for testing the
cross-platform code in libGLESv2, and libGLESv2_static target as a
dependency. The goal is to incorporate these tests into Chromium's
angle_unittests target on all platforms; however, more work is needed
to make libGLESv2's common code compile on non-Windows platforms, so
this is an intermediate step.

BUG=angle:719

Change-Id: Ifc44a779352294e857d6e913d9b997a60674c443
Reviewed-on: https://chromium-review.googlesource.com/214105
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Kenneth Russell <[email protected]>
2014-08-26 17:10:58 +00:00