Commit Graph
6 Commits
Author SHA1 Message Date
Jamie Madill 89853e8420 Clean up unused variable macros.
We might want UNUSED_ASSERTION as a special case but the unused trace
variable macro was being abused in places.

BUG=angleproject:1290

Change-Id: I5f9252b3ff0484d2e859b9fcf68d5d060b28f1fc
Reviewed-on: https://chromium-review.googlesource.com/324290
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2016-01-28 18:17:17 +00:00
Corentin Wallez 94d099d0fe BitSetIterator_unittest: fix an unreachable code warning
Because gtest's FAIL macro does a return, MSVC complained that the
update part of a range-based for loop was unreachable. Fixed this by
having a boolean value set to true if we execute the loop body.

BUG=angleproject:929

Change-Id: I6c1fec7ed6cf1a3aba6f02b68c1015bee2feebfd
Reviewed-on: https://chromium-review.googlesource.com/296730
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Corentin Wallez <[email protected]>
2015-09-01 19:19:03 +00:00
Jamie Madill b3a60aa923 Store iterator bitset by-value instead of by-reference.
The by-reference method was giving strange problems when using a non-
LValue as argument to IterateBitSet.

BUG=angleproject:1040

Change-Id: Iec10f7256a5b19b239804e0beba4ae675f53f876
Reviewed-on: https://chromium-review.googlesource.com/293840
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-08-17 11:51:04 +00:00
Jamie Madill 6b2a0b0cc2 Reland of "Add Iterable bitset class."
This helper allows us to quickly iterate state bits from the
Impl/Renderer layers.

Re-land with no C++11 usage.

BUG=angleproject:1040
TEST=angle_unittests (Mac/Win/Linux)

Change-Id: I3b6d5beb2bcff7fa3d45c9220d7c026c64c45d2e
Reviewed-on: https://chromium-review.googlesource.com/290153
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Corentin Wallez <[email protected]>
2015-08-05 12:30:01 +00:00
Jamie Madill 9988a028b7 Revert "Add Iterable bitset class."
std::to_ullong is c++11, failing on Mac.

BUG=angleproject:1040

This reverts commit 37a9e71246.

Change-Id: I5cecd1fe95b889feffb556f67d082cec585256f4
Reviewed-on: https://chromium-review.googlesource.com/290211
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-08-03 12:47:06 +00:00
Jamie Madill 37a9e71246 Add Iterable bitset class.
This class allows us to quickly notify Impl/Renderer layers of
which state changed.

BUG=angleproject:1040
TEST=angle_unittests (Mac/Win/Linux)

Change-Id: I2f27bc65b4f627a261e94e3e3b7095b169986cc6
Reviewed-on: https://chromium-review.googlesource.com/289557
Reviewed-by: Corentin Wallez <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-08-03 12:28:19 +00:00