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

Unified Diff: cc/resource_provider.cc

Issue 11367054: cc: Move textureUploadFlushPeriod to TextureUploader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « cc/resource_provider.h ('k') | cc/resource_update_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_provider.cc
diff --git a/cc/resource_provider.cc b/cc/resource_provider.cc
index dab281a92d37ec69c644b1cceea24fcf1deac758..2eb5fc40c89250b8e87f4bcad777c643534a2158 100644
--- a/cc/resource_provider.cc
+++ b/cc/resource_provider.cc
@@ -329,6 +329,14 @@ double ResourceProvider::estimatedUploadsPerSecond()
return m_textureUploader->estimatedTexturesPerSecond();
}
+void ResourceProvider::flushUploads()
+{
+ if (!m_textureUploader)
+ return;
+
+ m_textureUploader->flush();
+}
+
void ResourceProvider::flush()
{
DCHECK(Proxy::isImplThread());
@@ -515,7 +523,7 @@ bool ResourceProvider::initialize()
m_textureCopier = AcceleratedTextureCopier::create(context3d, useBindUniform);
- m_textureUploader = TextureUploader::create(context3d, useMapSub);
+ m_textureUploader = TextureUploader::create(context3d, useMapSub, m_useShallowFlush);
GLC(context3d, context3d->getIntegerv(GL_MAX_TEXTURE_SIZE, &m_maxTextureSize));
return true;
}
« no previous file with comments | « cc/resource_provider.h ('k') | cc/resource_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698