1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_SCHEDULER_DRAW_SWAP_READBACK_RESULT_H_
6 #define CC_SCHEDULER_DRAW_SWAP_READBACK_RESULT_H_
10 struct DrawSwapReadbackResult
{
14 DRAW_ABORTED_CHECKERBOARD_ANIMATIONS
,
15 DRAW_ABORTED_MISSING_HIGH_RES_CONTENT
,
16 DRAW_ABORTED_CANT_READBACK
,
17 DRAW_ABORTED_CONTEXT_LOST
,
18 DRAW_ABORTED_CANT_DRAW
,
21 DrawSwapReadbackResult()
22 : draw_result(INVALID_RESULT
), did_swap(false), did_readback(false) {}
23 DrawSwapReadbackResult(DrawResult draw_result
,
26 : draw_result(draw_result
),
28 did_readback(did_readback
) {}
29 DrawResult draw_result
;
36 #endif // CC_SCHEDULER_DRAW_SWAP_READBACK_RESULT_H_