blob: 89930a5c898ea41f35746f076d5ecdfdb9f032ce [file] [log] [blame]
[email protected]0fb25002012-10-12 07:20:021// Copyright 2012 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.
[email protected]cd57cc5a2012-10-12 22:43:414
[email protected]cc3cfaa2013-03-18 09:05:525#ifndef CC_LAYERS_APPEND_QUADS_DATA_H_
6#define CC_LAYERS_APPEND_QUADS_DATA_H_
[email protected]cd57cc5a2012-10-12 22:43:417
avi02a4d172015-12-21 06:14:368#include <stdint.h>
fsamuela4f81d1f2017-04-07 18:32:389#include <vector>
10
11#include "cc/cc_export.h"
Fady Samueld5c26182017-07-12 02:43:3312#include "components/viz/common/surface_id.h"
avi02a4d172015-12-21 06:14:3613
[email protected]cd57cc5a2012-10-12 22:43:4114namespace cc {
15
vollickc9a27cb2016-01-07 20:16:3216// Set by the layer appending quads.
fsamuela4f81d1f2017-04-07 18:32:3817class CC_EXPORT AppendQuadsData {
18 public:
19 AppendQuadsData();
20 ~AppendQuadsData();
21
vollickc9a27cb2016-01-07 20:16:3222 int64_t num_incomplete_tiles = 0;
23 int64_t num_missing_tiles = 0;
24 int64_t visible_layer_area = 0;
25 int64_t approximated_visible_content_area = 0;
[email protected]cd57cc5a2012-10-12 22:43:4126
vollickc9a27cb2016-01-07 20:16:3227 // This is total of the following two areas.
28 int64_t checkerboarded_visible_content_area = 0;
29 // This is the area outside interest rect.
30 int64_t checkerboarded_no_recording_content_area = 0;
31 // This is the area within interest rect.
32 int64_t checkerboarded_needs_raster_content_area = 0;
fsamuela8d297dd2017-05-05 16:11:5733 // This is the set of surface IDs that must have corresponding
34 // active CompositorFrames so that this CompositorFrame can
35 // activate.
Fady Samueld5c26182017-07-12 02:43:3336 std::vector<viz::SurfaceId> activation_dependencies;
[email protected]cd57cc5a2012-10-12 22:43:4137};
38
[email protected]bf691c22013-03-26 21:15:0639} // namespace cc
[email protected]cc3cfaa2013-03-18 09:05:5240#endif // CC_LAYERS_APPEND_QUADS_DATA_H_