blob: 1ec8184a17aa225e9b898c47f4e70e0f75304b61 [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
[email protected]f2bbb4e2012-12-07 21:40:498#include "base/basictypes.h"
[email protected]89e82672013-03-18 07:50:569#include "cc/quads/render_pass.h"
[email protected]cd57cc5a2012-10-12 22:43:4110
11namespace cc {
12
[email protected]96baf3e2012-10-22 23:09:5513struct AppendQuadsData {
[email protected]e1e768f2013-03-26 08:48:0914 AppendQuadsData()
15 : had_occlusion_from_outside_target_surface(false),
16 had_incomplete_tile(false),
17 num_missing_tiles(0),
18 render_pass_id(0, 0) {}
[email protected]cd57cc5a2012-10-12 22:43:4119
[email protected]e1e768f2013-03-26 08:48:0920 explicit AppendQuadsData(RenderPass::Id render_pass_id)
21 : had_occlusion_from_outside_target_surface(false),
22 had_incomplete_tile(false),
23 num_missing_tiles(0),
24 render_pass_id(render_pass_id) {}
[email protected]cd57cc5a2012-10-12 22:43:4125
[email protected]e1e768f2013-03-26 08:48:0926 // Set by the QuadCuller.
27 bool had_occlusion_from_outside_target_surface;
28 // Set by the layer appending quads.
29 bool had_incomplete_tile;
30 // Set by the layer appending quads.
31 int64 num_missing_tiles;
32 // Given to the layer appending quads.
33 const RenderPass::Id render_pass_id;
[email protected]cd57cc5a2012-10-12 22:43:4134};
35
[email protected]bf691c22013-03-26 21:15:0636} // namespace cc
[email protected]cc3cfaa2013-03-18 09:05:5237#endif // CC_LAYERS_APPEND_QUADS_DATA_H_