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

Side by Side Diff: tests/RecordCullingTest.cpp

Issue 243243003: anticipate more optimizations by renaming some files and methods (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/SkRecording.cpp ('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 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "Test.h" 8 #include "Test.h"
9 9
10 #include "SkRecord.h" 10 #include "SkRecord.h"
11 #include "SkRecordCulling.h" 11 #include "SkRecordOpts.h"
12 #include "SkRecorder.h" 12 #include "SkRecorder.h"
13 #include "SkRecords.h" 13 #include "SkRecords.h"
14 14
15 struct PushCullScanner { 15 struct PushCullScanner {
16 template <typename T> void operator()(const T&) {} 16 template <typename T> void operator()(const T&) {}
17 17
18 SkTDArray<unsigned> fPopOffsets; 18 SkTDArray<unsigned> fPopOffsets;
19 }; 19 };
20 20
21 template <> void PushCullScanner::operator()(const SkRecords::PushCull& record) { 21 template <> void PushCullScanner::operator()(const SkRecords::PushCull& record) {
(...skipping 17 matching lines...) Expand all
39 39
40 SkRecordAnnotateCullingPairs(&record); 40 SkRecordAnnotateCullingPairs(&record);
41 41
42 PushCullScanner scan; 42 PushCullScanner scan;
43 record.visit(scan); 43 record.visit(scan);
44 44
45 REPORTER_ASSERT(r, 2 == scan.fPopOffsets.count()); 45 REPORTER_ASSERT(r, 2 == scan.fPopOffsets.count());
46 REPORTER_ASSERT(r, 6 == scan.fPopOffsets[0]); 46 REPORTER_ASSERT(r, 6 == scan.fPopOffsets[0]);
47 REPORTER_ASSERT(r, 2 == scan.fPopOffsets[1]); 47 REPORTER_ASSERT(r, 2 == scan.fPopOffsets[1]);
48 } 48 }
OLDNEW
« no previous file with comments | « src/record/SkRecording.cpp ('k') | tests/RecordDrawTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698