Auto merge of #26872 - kunalmohan:gpu-canvas-context, r=kvark,jdm

Implement GPUSwapChain and GPUCanvasContext and interface with Webrender

<!-- Please describe your changes on the following line: -->
r?@kvark

---
<!-- 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: -->
- [ ] 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. -->
This commit is contained in:
bors-servo 2020-06-15 14:22:21 -04:00 committed by GitHub
commit abc3ed40c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 886 additions and 91 deletions

4
Cargo.lock generated
View file

@ -832,6 +832,7 @@ dependencies = [
"style_traits",
"webgpu",
"webrender_api",
"webrender_traits",
"webxr-api",
]
@ -6389,12 +6390,15 @@ name = "webgpu"
version = "0.0.1"
dependencies = [
"arrayvec 0.5.1",
"euclid",
"ipc-channel",
"log",
"malloc_size_of",
"serde",
"servo_config",
"smallvec 0.6.13",
"webrender_api",
"webrender_traits",
"wgpu-core",
"wgpu-types",
]