-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GL: port label() / setLabel() away from std::string.
All the tests were updated to explicitly check that non-null-terminated strings get handled properly (the GL label APIs have an explicit size, so it *should*, but just in case). Also, because various subclasses override the setter to return correct type for method chaining and the override has to be deinlined to avoid relying on a StringView include, the tests are now explicitly done for each leaf class, instead of the subclass The <string> being removed from the base class for all GL objects may affect downstream projects which relied on it being included. In case of Magnum, the breakages were already fixed in the previous commit. Compile time improvement for the MagnumGL library alone is 0.2 second or 4% (6.1 seconds before, 5.9 after). Not bad, given that there's three more files to compile and strings are still heavily used in other GL debug output APIs and all shader stuff. For a build of just the GL library and all tests, it goes down from 28.9 seconds to 28.1. Most tests also still rely quite heavily on std::stringstream for debug output testing, so the numbers still could go further.
- Loading branch information
Showing
68 changed files
with
1,046 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.