blob: 4b2e2c02dc38c681e89690291a129f8b929d141c [file] [log] [blame]
khushalsagare3c9fa92015-10-28 02:08:291// Copyright 2015 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.
4
5#ifndef CC_TREES_PROXY_COMMON_H_
6#define CC_TREES_PROXY_COMMON_H_
7
avi02a4d172015-12-21 06:14:368#include <stddef.h>
9
majidvp96452d02016-04-11 20:36:0410#include "base/callback_forward.h"
chrishtrac41ff92017-03-17 05:07:3011#include "cc/cc_export.h"
khushalsagare3c9fa92015-10-28 02:08:2912#include "cc/trees/layer_tree_host_common.h"
Fady Samuelc296f5fb2017-07-21 04:02:1913#include "components/viz/common/frame_sinks/begin_frame_args.h"
khushalsagare3c9fa92015-10-28 02:08:2914
15namespace cc {
khushalsagar37694212016-01-15 20:46:4816
majidvp96452d02016-04-11 20:36:0417using BeginFrameCallbackList = std::vector<base::Closure>;
18
khushalsagare3c9fa92015-10-28 02:08:2919struct CC_EXPORT BeginMainFrameAndCommitState {
20 BeginMainFrameAndCommitState();
21 ~BeginMainFrameAndCommitState();
22
vmpstrd6dce2602016-05-18 20:19:0423 unsigned int begin_frame_id = 0;
Fady Samuelc296f5fb2017-07-21 04:02:1924 viz::BeginFrameArgs begin_frame_args;
danakj60bc3bc2016-04-09 00:24:4825 std::unique_ptr<ScrollAndScaleSet> scroll_info;
vmpstrd6dce2602016-05-18 20:19:0426 size_t memory_allocation_limit_bytes = 0;
27 bool evicted_ui_resources = false;
Vladimir Levinbed5b372017-10-26 23:46:3128 std::vector<std::pair<int, bool>> completed_image_decode_requests;
khushalsagare3c9fa92015-10-28 02:08:2929};
30
31} // namespace cc
32
33#endif // CC_TREES_PROXY_COMMON_H_