#ifndef CC_SCHEDULER_DRAW_SWAP_READBACK_RESULT_H_
#define CC_SCHEDULER_DRAW_SWAP_READBACK_RESULT_H_
namespace cc {
struct DrawSwapReadbackResult {
enum DrawResult {
INVALID_RESULT,
DRAW_SUCCESS,
DRAW_ABORTED_CHECKERBOARD_ANIMATIONS,
DRAW_ABORTED_MISSING_HIGH_RES_CONTENT,
DRAW_ABORTED_CANT_READBACK,
DRAW_ABORTED_CONTEXT_LOST,
DRAW_ABORTED_CANT_DRAW,
};
DrawSwapReadbackResult()
: draw_result(INVALID_RESULT), did_swap(false), did_readback(false) {}
DrawSwapReadbackResult(DrawResult draw_result,
bool did_swap,
bool did_readback)
: draw_result(draw_result),
did_swap(did_swap),
did_readback(did_readback) {}
DrawResult draw_result;
bool did_swap;
bool did_readback;
};
}
#endif