Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html

Issue 13842017: Add OES_texture_half_float extension support in WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move test cases to directory LayoutTest/webgl/ Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html
diff --git a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-video.html b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html
similarity index 82%
copy from LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-video.html
copy to LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html
index 0deb7aee8a799fc17c2d39a4445fa9f485272a0d..17ba65d1996931582e383cfabfb37cffcf952289 100644
--- a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-video.html
+++ b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html
@@ -1,7 +1,7 @@
<!--
/*
-** Copyright (c) 2012 The Khronos Group Inc.
+** Copyright (c) 2013 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
@@ -37,17 +37,22 @@
<script>
"use strict";
function testPrologue(gl) {
- if (!gl.getExtension("OES_texture_float")) {
- testPassed("No OES_texture_float support -- this is legal");
+ var ext = null;
+
+ if (!(ext = gl.getExtension("OES_texture_half_float"))) {
+ testPassed("No OES_texture_half_float support -- this is legal");
return false;
}
- testPassed("Successfully enabled OES_texture_float extension");
+ // Required by the test harness.
+ gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES;
+
+ testPassed("Successfully enabled OES_texture_half_float extension");
return true;
}
</script>
</head>
-<body onload='generateTest("RGBA", "FLOAT", testPrologue)()'>
+<body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>

Powered by Google App Engine
This is Rietveld 408576698