summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/tests/gl_unittest.cc
diff options
context:
space:
mode:
authorericrk <ericrk@chromium.org>2015-10-01 15:18:54 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-01 22:20:02 +0000
commited27437d3a0a58534dd6cb877b18d2d60d1d21fe (patch)
tree39b572acf61de1d3dcda428603a8dc865c1b4f9b /gpu/command_buffer/tests/gl_unittest.cc
parent58ceda20a5582479d58d884a7b99b58064385b3f (diff)
downloadchromium_src-ed27437d3a0a58534dd6cb877b18d2d60d1d21fe.zip
chromium_src-ed27437d3a0a58534dd6cb877b18d2d60d1d21fe.tar.gz
chromium_src-ed27437d3a0a58534dd6cb877b18d2d60d1d21fe.tar.bz2
Blacklist MSAA for GPU Raster on Intel GPUs
Intel GPUs have unacceptable performance for GPU raster when MSAA is enabled. This has been tested on recent Intel GPUs on CrOS, Mac, and Windows. Given this we’re adding a workaround for Intel GPUs which will disable MSAA for GPU raster. We don’t want to impact WebGL, so this workaround specifically targets non-WebGL contexts. I’ve updated FeatureInfo’s Initialize function to accept the context type, which allows us to customize features based on webgl/non-webgl. I’ve also changed the secondary version of Initialize, which takes no arguments, to be InitializeForTesting, as this function is only called in tests. BUG=527565 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1374043005 Cr-Commit-Position: refs/heads/master@{#351904}
Diffstat (limited to 'gpu/command_buffer/tests/gl_unittest.cc')
-rw-r--r--gpu/command_buffer/tests/gl_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/tests/gl_unittest.cc b/gpu/command_buffer/tests/gl_unittest.cc
index 165d3b1..70d35df 100644
--- a/gpu/command_buffer/tests/gl_unittest.cc
+++ b/gpu/command_buffer/tests/gl_unittest.cc
@@ -91,7 +91,7 @@ TEST_F(GLTest, SimpleShader) {
TEST_F(GLTest, FeatureFlagsMatchCapabilities) {
scoped_refptr<gles2::FeatureInfo> features = new gles2::FeatureInfo;
- EXPECT_TRUE(features->Initialize());
+ EXPECT_TRUE(features->InitializeForTesting());
const auto& caps = gl_.GetCapabilities();
const auto& flags = features->feature_flags();
EXPECT_EQ(caps.egl_image_external, flags.oes_egl_image_external);