| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "TestClassDef.h" | |
| 10 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
| 11 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 12 #include "SkColor.h" | 11 #include "SkColor.h" |
| 13 #include "SkFontHost.h" | 12 #include "SkFontHost.h" |
| 14 #include "SkGraphics.h" | 13 #include "SkGraphics.h" |
| 15 #include "SkPaint.h" | 14 #include "SkPaint.h" |
| 16 #include "SkPoint.h" | 15 #include "SkPoint.h" |
| 17 #include "SkRect.h" | 16 #include "SkRect.h" |
| 18 #include "SkStream.h" | 17 #include "SkStream.h" |
| 19 #include "SkTypeface.h" | 18 #include "SkTypeface.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 SkSafeUnref(paint.setTypeface(streamTypeface)); | 102 SkSafeUnref(paint.setTypeface(streamTypeface)); |
| 104 drawBG(&streamCanvas); | 103 drawBG(&streamCanvas); |
| 105 streamCanvas.drawPosText("A", 1, &point, paint); | 104 streamCanvas.drawPosText("A", 1, &point, paint); |
| 106 | 105 |
| 107 REPORTER_ASSERT(reporter, | 106 REPORTER_ASSERT(reporter, |
| 108 compare(origBitmap, origRect, streamBitmap, streamRect))
; | 107 compare(origBitmap, origRect, streamBitmap, streamRect))
; |
| 109 } | 108 } |
| 110 //Make sure the typeface is deleted and removed. | 109 //Make sure the typeface is deleted and removed. |
| 111 SkGraphics::PurgeFontCache(); | 110 SkGraphics::PurgeFontCache(); |
| 112 } | 111 } |
| OLD | NEW |