summaryrefslogtreecommitdiffstats
path: root/cc/scheduler_state_machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/scheduler_state_machine.h')
-rw-r--r--cc/scheduler_state_machine.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/cc/scheduler_state_machine.h b/cc/scheduler_state_machine.h
index 1ac14ec9..51b8ddd 100644
--- a/cc/scheduler_state_machine.h
+++ b/cc/scheduler_state_machine.h
@@ -39,10 +39,10 @@ public:
LAYER_TEXTURE_STATE_ACQUIRED_BY_IMPL_THREAD,
};
- enum ContextState {
- CONTEXT_ACTIVE,
- CONTEXT_LOST,
- CONTEXT_RECREATING,
+ enum OutputSurfaceState {
+ OUTPUT_SURFACE_ACTIVE,
+ OUTPUT_SURFACE_LOST,
+ OUTPUT_SURFACE_RECREATING,
};
bool commitPending() const
@@ -58,7 +58,7 @@ public:
ACTION_COMMIT,
ACTION_DRAW_IF_POSSIBLE,
ACTION_DRAW_FORCED,
- ACTION_BEGIN_CONTEXT_RECREATION,
+ ACTION_BEGIN_OUTPUT_SURFACE_RECREATION,
ACTION_ACQUIRE_LAYER_TEXTURES_FOR_MAIN_THREAD,
};
Action nextAction() const;
@@ -120,8 +120,8 @@ public:
// when such behavior would be undesirable.
void setCanDraw(bool can) { m_canDraw = can; }
- void didLoseContext();
- void didRecreateContext();
+ void didLoseOutputSurface();
+ void didRecreateOutputSurface();
// Exposed for testing purposes.
void setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int);
@@ -155,7 +155,7 @@ protected:
bool m_canDraw;
bool m_drawIfPossibleFailed;
TextureState m_textureState;
- ContextState m_contextState;
+ OutputSurfaceState m_outputSurfaceState;
DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
};