mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #10224 - emilio:shader-type-validations, r=jdm
webgl: Add attribute validations and other nits Fixes https://github.com/servo/servo/issues/9958 Depends on a bunch of prs, and needs a test. r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10224) <!-- Reviewable:end -->
This commit is contained in:
commit
f0014bd9cd
9 changed files with 144 additions and 44 deletions
|
@ -39,7 +39,7 @@ use msg::webdriver_msg;
|
|||
use net_traits::image_cache_thread::ImageCacheThread;
|
||||
use net_traits::storage_thread::{StorageThread, StorageThreadMsg};
|
||||
use net_traits::{self, ResourceThread};
|
||||
use offscreen_gl_context::GLContextAttributes;
|
||||
use offscreen_gl_context::{GLContextAttributes, GLLimits};
|
||||
use pipeline::{CompositionPipeline, InitialPipelineState, Pipeline, UnprivilegedPipelineContent};
|
||||
use profile_traits::mem;
|
||||
use profile_traits::time;
|
||||
|
@ -1349,11 +1349,11 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF>
|
|||
&mut self,
|
||||
size: &Size2D<i32>,
|
||||
attributes: GLContextAttributes,
|
||||
response_sender: IpcSender<Result<IpcSender<CanvasMsg>, String>>) {
|
||||
response_sender: IpcSender<Result<(IpcSender<CanvasMsg>, GLLimits), String>>) {
|
||||
let webrender_api = self.webrender_api_sender.clone();
|
||||
let sender = WebGLPaintThread::start(*size, attributes, webrender_api);
|
||||
let response = WebGLPaintThread::start(*size, attributes, webrender_api);
|
||||
|
||||
response_sender.send(sender)
|
||||
response_sender.send(response)
|
||||
.unwrap_or_else(|e| debug!("Create WebGL paint thread response failed ({})", e))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue