OLD | NEW |
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 CCDebugRectHistory_h | 5 #ifndef CCDebugRectHistory_h |
6 #define CCDebugRectHistory_h | 6 #define CCDebugRectHistory_h |
7 | 7 |
8 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
9 | 9 |
10 #include "FloatRect.h" | 10 #include "FloatRect.h" |
11 #include "IntRect.h" | 11 #include "IntRect.h" |
12 #include <wtf/Noncopyable.h> | 12 #include <wtf/Noncopyable.h> |
13 #include <wtf/PassOwnPtr.h> | 13 #include <wtf/PassOwnPtr.h> |
14 #include <wtf/Vector.h> | 14 #include <wtf/Vector.h> |
15 | 15 |
16 namespace WebCore { | 16 namespace cc { |
17 | 17 |
18 class CCLayerImpl; | 18 class CCLayerImpl; |
19 struct CCLayerTreeSettings; | 19 struct CCLayerTreeSettings; |
20 | 20 |
21 // There are currently six types of debug rects: | 21 // There are currently six types of debug rects: |
22 // | 22 // |
23 // - Paint rects (update rects): regions of a layer that needed to be re-uploade
d to the | 23 // - Paint rects (update rects): regions of a layer that needed to be re-uploade
d to the |
24 // texture resource; in most cases implying that WebCore had to repaint them,
too. | 24 // texture resource; in most cases implying that they had to be repainted, too
. |
25 // | 25 // |
26 // - Property-changed rects: enclosing bounds of layers that cause changes to th
e screen | 26 // - Property-changed rects: enclosing bounds of layers that cause changes to th
e screen |
27 // even if the layer did not change internally. (For example, if the layer's o
pacity or | 27 // even if the layer did not change internally. (For example, if the layer's o
pacity or |
28 // position changes.) | 28 // position changes.) |
29 // | 29 // |
30 // - Surface damage rects: the aggregate damage on a target surface that is caus
ed by all | 30 // - Surface damage rects: the aggregate damage on a target surface that is caus
ed by all |
31 // layers and surfaces that contribute to it. This includes (1) paint rects, (
2) property- | 31 // layers and surfaces that contribute to it. This includes (1) paint rects, (
2) property- |
32 // changed rects, and (3) newly exposed areas. | 32 // changed rects, and (3) newly exposed areas. |
33 // | 33 // |
34 // - Screen space rects: this is the region the contents occupy in screen space. | 34 // - Screen space rects: this is the region the contents occupy in screen space. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 void savePaintRects(CCLayerImpl*); | 70 void savePaintRects(CCLayerImpl*); |
71 void savePropertyChangedRects(const Vector<CCLayerImpl*>& renderSurfaceLayer
List); | 71 void savePropertyChangedRects(const Vector<CCLayerImpl*>& renderSurfaceLayer
List); |
72 void saveSurfaceDamageRects(const Vector<CCLayerImpl* >& renderSurfaceLayerL
ist); | 72 void saveSurfaceDamageRects(const Vector<CCLayerImpl* >& renderSurfaceLayerL
ist); |
73 void saveScreenSpaceRects(const Vector<CCLayerImpl* >& renderSurfaceLayerLis
t); | 73 void saveScreenSpaceRects(const Vector<CCLayerImpl* >& renderSurfaceLayerLis
t); |
74 void saveOccludingRects(const Vector<IntRect>& occludingScreenSpaceRects); | 74 void saveOccludingRects(const Vector<IntRect>& occludingScreenSpaceRects); |
75 | 75 |
76 Vector<CCDebugRect> m_debugRects; | 76 Vector<CCDebugRect> m_debugRects; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace WebCore | 79 } // namespace cc |
80 | 80 |
81 #endif // USE(ACCELERATED_COMPOSITING) | 81 #endif // USE(ACCELERATED_COMPOSITING) |
82 | 82 |
83 #endif | 83 #endif |
OLD | NEW |