mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #20884 - jdm:more-limits, r=avadacatavra
Don't forward GL parameter gets for constant limits. This avoids IPC traffic for unchanging constants that are determined when the GL context is created. These changes require https://github.com/emilio/rust-offscreen-rendering-context/pull/123. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20876. - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20884) <!-- Reviewable:end -->
This commit is contained in:
commit
022daccbe1
6 changed files with 38 additions and 19 deletions
|
@ -18,7 +18,7 @@ lazy_static = "1"
|
|||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = { path = "../malloc_size_of_derive" }
|
||||
nonzero = {path = "../nonzero"}
|
||||
offscreen_gl_context = {version = "0.16", features = ["serde"]}
|
||||
offscreen_gl_context = {version = "0.17", features = ["serde"]}
|
||||
serde = "1.0"
|
||||
serde_bytes = "0.10"
|
||||
servo_config = {path = "../config"}
|
||||
|
|
|
@ -480,16 +480,6 @@ parameters! {
|
|||
FrontFace = gl::FRONT_FACE,
|
||||
GenerateMipmapHint = gl::GENERATE_MIPMAP_HINT,
|
||||
GreenBits = gl::GREEN_BITS,
|
||||
MaxCombinedTextureImageUnits = gl::MAX_COMBINED_TEXTURE_IMAGE_UNITS,
|
||||
MaxCubeMapTextureSize = gl::MAX_CUBE_MAP_TEXTURE_SIZE,
|
||||
MaxFragmentUniformVectors = gl::MAX_FRAGMENT_UNIFORM_VECTORS,
|
||||
MaxRenderbufferSize = gl::MAX_RENDERBUFFER_SIZE,
|
||||
MaxTextureImageUnits = gl::MAX_TEXTURE_IMAGE_UNITS,
|
||||
MaxTextureSize = gl::MAX_TEXTURE_SIZE,
|
||||
MaxVaryingVectors = gl::MAX_VARYING_VECTORS,
|
||||
MaxVertexAttribs = gl::MAX_VERTEX_ATTRIBS,
|
||||
MaxVertexTextureImageUnits = gl::MAX_VERTEX_TEXTURE_IMAGE_UNITS,
|
||||
MaxVertexUniformVectors = gl::MAX_VERTEX_UNIFORM_VECTORS,
|
||||
PackAlignment = gl::PACK_ALIGNMENT,
|
||||
RedBits = gl::RED_BITS,
|
||||
SampleBuffers = gl::SAMPLE_BUFFERS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue