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

Side by Side Diff: gpu/command_buffer/tests/gl_depth_texture_unittest.cc

Issue 11413194: Skip DepthTextureTest.RenderTo on a few bots to keep them green (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 7
8 #include "gpu/command_buffer/tests/gl_manager.h" 8 #include "gpu/command_buffer/tests/gl_manager.h"
9 #include "gpu/command_buffer/tests/gl_test_utils.h" 9 #include "gpu/command_buffer/tests/gl_test_utils.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 namespace { 56 namespace {
57 57
58 struct FormatType { 58 struct FormatType {
59 GLenum format; 59 GLenum format;
60 GLenum type; 60 GLenum type;
61 }; 61 };
62 62
63 } // anonymous namespace 63 } // anonymous namespace
64 64
65 TEST_F(DepthTextureTest, RenderTo) { 65 // crbug.com/135228
66 // Fails on Win Intel, Linux Intel; flaky on Linux ATI
67 #if ((defined(OS_WIN) || defined(OS_LINUX)) && defined(NDEBUG))
68 #define MAYBE_RenderTo FAILS_RenderTo
69 #else
70 #define MAYBE_RenderTo RenderTo
71 #endif
72
73 TEST_F(DepthTextureTest, MAYBE_RenderTo) {
66 if (!GLTestHelper::HasExtension("GL_CHROMIUM_depth_texture")) { 74 if (!GLTestHelper::HasExtension("GL_CHROMIUM_depth_texture")) {
67 return; 75 return;
68 } 76 }
69 77
70 bool have_depth_stencil = GLTestHelper::HasExtension( 78 bool have_depth_stencil = GLTestHelper::HasExtension(
71 "GL_OES_packed_depth_stencil"); 79 "GL_OES_packed_depth_stencil");
72 80
73 static const char* v_shader_str = SHADER( 81 static const char* v_shader_str = SHADER(
74 attribute vec4 v_position; 82 attribute vec4 v_position;
75 void main() 83 void main()
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 actual_pixels[(kResolution * kResolution - 1) * 4] - actual_pixels[0], 207 actual_pixels[(kResolution * kResolution - 1) * 4] - actual_pixels[0],
200 0xC0); 208 0xC0);
201 GLTestHelper::CheckGLError("no errors", __LINE__); 209 GLTestHelper::CheckGLError("no errors", __LINE__);
202 } 210 }
203 } 211 }
204 212
205 } // namespace gpu 213 } // namespace gpu
206 214
207 215
208 216
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698