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

Side by Side Diff: tests/RecordTest.cpp

Issue 235253002: Mark our territory with (C). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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 | « tests/RecordDrawTest.cpp ('k') | tests/RecorderTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
1 #include "Test.h" 8 #include "Test.h"
2 9
3 #include "SkRecord.h" 10 #include "SkRecord.h"
4 #include "SkRecords.h" 11 #include "SkRecords.h"
5 12
6 // Sums the area of any DrawRect command it sees. 13 // Sums the area of any DrawRect command it sees.
7 class AreaSummer { 14 class AreaSummer {
8 public: 15 public:
9 AreaSummer() : fArea(0) {} 16 AreaSummer() : fArea(0) {}
10 17
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 REPORTER_ASSERT(r, summer.area() == 100); 50 REPORTER_ASSERT(r, summer.area() == 100);
44 51
45 // Scale 2x. 52 // Scale 2x.
46 Stretch stretch; 53 Stretch stretch;
47 record.mutate(stretch); 54 record.mutate(stretch);
48 55
49 // Now its area should be 100 + 400. 56 // Now its area should be 100 + 400.
50 record.visit(summer); 57 record.visit(summer);
51 REPORTER_ASSERT(r, summer.area() == 500); 58 REPORTER_ASSERT(r, summer.area() == 500);
52 } 59 }
OLDNEW
« no previous file with comments | « tests/RecordDrawTest.cpp ('k') | tests/RecorderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698