OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_MOCK_OCCLUSION_TRACKER_H_ | 5 #ifndef CC_TEST_MOCK_OCCLUSION_TRACKER_H_ |
6 #define CC_TEST_MOCK_OCCLUSION_TRACKER_H_ | 6 #define CC_TEST_MOCK_OCCLUSION_TRACKER_H_ |
7 | 7 |
8 #include "cc/trees/occlusion_tracker.h" | 8 #include "cc/trees/occlusion_tracker.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 23 matching lines...) Expand all Loading... |
34 OcclusionTracker<LayerType>::stack_.back().occlusion_from_inside_target = | 34 OcclusionTracker<LayerType>::stack_.back().occlusion_from_inside_target = |
35 occluded; | 35 occluded; |
36 } | 36 } |
37 | 37 |
38 void set_occluded_target_rect_for_contributing_surface( | 38 void set_occluded_target_rect_for_contributing_surface( |
39 const gfx::Rect& occluded) { | 39 const gfx::Rect& occluded) { |
40 OcclusionTracker< | 40 OcclusionTracker< |
41 LayerType>::stack_[OcclusionTracker<LayerType>::stack_.size() - 2] | 41 LayerType>::stack_[OcclusionTracker<LayerType>::stack_.size() - 2] |
42 .occlusion_from_inside_target = occluded; | 42 .occlusion_from_inside_target = occluded; |
43 } | 43 } |
| 44 |
| 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(MockOcclusionTracker); |
44 }; | 47 }; |
45 | 48 |
46 } // namespace cc | 49 } // namespace cc |
47 | 50 |
48 #endif // CC_TEST_MOCK_OCCLUSION_TRACKER_H_ | 51 #endif // CC_TEST_MOCK_OCCLUSION_TRACKER_H_ |
OLD | NEW |