blob: 18580a9b54cbdabefc00d454cb6c23842cf2620f [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 {
14 AppendQuadsData()
[email protected]cd57cc5a2012-10-12 22:43:4115 : hadOcclusionFromOutsideTargetSurface(false)
[email protected]650b3faf2013-02-06 01:48:2916 , hadIncompleteTile(false)
[email protected]f2bbb4e2012-12-07 21:40:4917 , numMissingTiles(0)
[email protected]cd57cc5a2012-10-12 22:43:4118 , renderPassId(0, 0)
19 {
20 }
21
[email protected]96baf3e2012-10-22 23:09:5522 explicit AppendQuadsData(RenderPass::Id renderPassId)
[email protected]cd57cc5a2012-10-12 22:43:4123 : hadOcclusionFromOutsideTargetSurface(false)
[email protected]650b3faf2013-02-06 01:48:2924 , hadIncompleteTile(false)
[email protected]f2bbb4e2012-12-07 21:40:4925 , numMissingTiles(0)
[email protected]cd57cc5a2012-10-12 22:43:4126 , renderPassId(renderPassId)
27 {
28 }
29
30 // Set by the QuadCuller.
31 bool hadOcclusionFromOutsideTargetSurface;
32 // Set by the layer appending quads.
[email protected]650b3faf2013-02-06 01:48:2933 bool hadIncompleteTile;
34 // Set by the layer appending quads.
[email protected]f2bbb4e2012-12-07 21:40:4935 int64 numMissingTiles;
[email protected]cd57cc5a2012-10-12 22:43:4136 // Given to the layer appending quads.
[email protected]96baf3e2012-10-22 23:09:5537 const RenderPass::Id renderPassId;
[email protected]cd57cc5a2012-10-12 22:43:4138};
39
40}
[email protected]cc3cfaa2013-03-18 09:05:5241#endif // CC_LAYERS_APPEND_QUADS_DATA_H_