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

Side by Side Diff: tests/RecorderTest.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/RecordTest.cpp ('k') | tests/RecordingTest.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 "SkRecorder.h" 11 #include "SkRecorder.h"
5 #include "SkRecords.h" 12 #include "SkRecords.h"
6 13
7 #define COUNT(T) + 1 14 #define COUNT(T) + 1
8 static const int kRecordTypes = SK_RECORD_TYPES(COUNT); 15 static const int kRecordTypes = SK_RECORD_TYPES(COUNT);
9 #undef COUNT 16 #undef COUNT
10 17
(...skipping 16 matching lines...) Expand all
27 SkRecord record; 34 SkRecord record;
28 SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, 1920, 1080); 35 SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, 1920, 1080);
29 36
30 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); 37 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint());
31 38
32 Tally tally; 39 Tally tally;
33 record.visit(tally); 40 record.visit(tally);
34 41
35 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>()); 42 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>());
36 } 43 }
OLDNEW
« no previous file with comments | « tests/RecordTest.cpp ('k') | tests/RecordingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698