| 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/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 PAINT_RECT_TYPE, | 46 PAINT_RECT_TYPE, |
| 47 PROPERTY_CHANGED_RECT_TYPE, | 47 PROPERTY_CHANGED_RECT_TYPE, |
| 48 SURFACE_DAMAGE_RECT_TYPE, | 48 SURFACE_DAMAGE_RECT_TYPE, |
| 49 SCREEN_SPACE_RECT_TYPE, | 49 SCREEN_SPACE_RECT_TYPE, |
| 50 REPLICA_SCREEN_SPACE_RECT_TYPE, | 50 REPLICA_SCREEN_SPACE_RECT_TYPE, |
| 51 OCCLUDING_RECT_TYPE, | 51 OCCLUDING_RECT_TYPE, |
| 52 NONOCCLUDING_RECT_TYPE, | 52 NONOCCLUDING_RECT_TYPE, |
| 53 TOUCH_EVENT_HANDLER_RECT_TYPE, | 53 TOUCH_EVENT_HANDLER_RECT_TYPE, |
| 54 WHEEL_EVENT_HANDLER_RECT_TYPE, | 54 WHEEL_EVENT_HANDLER_RECT_TYPE, |
| 55 NON_FAST_SCROLLABLE_RECT_TYPE, | 55 NON_FAST_SCROLLABLE_RECT_TYPE, |
| 56 ANIMATION_BOUNDS_RECT_TYPE, |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 struct DebugRect { | 59 struct DebugRect { |
| 59 DebugRect(DebugRectType new_type, gfx::RectF new_rect) | 60 DebugRect(DebugRectType new_type, gfx::RectF new_rect) |
| 60 : type(new_type), rect(new_rect) {} | 61 : type(new_type), rect(new_rect) {} |
| 61 | 62 |
| 62 DebugRectType type; | 63 DebugRectType type; |
| 63 gfx::RectF rect; | 64 gfx::RectF rect; |
| 64 }; | 65 }; |
| 65 | 66 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 96 void SaveOccludingRects( | 97 void SaveOccludingRects( |
| 97 const std::vector<gfx::Rect>& occluding_screen_space_rects); | 98 const std::vector<gfx::Rect>& occluding_screen_space_rects); |
| 98 void SaveNonOccludingRects( | 99 void SaveNonOccludingRects( |
| 99 const std::vector<gfx::Rect>& non_occluding_screen_space_rects); | 100 const std::vector<gfx::Rect>& non_occluding_screen_space_rects); |
| 100 void SaveTouchEventHandlerRects(LayerImpl* layer); | 101 void SaveTouchEventHandlerRects(LayerImpl* layer); |
| 101 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); | 102 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); |
| 102 void SaveWheelEventHandlerRects(LayerImpl* layer); | 103 void SaveWheelEventHandlerRects(LayerImpl* layer); |
| 103 void SaveWheelEventHandlerRectsCallback(LayerImpl* layer); | 104 void SaveWheelEventHandlerRectsCallback(LayerImpl* layer); |
| 104 void SaveNonFastScrollableRects(LayerImpl* layer); | 105 void SaveNonFastScrollableRects(LayerImpl* layer); |
| 105 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); | 106 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); |
| 107 void SaveLayerAnimationBoundsRects( |
| 108 const LayerImplList& render_surface_layer_list); |
| 106 | 109 |
| 107 std::vector<DebugRect> debug_rects_; | 110 std::vector<DebugRect> debug_rects_; |
| 108 | 111 |
| 109 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); | 112 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 } // namespace cc | 115 } // namespace cc |
| 113 | 116 |
| 114 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ | 117 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ |
| OLD | NEW |