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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 7740010: Use workaround for Mac NVIDIA driver bug on Lion as well. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.cc (revision 98128)
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy)
@@ -15,9 +15,6 @@
#include "base/atomicops.h"
#include "base/at_exit.h"
#include "base/callback.h"
-#if defined(OS_MACOSX)
-#include "base/mac/mac_util.h"
-#endif
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
@@ -1944,8 +1941,7 @@
const char* vendor_str = reinterpret_cast<const char*>(
glGetString(GL_VENDOR));
needs_mac_nvidia_driver_workaround_ =
- vendor_str && strstr(vendor_str, "NVIDIA") &&
- base::mac::IsOSSnowLeopardOrEarlier();
+ vendor_str && strstr(vendor_str, "NVIDIA");
#endif
if (!InitializeShaderTranslator()) {
@@ -2530,7 +2526,9 @@
RestoreClearState();
}
- // Workaround for driver bug on OS X 10.6.x and earlier; crbug.com/89557
+ // Workaround for NVIDIA driver bug on OS X; crbug.com/89557,
+ // crbug.com/94163. TODO(kbr): figure out reproduction so Apple will
+ // fix this.
if (needs_mac_nvidia_driver_workaround_)
offscreen_saved_frame_buffer_->Create();
« 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