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

Unified Diff: cc/gl_renderer.cc

Issue 12217102: cc: Avoid power of two textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower-case vendor. Created 7 years, 10 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 | cc/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698