Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: cc/quads/list_container_unittest.cc

Issue 1152473006: cc: Remove DrawQuad::IterateResoruces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mkwst review Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698