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

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: 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/quads/list_container.h" 5 #include "cc/quads/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 12 matching lines...) Expand all
23 return true; 23 return true;
24 } 24 }
25 25
26 bool isConstSharedQuadStatePointer(SharedQuadState* ptr) { 26 bool isConstSharedQuadStatePointer(SharedQuadState* ptr) {
27 return false; 27 return false;
28 } 28 }
29 29
30 class SimpleDrawQuad : public DrawQuad { 30 class SimpleDrawQuad : public DrawQuad {
31 public: 31 public:
32 ~SimpleDrawQuad() override {} 32 ~SimpleDrawQuad() override {}
33 void IterateResources(const ResourceIteratorCallback& callback) override {}
34 33
35 void set_value(int val) { value = val; } 34 void set_value(int val) { value = val; }
36 int get_value() { return value; } 35 int get_value() { return value; }
37 void ExtendValue(base::trace_event::TracedValue* value) const override {} 36 void ExtendValue(base::trace_event::TracedValue* value) const override {}
38 37
39 private: 38 private:
40 int value; 39 int value;
41 }; 40 };
42 41
43 class SimpleDrawQuadConstructMagicNumberOne : public SimpleDrawQuad { 42 class SimpleDrawQuadConstructMagicNumberOne : public SimpleDrawQuad {
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 for (ListContainer<SharedQuadState>::ReverseIterator iter = list.rbegin(); 657 for (ListContainer<SharedQuadState>::ReverseIterator iter = list.rbegin();
659 iter != list.rend(); 658 iter != list.rend();
660 ++iter) { 659 ++iter) {
661 EXPECT_EQ(i, iter.index()); 660 EXPECT_EQ(i, iter.index());
662 ++i; 661 ++i;
663 } 662 }
664 } 663 }
665 664
666 } // namespace 665 } // namespace
667 } // namespace cc 666 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698