gecko-dev/servo/components
Imanol Fernandez 735f73f9e3 servo: Merge #18580 - Associate WebGL textures with texture units (from MortimerGoro:webgl_active_texture); r=jdm
<!-- Please describe your changes on the following line: -->

Currently `bound_texture_2d` and `bound_texture_cube_map` fields are used to restore texture states and to get the current bindings in GetParams(...). But as soon as active texture is changed all the values can become dirty, leading to broken textures in some demos or invalid getParam(...) call results.

This PR implements the texture binding association with the texture units.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: ffa03380caee4cf1ffd0c43a219936cb9a2e0b85

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ec3106ad7b93adf69aaedf9007d3af8bcac2d6b0
2017-09-28 14:12:06 -05:00
..
atoms servo: Merge #18368 - Do not NIH queueing a task to fire an event in htmlmediaelement (from servo:media-event-cleanup); r=emilio 2017-09-04 09:20:53 -05:00
bluetooth servo: Merge #18540 - Use BluetoothAdapter mock when bluetooth is disabled (from paulrouget:no_bt); r=nox 2017-09-17 07:16:07 -05:00
bluetooth_traits servo: Merge #17355 - Bump serde to 1.0 (from servo:serdeup); r=nox 2017-06-16 05:03:18 -07:00
canvas servo: Merge #18575 - Improve Webrender<->WebGL synchronization (from MortimerGoro:webgl_flickering); r=glennw 2017-09-20 22:08:17 -05:00
canvas_traits servo: Merge #18575 - Improve Webrender<->WebGL synchronization (from MortimerGoro:webgl_flickering); r=glennw 2017-09-20 22:08:17 -05:00
compositing servo: Merge #18598 - Update WR (work around a mac GL driver bug) (from glennw:update-wr-driver-bug); r=emilio 2017-09-24 16:13:47 -05:00
config servo: Merge #18295 - enable antialiasing by default (from paulrouget:better_default_options); r=jdm 2017-08-29 11:26:45 -05:00
constellation servo: Merge #17083 - "javascript:" urls: execute in correct global scope (from danielj41:javascript-url-global-3); r=jdm 2017-09-09 04:39:43 -05:00
debugger servo: Merge #16013 - Enable the debugger on Android (from nox:mio); r=larsbergstrom 2017-03-17 08:36:27 -07:00
deny_public_fields servo: Merge #17514 - deny_public_fields: display field identifier in help message (from HarveyHunt:deny-public-fields-error-message); r=jdm 2017-06-25 10:45:42 -07:00
devtools servo: Merge #18046 - Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) (from servo:rustup); r=emilio 2017-08-15 07:31:04 -05:00
devtools_traits servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
dom_struct servo: Merge #18340 - Use the better TokenStream API in dom_struct (from servo:dom-struct-errors); r=SimonSapin 2017-09-02 00:48:29 -05:00
domobject_derive servo: Merge #18204 - Fix quote dependency version (from servo:quote); r=bustage 2017-08-23 12:13:18 -05:00
fallible servo: Merge #18460 - Bug 1398593 - stylo: mitigate performance impact of fallible allocati… (from julian-seward1:master); r=emilio 2017-09-12 15:25:52 -05:00
geometry servo: Merge #17355 - Bump serde to 1.0 (from servo:serdeup); r=nox 2017-06-16 05:03:18 -07:00
gfx servo: Merge #18598 - Update WR (work around a mac GL driver bug) (from glennw:update-wr-driver-bug); r=emilio 2017-09-24 16:13:47 -05:00
gfx_traits servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
hashglobe servo: Merge #18460 - Bug 1398593 - stylo: mitigate performance impact of fallible allocati… (from julian-seward1:master); r=emilio 2017-09-12 15:25:52 -05:00
jstraceable_derive servo: Merge #18204 - Fix quote dependency version (from servo:quote); r=bustage 2017-08-23 12:13:18 -05:00
layout servo: Merge #18635 - Rename JS<T> to Dom<T>, Root<T> to DomRoot<T>, and other things (from servo:RENAME-ALL-THE-THINGS); r=emilio 2017-09-26 03:20:05 -05:00
layout_thread servo: Merge #18638 - style: Lazily tweak the traversal root to account for sibling invalidations (from emilio:invalidation-lazy); r=heycam 2017-09-26 06:58:04 -05:00
layout_traits servo: Merge #17908 - WR multi-document update - try 2 (from kvark:wr); r=emilio 2017-07-29 07:38:23 -05:00
lru_cache servo: Merge #18589 - Plumbing for the nth-index cache (from bholley:nth_index_plumbing); r=emilio 2017-09-21 01:24:01 -05:00
malloc_size_of servo: Merge #18637 - Two small tweaks related to MallocSizeOf (from nnethercote:rename-add_size_of_children); r=emilio 2017-09-26 05:52:34 -05:00
malloc_size_of_derive servo: Merge #18452 - Overhaul MallocSizeOf and related things (from nnethercote:bug-1398737); r=jdm 2017-09-11 22:11:25 -05:00
metrics servo: Merge #18155 - Add paint metrics to Performance Timeline API (from ferjm:pwm.perf.timeline); r=jdm 2017-08-23 15:06:12 -05:00
msg servo: Merge #18523 - Make pipeline ids non-zero so that optional ids take no extra space (from asajeffrey:pipeline-id-nonzero); r=mbrubeck 2017-09-18 15:50:57 -05:00
net servo: Merge #18576 - Update some dependencies to fix some warnings (from servo:warn); r=nox 2017-09-20 07:49:42 -05:00
net_traits servo: Merge #18598 - Update WR (work around a mac GL driver bug) (from glennw:update-wr-driver-bug); r=emilio 2017-09-24 16:13:47 -05:00
profile servo: Merge #18324 - Make Performance Timeline API work in Workers (from ferjm:performance.workers); r=jdm 2017-09-05 17:00:26 -05:00
profile_traits servo: Merge #18324 - Make Performance Timeline API work in Workers (from ferjm:performance.workers); r=jdm 2017-09-05 17:00:26 -05:00
rand servo: Merge #15107 - convert less interesting debug! logs to traces (from DexterHaslem:15100-convert-debug-to-traces); r=cbrewster 2017-01-18 21:29:59 -08:00
range servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
remutex servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
script servo: Merge #18580 - Associate WebGL textures with texture units (from MortimerGoro:webgl_active_texture); r=jdm 2017-09-28 14:12:06 -05:00
script_layout_interface servo: Merge #18635 - Rename JS<T> to Dom<T>, Root<T> to DomRoot<T>, and other things (from servo:RENAME-ALL-THE-THINGS); r=emilio 2017-09-26 03:20:05 -05:00
script_plugins servo: Merge #18580 - Associate WebGL textures with texture units (from MortimerGoro:webgl_active_texture); r=jdm 2017-09-28 14:12:06 -05:00
script_traits servo: Merge #18533 - Rename Runnable to Task and other improvements (from servo:TASKS); r=SimonSapin 2017-09-18 14:42:50 -05:00
selectors servo: Merge #18621 - selectors: Remove unused crate (from emilio:unused-crate); r=glennw 2017-09-24 21:05:49 -05:00
servo servo: Merge #18575 - Improve Webrender<->WebGL synchronization (from MortimerGoro:webgl_flickering); r=glennw 2017-09-20 22:08:17 -05:00
servo_arc servo: Merge #18509 - style: Share user agent cascade data across documents (from emilio:ua-sheet-share-cascade-data); r=SimonSapin 2017-09-15 12:43:18 -07:00
size_of_test servo: Merge #16870 - Add size_of tests for geckolib selectors (from servo:size_of); r=emilio 2017-05-16 04:00:30 -05:00
style servo: Merge #18660 - Don't use inherited custom properties for substitution (from upsuper:var-sub-inherit); r=emilio 2017-09-28 09:06:48 -05:00
style_derive servo: Merge #18300 - style: Remove HasViewportPercentage (from emilio:die-hvp-die); r=nox 2017-08-30 04:31:11 -05:00
style_traits servo: Merge #18620 - style: Remove UnsafeNode (from emilio:bye-unsafe-node); r=glennw 2017-09-24 20:04:58 -05:00
url servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
webdriver_server servo: Merge #18598 - Update WR (work around a mac GL driver bug) (from glennw:update-wr-driver-bug); r=emilio 2017-09-24 16:13:47 -05:00
webvr servo: Merge #18316 - Update rust-webvr to 0.8 (from MortimerGoro:rust_webvr_0.8); r=jdm 2017-08-30 22:08:31 -05:00
webvr_traits servo: Merge #18316 - Update rust-webvr to 0.8 (from MortimerGoro:rust_webvr_0.8); r=jdm 2017-08-30 22:08:31 -05:00