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

Unified Diff: cc/gl_renderer.cc

Issue 11464007: Add the DelegatingRenderer class with its initialize path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize() Created 8 years 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
Index: cc/gl_renderer.cc
diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc
index e6253626ba0a612a41b3190ef762aea31a3e9d86..4316c390205903b52d1e30416125cc622786360c 100644
--- a/cc/gl_renderer.cc
+++ b/cc/gl_renderer.cc
@@ -13,7 +13,6 @@
#include "cc/geometry_binding.h"
#include "cc/layer_quad.h"
#include "cc/math_util.h"
-#include "cc/platform_color.h"
#include "cc/priority_calculator.h"
#include "cc/proxy.h"
#include "cc/render_pass.h"
@@ -123,8 +122,8 @@ bool GLRenderer::initialize()
m_capabilities.usingEglImage = extensions.count("GL_OES_EGL_image_external");
- GLC(m_context, m_context->getIntegerv(GL_MAX_TEXTURE_SIZE, &m_capabilities.maxTextureSize));
- m_capabilities.bestTextureFormat = PlatformColor::bestTextureFormat(m_context, extensions.count("GL_EXT_texture_format_BGRA8888"));
+ m_capabilities.maxTextureSize = m_resourceProvider->maxTextureSize();
+ m_capabilities.bestTextureFormat = m_resourceProvider->bestTextureFormat();
// The updater can access textures while the GLRenderer is using them.
m_capabilities.allowPartialTextureUpdates = true;

Powered by Google App Engine
This is Rietveld 408576698