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

Side by Side Diff: ui/gl/test/gl_image_test_template.h

Issue 2271653006: base::mac::IsOSSierra() -> base::mac::IsOS10_12(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Nits Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/render_text_mac.mm ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::IsOSMavericks()) 228 if (base::mac::IsOS10_9())
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::IsOSYosemite()) 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
239 GLuint framebuffer = 239 GLuint framebuffer =
240 GLTestHelper::SetupFramebuffer(image_size.width(), image_size.height()); 240 GLTestHelper::SetupFramebuffer(image_size.width(), image_size.height());
241 ASSERT_TRUE(framebuffer); 241 ASSERT_TRUE(framebuffer);
242 glBindFramebufferEXT(GL_FRAMEBUFFER, framebuffer); 242 glBindFramebufferEXT(GL_FRAMEBUFFER, framebuffer);
243 glViewport(0, 0, image_size.width(), image_size.height()); 243 glViewport(0, 0, image_size.width(), image_size.height());
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/gfx/render_text_mac.mm ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698