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

Unified Diff: cc/software_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/software_renderer.cc
diff --git a/cc/software_renderer.cc b/cc/software_renderer.cc
index 632f335d70bacdb4c4b8b249c9af2127182bae14..87b6fbf8847a0925784d65e1f39536a5e7c8ecd6 100644
--- a/cc/software_renderer.cc
+++ b/cc/software_renderer.cc
@@ -65,8 +65,8 @@ SoftwareRenderer::SoftwareRenderer(RendererClient* client, ResourceProvider* res
{
m_resourceProvider->setDefaultResourceType(ResourceProvider::Bitmap);
- m_capabilities.maxTextureSize = INT_MAX;
- m_capabilities.bestTextureFormat = GL_RGBA;
+ m_capabilities.maxTextureSize = m_resourceProvider->maxTextureSize();
+ m_capabilities.bestTextureFormat = m_resourceProvider->bestTextureFormat();
m_capabilities.usingSetVisibility = true;
// The updater can access bitmaps while the SoftwareRenderer is using them.
m_capabilities.allowPartialTextureUpdates = true;

Powered by Google App Engine
This is Rietveld 408576698