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

Unified Diff: cc/layer_tree_host.h

Issue 11273029: Throttle prepaints to avoid colliding with post-load work (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index c80e79d019e081e833e2f999b83c401e33828c81..88f625e054bb8edf8a3bfc48867fbfe6521f1347 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -9,6 +9,7 @@
#include "IntRect.h"
#include "base/basictypes.h"
+#include "base/cancelable_callback.h"
#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -218,6 +219,7 @@ private:
bool paintMasksForRenderSurface(Layer*, TextureUpdateQueue&);
void updateLayers(Layer*, TextureUpdateQueue&);
+ void triggerPrepaint();
void prioritizeTextures(const LayerList&, OverdrawMetrics&);
void setPrioritiesForSurfaces(size_t surfaceMemoryBytes);
@@ -231,6 +233,8 @@ private:
bool m_animating;
bool m_needsAnimateLayers;
+ base::CancelableClosure m_prepaintCallback;
+
LayerTreeHostClient* m_client;
int m_commitNumber;
« no previous file with comments | « no previous file | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698