Index: ui/gfx/mac/io_surface.cc |
diff --git a/ui/gfx/mac/io_surface.cc b/ui/gfx/mac/io_surface.cc |
index 13b65aad740039f03fc98d58541ad9a34b40756a..3560790b28138f1b11f1145ec5024cd31562edc6 100644 |
--- a/ui/gfx/mac/io_surface.cc |
+++ b/ui/gfx/mac/io_surface.cc |
@@ -164,7 +164,7 @@ IOSurfaceRef CreateIOSurface(const gfx::Size& size, gfx::BufferFormat format) { |
// https://crbug.com/594343. |
// IOSurface clearing causes significant performance regression on about half |
// of all devices running Yosemite. https://crbug.com/606850#c22. |
- bool should_clear = !base::mac::IsOSMavericks() && !base::mac::IsOSYosemite(); |
+ bool should_clear = !base::mac::IsOS10_9() && !base::mac::IsOS10_10(); |
if (should_clear) { |
// Zero-initialize the IOSurface. Calling IOSurfaceLock/IOSurfaceUnlock |