OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file defines tests that implementations of GLImage should pass in order | 5 // This file defines tests that implementations of GLImage should pass in order |
6 // to be conformant. | 6 // to be conformant. |
7 | 7 |
8 #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ | 8 #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ |
9 #define UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ | 9 #define UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ |
10 | 10 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
218 class GLImageZeroInitializeTest : public GLImageTest<GLImageTestDelegate> {}; | 218 class GLImageZeroInitializeTest : public GLImageTest<GLImageTestDelegate> {}; |
219 | 219 |
220 // This test verifies that if an uninitialized image is bound to a texture, the | 220 // This test verifies that if an uninitialized image is bound to a texture, the |
221 // result is zero-initialized. | 221 // result is zero-initialized. |
222 TYPED_TEST_CASE_P(GLImageZeroInitializeTest); | 222 TYPED_TEST_CASE_P(GLImageZeroInitializeTest); |
223 | 223 |
224 TYPED_TEST_P(GLImageZeroInitializeTest, ZeroInitialize) { | 224 TYPED_TEST_P(GLImageZeroInitializeTest, ZeroInitialize) { |
225 #if defined(OS_MACOSX) | 225 #if defined(OS_MACOSX) |
226 // This functionality is disabled on Mavericks because it breaks PDF | 226 // This functionality is disabled on Mavericks because it breaks PDF |
227 // rendering. https://crbug.com/594343. | 227 // rendering. https://crbug.com/594343. |
228 if (base::mac::IsOS10_9()) | 228 if (!base::mac::IsAtLeastOS10_10()) |
Mark Mentovai
2016/08/29 17:57:56
Considering the very next line, you should unify t
Sidney San Martín
2016/08/29 19:26:14
Done.
| |
229 return; | 229 return; |
230 | 230 |
231 // This functionality is disabled on Yosemite because it is suspected of | 231 // This functionality is disabled on Yosemite because it is suspected of |
232 // causing performance regressions on old hardware. https://crbug.com/606850. | 232 // causing performance regressions on old hardware. https://crbug.com/606850. |
233 if (base::mac::IsOS10_10()) | 233 if (base::mac::IsOS10_10()) |
234 return; | 234 return; |
235 #endif | 235 #endif |
236 | 236 |
237 const gfx::Size image_size(256, 256); | 237 const gfx::Size image_size(256, 256); |
238 | 238 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
383 } | 383 } |
384 } | 384 } |
385 | 385 |
386 // The GLImageCopyTest test case verifies that the GLImage implementation | 386 // The GLImageCopyTest test case verifies that the GLImage implementation |
387 // handles CopyTexImage correctly. | 387 // handles CopyTexImage correctly. |
388 REGISTER_TYPED_TEST_CASE_P(GLImageCopyTest, CopyTexImage); | 388 REGISTER_TYPED_TEST_CASE_P(GLImageCopyTest, CopyTexImage); |
389 | 389 |
390 } // namespace gl | 390 } // namespace gl |
391 | 391 |
392 #endif // UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ | 392 #endif // UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ |
OLD | NEW |