Revert 264226 "Reduce dependency of TiclInvalidationService on P..."
[chromium-blink-merge.git] / cc / scheduler / draw_swap_readback_result.h
bloba87a08bb7e05c008f5600fb7316958a3aa61704a
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_
8 namespace cc {
10 struct DrawSwapReadbackResult {
11 enum DrawResult {
12 INVALID_RESULT,
13 DRAW_SUCCESS,
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,
24 bool did_swap,
25 bool did_readback)
26 : draw_result(draw_result),
27 did_swap(did_swap),
28 did_readback(did_readback) {}
29 DrawResult draw_result;
30 bool did_swap;
31 bool did_readback;
34 } // namespace cc
36 #endif // CC_SCHEDULER_DRAW_SWAP_READBACK_RESULT_H_