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

Side by Side Diff: tests/CanvasTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tests/CanvasStateTest.cpp ('k') | tests/ChecksumTest.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 /* Description: 9 /* Description:
10 * This test defines a series of elementatry test steps that perform 10 * This test defines a series of elementatry test steps that perform
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "SkPath.h" 56 #include "SkPath.h"
57 #include "SkPicture.h" 57 #include "SkPicture.h"
58 #include "SkPictureRecord.h" 58 #include "SkPictureRecord.h"
59 #include "SkProxyCanvas.h" 59 #include "SkProxyCanvas.h"
60 #include "SkRect.h" 60 #include "SkRect.h"
61 #include "SkRegion.h" 61 #include "SkRegion.h"
62 #include "SkShader.h" 62 #include "SkShader.h"
63 #include "SkStream.h" 63 #include "SkStream.h"
64 #include "SkTDArray.h" 64 #include "SkTDArray.h"
65 #include "Test.h" 65 #include "Test.h"
66 #include "TestClassDef.h"
67 66
68 class Canvas2CanvasClipVisitor : public SkCanvas::ClipVisitor { 67 class Canvas2CanvasClipVisitor : public SkCanvas::ClipVisitor {
69 public: 68 public:
70 Canvas2CanvasClipVisitor(SkCanvas* target) : fTarget(target) {} 69 Canvas2CanvasClipVisitor(SkCanvas* target) : fTarget(target) {}
71 70
72 virtual void clipRect(const SkRect& r, SkRegion::Op op, bool aa) { 71 virtual void clipRect(const SkRect& r, SkRegion::Op op, bool aa) {
73 fTarget->clipRect(r, op, aa); 72 fTarget->clipRect(r, op, aa);
74 } 73 }
75 virtual void clipPath(const SkPath& p, SkRegion::Op op, bool aa) { 74 virtual void clipPath(const SkPath& p, SkRegion::Op op, bool aa) {
76 fTarget->clipPath(p, op, aa); 75 fTarget->clipPath(p, op, aa);
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 SkPictureTester::TestPictureFlattenedObjectReuse(reporter, 911 SkPictureTester::TestPictureFlattenedObjectReuse(reporter,
913 testStepArray()[testStep], 0); 912 testStepArray()[testStep], 0);
914 if (testStepArray()[testStep]->enablePdfTesting()) { 913 if (testStepArray()[testStep]->enablePdfTesting()) {
915 TestPdfDevice(reporter, testStepArray()[testStep]); 914 TestPdfDevice(reporter, testStepArray()[testStep]);
916 } 915 }
917 } 916 }
918 917
919 // Explicitly call reset(), so we don't leak the pixels (since kTestBitmap i s a global) 918 // Explicitly call reset(), so we don't leak the pixels (since kTestBitmap i s a global)
920 kTestBitmap.reset(); 919 kTestBitmap.reset();
921 } 920 }
OLDNEW
« no previous file with comments | « tests/CanvasStateTest.cpp ('k') | tests/ChecksumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698