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

Unified Diff: cc/CCLayerTreeHost.h

Issue 10916292: Adaptively throttle texture uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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/CCLayerTreeHost.cpp » ('j') | cc/CCLayerTreeHost.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerTreeHost.h
diff --git a/cc/CCLayerTreeHost.h b/cc/CCLayerTreeHost.h
index 6d4c198cd7384becfd111280f3f7d45cfa061de9..b2e79c7c9715127d4383783e6834fab411d58b49 100644
--- a/cc/CCLayerTreeHost.h
+++ b/cc/CCLayerTreeHost.h
@@ -139,7 +139,7 @@ public:
virtual void acquireLayerTextures();
// Returns false if we should abort this frame due to initialization failure.
bool initializeRendererIfNeeded();
- void updateLayers(CCTextureUpdateQueue&, size_t contentsMemoryLimitBytes);
+ void updateLayers(CCTextureUpdateQueue&, size_t contentsMemoryLimitBytes, size_t *maxTextureUpdates);
CCLayerTreeHostClient* client() { return m_client; }
@@ -232,7 +232,7 @@ private:
bool paintLayerContents(const LayerList&, CCTextureUpdateQueue&);
bool paintMasksForRenderSurface(LayerChromium*, CCTextureUpdateQueue&);
- void updateLayers(LayerChromium*, CCTextureUpdateQueue&);
+ void updateLayers(LayerChromium*, CCTextureUpdateQueue&, size_t *maxTextureUpdates);
nduca 2012/09/13 20:23:04 wat?
void prioritizeTextures(const LayerList&, CCOverdrawMetrics&);
void setPrioritiesForSurfaces(size_t surfaceMemoryBytes);
@@ -283,6 +283,7 @@ private:
bool m_hasTransparentBackground;
TextureList m_deleteTextureAfterCommitList;
+ size_t m_maxPartialTextureUpdates;
size_t m_partialTextureUpdateRequests;
static bool s_needsFilterContext;
« no previous file with comments | « no previous file | cc/CCLayerTreeHost.cpp » ('j') | cc/CCLayerTreeHost.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698