-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6819 from brave/mpilgrim_webgl2_farbling
Implement WebGL2 farbling
- Loading branch information
Showing
4 changed files
with
215 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>WebGL2 getParameter() test</title> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body> | ||
<canvas id="test" width="8" height="8"></canvas> | ||
<script> | ||
var canvas = document.getElementById("test"); | ||
var gl = canvas.getContext("webgl2"); | ||
params = ["MAX_VERTEX_UNIFORM_COMPONENTS", | ||
"MAX_VERTEX_UNIFORM_BLOCKS", | ||
"MAX_VERTEX_OUTPUT_COMPONENTS", | ||
"MAX_VARYING_COMPONENTS", | ||
"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", | ||
"MAX_FRAGMENT_UNIFORM_COMPONENTS", | ||
"MAX_FRAGMENT_UNIFORM_BLOCKS", | ||
"MAX_FRAGMENT_INPUT_COMPONENTS", | ||
"MAX_UNIFORM_BUFFER_BINDINGS", | ||
"MAX_COMBINED_UNIFORM_BLOCKS", | ||
"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", | ||
"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS"]; | ||
var result = []; | ||
for (i in params) { | ||
result.push(gl.getParameter(gl[params[i]])); | ||
} | ||
document.title = result.join(" "); | ||
</script> | ||
</body> | ||
</html> |