OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CCDamageTracker_h | 5 #ifndef CCDamageTracker_h |
6 #define CCDamageTracker_h | 6 #define CCDamageTracker_h |
7 | 7 |
8 #include "FloatRect.h" | 8 #include "FloatRect.h" |
9 #include <wtf/HashMap.h> | 9 #include <wtf/HashMap.h> |
10 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
11 #include <wtf/Vector.h> | 11 #include <wtf/Vector.h> |
12 | 12 |
13 namespace WebKit { | 13 namespace WebKit { |
14 class WebFilterOperations; | 14 class WebFilterOperations; |
15 } | 15 } |
16 | 16 |
17 namespace WebCore { | 17 namespace cc { |
18 | 18 |
19 class CCLayerImpl; | 19 class CCLayerImpl; |
20 class CCRenderSurface; | 20 class CCRenderSurface; |
21 | 21 |
22 // Computes the region where pixels have actually changed on a RenderSurface. Th
is region is used | 22 // Computes the region where pixels have actually changed on a RenderSurface. Th
is region is used |
23 // to scissor what is actually drawn to the screen to save GPU computation and b
andwidth. | 23 // to scissor what is actually drawn to the screen to save GPU computation and b
andwidth. |
24 class CCDamageTracker { | 24 class CCDamageTracker { |
25 public: | 25 public: |
26 static PassOwnPtr<CCDamageTracker> create(); | 26 static PassOwnPtr<CCDamageTracker> create(); |
27 ~CCDamageTracker(); | 27 ~CCDamageTracker(); |
(...skipping 22 matching lines...) Expand all Loading... |
50 // The "current" map is used to compute exposed regions of the current frame
, while | 50 // The "current" map is used to compute exposed regions of the current frame
, while |
51 // the "next" map is used to collect layer rects that are used in the next f
rame. | 51 // the "next" map is used to collect layer rects that are used in the next f
rame. |
52 typedef HashMap<int, FloatRect> RectMap; | 52 typedef HashMap<int, FloatRect> RectMap; |
53 OwnPtr<RectMap> m_currentRectHistory; | 53 OwnPtr<RectMap> m_currentRectHistory; |
54 OwnPtr<RectMap> m_nextRectHistory; | 54 OwnPtr<RectMap> m_nextRectHistory; |
55 | 55 |
56 FloatRect m_currentDamageRect; | 56 FloatRect m_currentDamageRect; |
57 bool m_forceFullDamageNextUpdate; | 57 bool m_forceFullDamageNextUpdate; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace WebCore | 60 } // namespace cc |
61 | 61 |
62 #endif // CCDamageTracker_h | 62 #endif // CCDamageTracker_h |
OLD | NEW |