Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: cc/append_quads_data.h

Issue 11478016: Add a stat to the smoothness benchmark for avg number of missing tiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_APPEND_QUADS_DATA_H_ 5 #ifndef CC_APPEND_QUADS_DATA_H_
6 #define CC_APPEND_QUADS_DATA_H_ 6 #define CC_APPEND_QUADS_DATA_H_
7 7
8 #include "base/basictypes.h"
8 #include "cc/render_pass.h" 9 #include "cc/render_pass.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 struct AppendQuadsData { 13 struct AppendQuadsData {
13 AppendQuadsData() 14 AppendQuadsData()
14 : hadOcclusionFromOutsideTargetSurface(false) 15 : hadOcclusionFromOutsideTargetSurface(false)
15 , hadMissingTiles(false) 16 , numMissingTiles(0)
16 , renderPassId(0, 0) 17 , renderPassId(0, 0)
17 { 18 {
18 } 19 }
19 20
20 explicit AppendQuadsData(RenderPass::Id renderPassId) 21 explicit AppendQuadsData(RenderPass::Id renderPassId)
21 : hadOcclusionFromOutsideTargetSurface(false) 22 : hadOcclusionFromOutsideTargetSurface(false)
22 , hadMissingTiles(false) 23 , numMissingTiles(0)
23 , renderPassId(renderPassId) 24 , renderPassId(renderPassId)
24 { 25 {
25 } 26 }
26 27
27 // Set by the QuadCuller. 28 // Set by the QuadCuller.
28 bool hadOcclusionFromOutsideTargetSurface; 29 bool hadOcclusionFromOutsideTargetSurface;
29 // Set by the layer appending quads. 30 // Set by the layer appending quads.
30 bool hadMissingTiles; 31 int64 numMissingTiles;
31 // Given to the layer appending quads. 32 // Given to the layer appending quads.
32 const RenderPass::Id renderPassId; 33 const RenderPass::Id renderPassId;
33 }; 34 };
34 35
35 } 36 }
36 #endif // CC_APPEND_QUADS_DATA_H_ 37 #endif // CC_APPEND_QUADS_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698