mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
8346a766e0
Within DrawTargetWebgl, this implements a SharedContext class to store both the WebGL context and also related resources for drawing with it. Not a lot of new code has actually been added as this was mostly accomplished by refactoring as much drawing code as possible that touched the WebGL context to be moved into SharedContext, while leaving any code that was only dealing with Skia software rasterization still within DrawTargetWebgl itself as well as individual framebuffer state that is unique to each DrawTargetWebgl instance. Before DrawTargetWebgl can use SharedContext to draw, it must use SetTarget to install its framebuffer as the one that the WebGL context will draw to as well as to learn details about the viewport and other per-framebuffer state. All of the high-level cache state that was previously on DrawTargetWebgl has now moved into SharedContext, so that SharedContext can easily access this for drawing as well as to provide for the goal of simplifying resource limiting. Differential Revision: https://phabricator.services.mozilla.com/D138117 |
||
---|---|---|
.. | ||
brotli | ||
fdlibm | ||
freetype2 | ||
libjar | ||
libmar | ||
libpref | ||
woff2 | ||
xz-embedded | ||
zlib | ||
moz.build |