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 #include "cc/base/list_container.h" | 5 #include "cc/base/list_container.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include "cc/quads/draw_quad.h" | 8 #include "cc/quads/draw_quad.h" |
9 #include "cc/quads/largest_draw_quad.h" | 9 #include "cc/quads/largest_draw_quad.h" |
10 #include "cc/quads/render_pass_draw_quad.h" | 10 #include "cc/quads/render_pass_draw_quad.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 return true; | 25 return true; |
26 } | 26 } |
27 | 27 |
28 bool isConstSharedQuadStatePointer(SharedQuadState* ptr) { | 28 bool isConstSharedQuadStatePointer(SharedQuadState* ptr) { |
29 return false; | 29 return false; |
30 } | 30 } |
31 | 31 |
32 class SimpleDrawQuad : public DrawQuad { | 32 class SimpleDrawQuad : public DrawQuad { |
33 public: | 33 public: |
34 ~SimpleDrawQuad() override {} | 34 ~SimpleDrawQuad() override {} |
35 void IterateResources(const ResourceIteratorCallback& callback) override {} | |
36 | 35 |
37 void set_value(int val) { value = val; } | 36 void set_value(int val) { value = val; } |
38 int get_value() { return value; } | 37 int get_value() { return value; } |
39 void ExtendValue(base::trace_event::TracedValue* value) const override {} | 38 void ExtendValue(base::trace_event::TracedValue* value) const override {} |
40 | 39 |
41 private: | 40 private: |
42 int value; | 41 int value; |
43 }; | 42 }; |
44 | 43 |
45 class SimpleDrawQuadConstructMagicNumberOne : public SimpleDrawQuad { | 44 class SimpleDrawQuadConstructMagicNumberOne : public SimpleDrawQuad { |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 i = 0; | 644 i = 0; |
646 for (ListContainer<SharedQuadState>::ReverseIterator iter = list.rbegin(); | 645 for (ListContainer<SharedQuadState>::ReverseIterator iter = list.rbegin(); |
647 iter != list.rend(); ++iter) { | 646 iter != list.rend(); ++iter) { |
648 EXPECT_EQ(i, iter.index()); | 647 EXPECT_EQ(i, iter.index()); |
649 ++i; | 648 ++i; |
650 } | 649 } |
651 } | 650 } |
652 | 651 |
653 } // namespace | 652 } // namespace |
654 } // namespace cc | 653 } // namespace cc |
OLD | NEW |