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 #include "cc/quads/draw_quad.h" | 5 #include "cc/quads/draw_quad.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/trace_event/trace_event_argument.h" | 8 #include "base/trace_event/trace_event_argument.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 MathUtil::AddToTracedValue("visible_rect_as_target_space_quad", | 94 MathUtil::AddToTracedValue("visible_rect_as_target_space_quad", |
95 visible_rect_as_target_space_quad, value); | 95 visible_rect_as_target_space_quad, value); |
96 | 96 |
97 value->SetBoolean("visible_rect_is_clipped", visible_rect_is_clipped); | 97 value->SetBoolean("visible_rect_is_clipped", visible_rect_is_clipped); |
98 | 98 |
99 value->SetBoolean("needs_blending", needs_blending); | 99 value->SetBoolean("needs_blending", needs_blending); |
100 value->SetBoolean("should_draw_with_blending", ShouldDrawWithBlending()); | 100 value->SetBoolean("should_draw_with_blending", ShouldDrawWithBlending()); |
101 ExtendValue(value); | 101 ExtendValue(value); |
102 } | 102 } |
103 | 103 |
| 104 DrawQuad::Resources::Resources() : count(0) { |
| 105 for (size_t i = 0; i < kMaxResourceIdCount; ++i) |
| 106 ids[i] = 0; |
| 107 } |
| 108 |
104 } // namespace cc | 109 } // namespace cc |
OLD | NEW |