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

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

Issue 645853008: Standardize usage of virtual/override/final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted Created 6 years, 2 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
« no previous file with comments | « cc/quads/io_surface_draw_quad.h ('k') | cc/quads/picture_draw_quad.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 bool isConstSharedQuadStatePointer(const SharedQuadState* ptr) { 22 bool isConstSharedQuadStatePointer(const SharedQuadState* ptr) {
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 virtual ~SimpleDrawQuad() {} 32 ~SimpleDrawQuad() override {}
33 virtual void IterateResources( 33 void IterateResources(const ResourceIteratorCallback& callback) override {}
34 const ResourceIteratorCallback& callback) override {}
35 34
36 void set_value(int val) { value = val; } 35 void set_value(int val) { value = val; }
37 int get_value() { return value; } 36 int get_value() { return value; }
38 virtual void ExtendValue(base::debug::TracedValue* value) const override {} 37 void ExtendValue(base::debug::TracedValue* value) const override {}
39 38
40 private: 39 private:
41 int value; 40 int value;
42 }; 41 };
43 42
44 class SimpleDrawQuadConstructMagicNumberOne : public SimpleDrawQuad { 43 class SimpleDrawQuadConstructMagicNumberOne : public SimpleDrawQuad {
45 public: 44 public:
46 SimpleDrawQuadConstructMagicNumberOne() : SimpleDrawQuad() { 45 SimpleDrawQuadConstructMagicNumberOne() : SimpleDrawQuad() {
47 set_value(kMagicNumberToUseForDrawQuadOne); 46 set_value(kMagicNumberToUseForDrawQuadOne);
48 } 47 }
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 for (ListContainer<SharedQuadState>::ReverseIterator iter = list.rbegin(); 546 for (ListContainer<SharedQuadState>::ReverseIterator iter = list.rbegin();
548 iter != list.rend(); 547 iter != list.rend();
549 ++iter) { 548 ++iter) {
550 EXPECT_EQ(i, iter.index()); 549 EXPECT_EQ(i, iter.index());
551 ++i; 550 ++i;
552 } 551 }
553 } 552 }
554 553
555 } // namespace 554 } // namespace
556 } // namespace cc 555 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/io_surface_draw_quad.h ('k') | cc/quads/picture_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698