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

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

Issue 2045663002: mac: Remove GPU bug workarounds for OS X versions before 10.9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr comment Created 4 years, 6 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 | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/config/gpu_driver_bug_list.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef GL_GLEXT_PROTOTYPES 5 #ifndef GL_GLEXT_PROTOTYPES
6 #define GL_GLEXT_PROTOTYPES 6 #define GL_GLEXT_PROTOTYPES
7 #endif 7 #endif
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 11 matching lines...) Expand all
22 22
23 #if defined(OS_MACOSX) 23 #if defined(OS_MACOSX)
24 // A test that exercises the glReadPixels workaround for IOSurface backed 24 // A test that exercises the glReadPixels workaround for IOSurface backed
25 // textures. 25 // textures.
26 class GLIOSurfaceReadbackWorkaroundTest : public testing::Test { 26 class GLIOSurfaceReadbackWorkaroundTest : public testing::Test {
27 public: 27 public:
28 GLIOSurfaceReadbackWorkaroundTest() {} 28 GLIOSurfaceReadbackWorkaroundTest() {}
29 29
30 protected: 30 protected:
31 void SetUp() override { 31 void SetUp() override {
32 base::CommandLine command_line(0, NULL); 32 base::CommandLine command_line(0, NULL);
33 command_line.AppendSwitchASCII( 33 gl_.InitializeWithCommandLine(GLManager::Options(), command_line);
34 switches::kGpuDriverBugWorkarounds, 34 gl_.set_use_iosurface_memory_buffers(true);
35 base::IntToString(gpu::IOSURFACE_READBACK_WORKAROUND));
36 gl_.InitializeWithCommandLine(GLManager::Options(), command_line);
37 gl_.set_use_iosurface_memory_buffers(true);
38 DCHECK(gl_.workarounds().iosurface_readback_workaround);
39 } 35 }
40 36
41 void TearDown() override { 37 void TearDown() override {
42 GLTestHelper::CheckGLError("no errors", __LINE__); 38 GLTestHelper::CheckGLError("no errors", __LINE__);
43 gl_.Destroy(); 39 gl_.Destroy();
44 } 40 }
45 41
46 GLManager gl_; 42 GLManager gl_;
47 }; 43 };
48 44
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 78
83 glReleaseTexImage2DCHROMIUM(source_target, image_id); 79 glReleaseTexImage2DCHROMIUM(source_target, image_id);
84 glDestroyImageCHROMIUM(image_id); 80 glDestroyImageCHROMIUM(image_id);
85 glDeleteTextures(1, &source_texture); 81 glDeleteTextures(1, &source_texture);
86 glDeleteFramebuffers(1, &framebuffer); 82 glDeleteFramebuffers(1, &framebuffer);
87 } 83 }
88 84
89 #endif // defined(OS_MACOSX) 85 #endif // defined(OS_MACOSX)
90 86
91 } // namespace gpu 87 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/config/gpu_driver_bug_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698