I am aware that most of the 3D game engines for HTML5 use WebGL technology, but I had a question when it comes to 2D. Some 2D gaming engines for HTML5 refer to the gl_xxx functions, that is, they use GPU resources to draw 2D, but I have seen some tutorials that use examples where they do not seem to use anything related to WebGL, as if the rendering were done by the CPU, that's right?
When developing a game in 2D for HTML5, will it run on the GPU (via WebGL) or CPU (software rendering)? Or programmer who defines this? Links with examples of different ways to implement a 2D platform would be useful.