Index: cc/gl_renderer.cc |
diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc |
index 1b48615a12c70d9a905a4ed3b9166bb1fac04cf0..668dad98db283899377e59a87f67a85543e4b81c 100644 |
--- a/cc/gl_renderer.cc |
+++ b/cc/gl_renderer.cc |
@@ -150,6 +150,10 @@ bool GLRenderer::initialize() |
// The updater can access textures while the GLRenderer is using them. |
m_capabilities.allowPartialTextureUpdates = true; |
+ // Check for texture fast paths. Currently we always use MO8 textures, |
+ // so we only need to avoid POT textures if we have an NPOT fast-path. |
+ m_capabilities.avoidPow2Textures = extensions.count("GL_CHROMIUM_fast_NPOT_MO8_textures"); |
+ |
m_isUsingBindUniform = extensions.count("GL_CHROMIUM_bind_uniform_location"); |
// Make sure scissoring starts as disabled. |