Index: cc/scheduler_state_machine.h |
diff --git a/cc/scheduler_state_machine.h b/cc/scheduler_state_machine.h |
index a68350659c64c329c237c5665f841ff7f5bd341e..cac11c4b1a92b40a818bd0a8db2ba513d49bafa6 100644 |
--- a/cc/scheduler_state_machine.h |
+++ b/cc/scheduler_state_machine.h |
@@ -61,6 +61,7 @@ public: |
ACTION_NONE, |
ACTION_BEGIN_FRAME, |
ACTION_COMMIT, |
+ ACTION_CHECK_FOR_NEW_TEXTURES, |
ACTION_ACTIVATE_PENDING_TREE_IF_NEEDED, |
ACTION_DRAW_IF_POSSIBLE, |
ACTION_DRAW_FORCED, |
@@ -86,6 +87,10 @@ public: |
// or the screen being damaged and simply needing redisplay. |
void setNeedsRedraw(); |
+ // Indicates that a redraw is required because we are currently rendererd |
+ // with a low resolution or checkerboarded tile. |
+ void setNeedsRedrawOnVisibleTextureUpload(); |
+ |
// As setNeedsRedraw(), but ensures the draw will definitely happen even if |
// we are not visible. |
void setNeedsForcedRedraw(); |
@@ -149,8 +154,10 @@ protected: |
bool shouldDraw() const; |
bool shouldAttemptTreeActivation() const; |
bool shouldAcquireLayerTexturesForMainThread() const; |
+ bool shouldCheckForNewTextures() const; |
bool hasDrawnThisFrame() const; |
bool hasAttemptedTreeActivationThisFrame() const; |
+ bool hasCheckedForNewTexturesThisFrame() const; |
const SchedulerSettings* const m_settings; |
@@ -159,9 +166,11 @@ protected: |
int m_currentFrameNumber; |
int m_lastFrameNumberWhereDrawWasCalled; |
int m_lastFrameNumberWhereTreeActivationAttempted; |
+ int m_lastFrameNumberWhereCheckForNewTexturesCalled; |
int m_consecutiveFailedDraws; |
int m_maximumNumberOfFailedDrawsBeforeDrawIsForced; |
bool m_needsRedraw; |
+ bool m_needsRedrawOnVisibleTextureUpload; |
bool m_needsForcedRedraw; |
bool m_needsForcedRedrawAfterNextCommit; |
bool m_needsCommit; |