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/RecordCullingTest.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 | « src/record/SkRecords.h ('k') | tests/RecordDrawTest.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 "SkRecordCulling.h" 11 #include "SkRecordCulling.h"
5 #include "SkRecorder.h" 12 #include "SkRecorder.h"
6 #include "SkRecords.h" 13 #include "SkRecords.h"
7 14
8 struct PushCullScanner { 15 struct PushCullScanner {
9 template <typename T> void operator()(const T&) {} 16 template <typename T> void operator()(const T&) {}
10 17
(...skipping 21 matching lines...) Expand all
32 39
33 SkRecordAnnotateCullingPairs(&record); 40 SkRecordAnnotateCullingPairs(&record);
34 41
35 PushCullScanner scan; 42 PushCullScanner scan;
36 record.visit(scan); 43 record.visit(scan);
37 44
38 REPORTER_ASSERT(r, 2 == scan.fPopOffsets.count()); 45 REPORTER_ASSERT(r, 2 == scan.fPopOffsets.count());
39 REPORTER_ASSERT(r, 6 == scan.fPopOffsets[0]); 46 REPORTER_ASSERT(r, 6 == scan.fPopOffsets[0]);
40 REPORTER_ASSERT(r, 2 == scan.fPopOffsets[1]); 47 REPORTER_ASSERT(r, 2 == scan.fPopOffsets[1]);
41 } 48 }
OLDNEW
« no previous file with comments | « src/record/SkRecords.h ('k') | tests/RecordDrawTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698