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

Unified Diff: cc/scheduler_state_machine.h

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/scheduler.cc ('k') | cc/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler_state_machine.h
===================================================================
--- cc/scheduler_state_machine.h (revision 171405)
+++ cc/scheduler_state_machine.h (working copy)
@@ -39,10 +39,10 @@
LAYER_TEXTURE_STATE_ACQUIRED_BY_IMPL_THREAD,
};
- enum OutputSurfaceState {
- OUTPUT_SURFACE_ACTIVE,
- OUTPUT_SURFACE_LOST,
- OUTPUT_SURFACE_RECREATING,
+ enum ContextState {
+ CONTEXT_ACTIVE,
+ CONTEXT_LOST,
+ CONTEXT_RECREATING,
};
bool commitPending() const
@@ -58,7 +58,7 @@
ACTION_COMMIT,
ACTION_DRAW_IF_POSSIBLE,
ACTION_DRAW_FORCED,
- ACTION_BEGIN_OUTPUT_SURFACE_RECREATION,
+ ACTION_BEGIN_CONTEXT_RECREATION,
ACTION_ACQUIRE_LAYER_TEXTURES_FOR_MAIN_THREAD,
};
Action nextAction() const;
@@ -120,8 +120,8 @@
// when such behavior would be undesirable.
void setCanDraw(bool can) { m_canDraw = can; }
- void didLoseOutputSurface();
- void didRecreateOutputSurface();
+ void didLoseContext();
+ void didRecreateContext();
// Exposed for testing purposes.
void setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int);
@@ -155,7 +155,7 @@
bool m_canDraw;
bool m_drawIfPossibleFailed;
TextureState m_textureState;
- OutputSurfaceState m_outputSurfaceState;
+ ContextState m_contextState;
DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
};
« no previous file with comments | « cc/scheduler.cc ('k') | cc/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698