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

Side by Side Diff: tests/RecordDrawTest.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/RecordCullingTest.cpp ('k') | tests/RecordTest.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 "SkDebugCanvas.h" 10 #include "SkDebugCanvas.h"
4 #include "SkRecord.h" 11 #include "SkRecord.h"
5 #include "SkRecordCulling.h" 12 #include "SkRecordCulling.h"
6 #include "SkRecordDraw.h" 13 #include "SkRecordDraw.h"
7 #include "SkRecorder.h" 14 #include "SkRecorder.h"
8 #include "SkRecords.h" 15 #include "SkRecords.h"
9 16
10 static const int W = 1920, H = 1080; 17 static const int W = 1920, H = 1080;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 recorder.restore(); 63 recorder.restore();
57 64
58 // Same deal as above: we need full SkCanvas semantics for clip skipping to work. 65 // Same deal as above: we need full SkCanvas semantics for clip skipping to work.
59 SkRecord rerecord; 66 SkRecord rerecord;
60 SkRecorder rerecorder(SkRecorder::kReadWrite_Mode, &rerecord, W, H); 67 SkRecorder rerecorder(SkRecorder::kReadWrite_Mode, &rerecord, W, H);
61 SkRecordDraw(record, &rerecorder); 68 SkRecordDraw(record, &rerecorder);
62 69
63 // All commands except the two marked // Skipped above will be preserved. 70 // All commands except the two marked // Skipped above will be preserved.
64 REPORTER_ASSERT(r, 7 == rerecord.count()); 71 REPORTER_ASSERT(r, 7 == rerecord.count());
65 } 72 }
OLDNEW
« no previous file with comments | « tests/RecordCullingTest.cpp ('k') | tests/RecordTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698