- add sources.
[platform/framework/web/crosswalk.git] / src / cc / layers / append_quads_data.h
1 // 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.
4
5 #ifndef CC_LAYERS_APPEND_QUADS_DATA_H_
6 #define CC_LAYERS_APPEND_QUADS_DATA_H_
7
8 #include "base/basictypes.h"
9 #include "cc/quads/render_pass.h"
10
11 namespace cc {
12
13 struct AppendQuadsData {
14   AppendQuadsData()
15       : had_incomplete_tile(false),
16         num_missing_tiles(0),
17         render_pass_id(0, 0) {}
18
19   explicit AppendQuadsData(RenderPass::Id render_pass_id)
20       : had_incomplete_tile(false),
21         num_missing_tiles(0),
22         render_pass_id(render_pass_id) {}
23
24   // Set by the layer appending quads.
25   bool had_incomplete_tile;
26   // Set by the layer appending quads.
27   int64 num_missing_tiles;
28   // Given to the layer appending quads.
29   const RenderPass::Id render_pass_id;
30 };
31
32 }  // namespace cc
33 #endif  // CC_LAYERS_APPEND_QUADS_DATA_H_