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

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

Issue 14113033: Landing https://codereview.chromium.org/13842017 for jun.a.jiang@intel.com: Add OES_texture_half_fl… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-image.html
diff --git a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-image.html b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image.html
similarity index 79%
copy from LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-image.html
copy to LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image.html
index bd4bdc9ce8e44924191c3ca72def04d195f16ef1..2f2ebf1ffba4fae034c1760bafbfe10fb8230e40 100644
--- a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-image.html
+++ b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image.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