| 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 CC_DEBUG_DEBUG_RECT_HISTORY_H_ | 5 #ifndef CC_DEBUG_DEBUG_RECT_HISTORY_H_ |
| 6 #define CC_DEBUG_DEBUG_RECT_HISTORY_H_ | 6 #define CC_DEBUG_DEBUG_RECT_HISTORY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/layers/layer_collections.h" | 11 #include "cc/layers/layer_collections.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 class LayerImpl; | 16 class LayerImpl; |
| 17 class LayerTreeDebugState; | 17 class LayerTreeDebugState; |
| 18 class LayerTreeImpl; |
| 18 | 19 |
| 19 // There are currently six types of debug rects: | 20 // There are currently six types of debug rects: |
| 20 // | 21 // |
| 21 // - Paint rects (update rects): regions of a layer that needed to be | 22 // - Paint rects (update rects): regions of a layer that needed to be |
| 22 // re-uploaded to the texture resource; in most cases implying that they had to | 23 // re-uploaded to the texture resource; in most cases implying that they had to |
| 23 // be repainted, too. | 24 // be repainted, too. |
| 24 // | 25 // |
| 25 // - Property-changed rects: enclosing bounds of layers that cause changes to | 26 // - Property-changed rects: enclosing bounds of layers that cause changes to |
| 26 // the screen even if the layer did not change internally. (For example, if the | 27 // the screen even if the layer did not change internally. (For example, if the |
| 27 // layer's opacity or position changes.) | 28 // layer's opacity or position changes.) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 private: | 78 private: |
| 78 DebugRectHistory(); | 79 DebugRectHistory(); |
| 79 | 80 |
| 80 void SavePaintRects(LayerImpl* layer); | 81 void SavePaintRects(LayerImpl* layer); |
| 81 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list, | 82 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list, |
| 82 LayerImpl* hud_layer); | 83 LayerImpl* hud_layer); |
| 83 void SaveSurfaceDamageRects( | 84 void SaveSurfaceDamageRects( |
| 84 const LayerImplList& render_surface_layer_list); | 85 const LayerImplList& render_surface_layer_list); |
| 85 void SaveScreenSpaceRects( | 86 void SaveScreenSpaceRects( |
| 86 const LayerImplList& render_surface_layer_list); | 87 const LayerImplList& render_surface_layer_list); |
| 87 void SaveTouchEventHandlerRects(LayerImpl* layer); | 88 void SaveTouchEventHandlerRects(LayerTreeImpl* layer); |
| 88 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); | 89 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); |
| 89 void SaveWheelEventHandlerRects(LayerImpl* layer); | 90 void SaveWheelEventHandlerRects(LayerImpl* layer); |
| 90 void SaveScrollEventHandlerRects(LayerImpl* layer); | 91 void SaveScrollEventHandlerRects(LayerTreeImpl* layer); |
| 91 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer); | 92 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer); |
| 92 void SaveNonFastScrollableRects(LayerImpl* layer); | 93 void SaveNonFastScrollableRects(LayerTreeImpl* layer); |
| 93 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); | 94 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); |
| 94 void SaveLayerAnimationBoundsRects( | 95 void SaveLayerAnimationBoundsRects( |
| 95 const LayerImplList& render_surface_layer_list); | 96 const LayerImplList& render_surface_layer_list); |
| 96 | 97 |
| 97 std::vector<DebugRect> debug_rects_; | 98 std::vector<DebugRect> debug_rects_; |
| 98 | 99 |
| 99 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); | 100 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace cc | 103 } // namespace cc |
| 103 | 104 |
| 104 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ | 105 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ |
| OLD | NEW |