Commit 20e005b2 by Jamie Madill Committed by Commit Bot

Rename BitSetIterator.h to bitset_utils.h

BUG=angleproject:1814 Change-Id: I152ae13b6b7cf0ba72259967f0f124e199b20e07 Reviewed-on: https://chromium-review.googlesource.com/471826Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 03b333b4
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// BitSetIterator: // bitset_utils:
// A helper class to quickly bitscan bitsets for set bits. // Bitset-related helper classes, such as a fast iterator to scan for set bits.
// //
#ifndef COMMON_BITSETITERATOR_H_ #ifndef COMMON_BITSETITERATOR_H_
...@@ -56,14 +56,12 @@ class BitSetIterator final ...@@ -56,14 +56,12 @@ class BitSetIterator final
}; };
template <size_t N> template <size_t N>
BitSetIterator<N>::BitSetIterator(const std::bitset<N> &bitset) BitSetIterator<N>::BitSetIterator(const std::bitset<N> &bitset) : mBits(bitset)
: mBits(bitset)
{ {
} }
template <size_t N> template <size_t N>
BitSetIterator<N>::BitSetIterator(const BitSetIterator &other) BitSetIterator<N>::BitSetIterator(const BitSetIterator &other) : mBits(other.mBits)
: mBits(other.mBits)
{ {
} }
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// BitSetIteratorTest: // bitset_utils_unittest:
// Test the IterableBitSet class. // Tests bitset helpers and custom classes.
// //
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
using namespace angle; using namespace angle;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "libANGLE/Framebuffer.h" #include "libANGLE/Framebuffer.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/Optional.h" #include "common/Optional.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/Config.h" #include "libANGLE/Config.h"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <algorithm> #include <algorithm>
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/debug.h" #include "common/debug.h"
#include "common/platform.h" #include "common/platform.h"
#include "common/utilities.h" #include "common/utilities.h"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <limits> #include <limits>
#include <string.h> #include <string.h>
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/matrix_utils.h" #include "common/matrix_utils.h"
#include "common/mathutil.h" #include "common/mathutil.h"
#include "libANGLE/Context.h" #include "libANGLE/Context.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/VertexArray.h" #include "libANGLE/VertexArray.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/d3d/FramebufferD3D.h" #include "libANGLE/renderer/d3d/FramebufferD3D.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "libANGLE/formatutils.h" #include "libANGLE/formatutils.h"
#include "libANGLE/Framebuffer.h" #include "libANGLE/Framebuffer.h"
#include "libANGLE/FramebufferAttachment.h" #include "libANGLE/FramebufferAttachment.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/d3d/ProgramD3D.h" #include "libANGLE/renderer/d3d/ProgramD3D.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/Framebuffer.h" #include "libANGLE/Framebuffer.h"
#include "libANGLE/FramebufferAttachment.h" #include "libANGLE/FramebufferAttachment.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "libANGLE/renderer/d3d/VertexDataManager.h" #include "libANGLE/renderer/d3d/VertexDataManager.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "libANGLE/Buffer.h" #include "libANGLE/Buffer.h"
#include "libANGLE/formatutils.h" #include "libANGLE/formatutils.h"
#include "libANGLE/Program.h" #include "libANGLE/Program.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "libANGLE/renderer/d3d/d3d11/Framebuffer11.h" #include "libANGLE/renderer/d3d/d3d11/Framebuffer11.h"
#include "common/debug.h" #include "common/debug.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "libANGLE/renderer/d3d/d3d11/Buffer11.h" #include "libANGLE/renderer/d3d/d3d11/Buffer11.h"
#include "libANGLE/renderer/d3d/d3d11/Clear11.h" #include "libANGLE/renderer/d3d/d3d11/Clear11.h"
#include "libANGLE/renderer/d3d/d3d11/TextureStorage11.h" #include "libANGLE/renderer/d3d/d3d11/TextureStorage11.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "libANGLE/renderer/d3d/d3d11/InputLayoutCache.h" #include "libANGLE/renderer/d3d/d3d11/InputLayoutCache.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/Program.h" #include "libANGLE/Program.h"
#include "libANGLE/VertexAttribute.h" #include "libANGLE/VertexAttribute.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/d3d/d3d11/StateManager11.h" #include "libANGLE/renderer/d3d/d3d11/StateManager11.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/Query.h" #include "libANGLE/Query.h"
#include "libANGLE/VertexArray.h" #include "libANGLE/VertexArray.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "libANGLE/renderer/d3d/d3d11/VertexArray11.h" #include "libANGLE/renderer/d3d/d3d11/VertexArray11.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "libANGLE/renderer/d3d/d3d11/Buffer11.h" #include "libANGLE/renderer/d3d/d3d11/Buffer11.h"
using namespace angle; using namespace angle;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// StateManager9.cpp: Defines a class for caching D3D9 state // StateManager9.cpp: Defines a class for caching D3D9 state
#include "libANGLE/renderer/d3d/d3d9/StateManager9.h" #include "libANGLE/renderer/d3d/d3d9/StateManager9.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/formatutils.h" #include "libANGLE/formatutils.h"
#include "libANGLE/renderer/d3d/d3d9/renderer9_utils.h" #include "libANGLE/renderer/d3d/d3d9/renderer9_utils.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/gl/FramebufferGL.h" #include "libANGLE/renderer/gl/FramebufferGL.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/debug.h" #include "common/debug.h"
#include "libANGLE/ContextState.h" #include "libANGLE/ContextState.h"
#include "libANGLE/State.h" #include "libANGLE/State.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/gl/ProgramGL.h" #include "libANGLE/renderer/gl/ProgramGL.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/angleutils.h" #include "common/angleutils.h"
#include "common/debug.h" #include "common/debug.h"
#include "common/string_utils.h" #include "common/string_utils.h"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <limits> #include <limits>
#include <string.h> #include <string.h>
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/mathutil.h" #include "common/mathutil.h"
#include "common/matrix_utils.h" #include "common/matrix_utils.h"
#include "libANGLE/ContextState.h" #include "libANGLE/ContextState.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/gl/TextureGL.h" #include "libANGLE/renderer/gl/TextureGL.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/debug.h" #include "common/debug.h"
#include "common/utilities.h" #include "common/utilities.h"
#include "libANGLE/State.h" #include "libANGLE/State.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "libANGLE/renderer/gl/VertexArrayGL.h" #include "libANGLE/renderer/gl/VertexArrayGL.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/debug.h" #include "common/debug.h"
#include "common/mathutil.h" #include "common/mathutil.h"
#include "common/utilities.h" #include "common/utilities.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "libANGLE/renderer/vulkan/ContextVk.h" #include "libANGLE/renderer/vulkan/ContextVk.h"
#include "common/BitSetIterator.h" #include "common/bitset_utils.h"
#include "common/debug.h" #include "common/debug.h"
#include "libANGLE/Program.h" #include "libANGLE/Program.h"
#include "libANGLE/renderer/vulkan/BufferVk.h" #include "libANGLE/renderer/vulkan/BufferVk.h"
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
# These file lists are shared with the GN build. # These file lists are shared with the GN build.
'libangle_common_sources': 'libangle_common_sources':
[ [
'common/BitSetIterator.h',
'common/Color.h', 'common/Color.h',
'common/Color.inl', 'common/Color.inl',
'common/Float16ToFloat32.cpp', 'common/Float16ToFloat32.cpp',
...@@ -17,6 +16,7 @@ ...@@ -17,6 +16,7 @@
'common/Optional.h', 'common/Optional.h',
'common/angleutils.cpp', 'common/angleutils.cpp',
'common/angleutils.h', 'common/angleutils.h',
'common/bitset_utils.h',
'common/debug.cpp', 'common/debug.cpp',
'common/debug.h', 'common/debug.h',
'common/mathutil.cpp', 'common/mathutil.cpp',
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
{ {
'angle_unittests_sources': 'angle_unittests_sources':
[ [
'<(angle_path)/src/common/BitSetIterator_unittest.cpp',
'<(angle_path)/src/common/Optional_unittest.cpp', '<(angle_path)/src/common/Optional_unittest.cpp',
'<(angle_path)/src/common/bitset_utils_unittest.cpp',
'<(angle_path)/src/common/mathutil_unittest.cpp', '<(angle_path)/src/common/mathutil_unittest.cpp',
'<(angle_path)/src/common/matrix_utils_unittest.cpp', '<(angle_path)/src/common/matrix_utils_unittest.cpp',
'<(angle_path)/src/common/string_utils_unittest.cpp', '<(angle_path)/src/common/string_utils_unittest.cpp',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment