| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkCanvas.h" | 8 #include "SkCanvas.h" |
| 9 #include "SkData.h" | 9 #include "SkData.h" |
| 10 #include "SkDevice.h" | 10 #include "SkDevice.h" |
| 11 #include "SkImageEncoder.h" | 11 #include "SkImageEncoder.h" |
| 12 #include "SkImage_Base.h" | 12 #include "SkImage_Base.h" |
| 13 #include "SkPath.h" |
| 13 #include "SkRRect.h" | 14 #include "SkRRect.h" |
| 14 #include "SkSurface.h" | 15 #include "SkSurface.h" |
| 15 #include "SkUtils.h" | 16 #include "SkUtils.h" |
| 16 #include "Test.h" | 17 #include "Test.h" |
| 17 | 18 |
| 18 #if SK_SUPPORT_GPU | 19 #if SK_SUPPORT_GPU |
| 19 #include "GrContextFactory.h" | 20 #include "GrContextFactory.h" |
| 20 #include "GrTest.h" | 21 #include "GrTest.h" |
| 21 #else | 22 #else |
| 22 class GrContextFactory; | 23 class GrContextFactory; |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 test_image_color(reporter, refImg, expected1); | 987 test_image_color(reporter, refImg, expected1); |
| 987 #endif | 988 #endif |
| 988 test_image_color(reporter, cpyImg, expected0); | 989 test_image_color(reporter, cpyImg, expected0); |
| 989 | 990 |
| 990 // Now exercise the release proc | 991 // Now exercise the release proc |
| 991 REPORTER_ASSERT(reporter, !releaseCtx.fIsReleased); | 992 REPORTER_ASSERT(reporter, !releaseCtx.fIsReleased); |
| 992 refImg.reset(NULL); // force a release of the image | 993 refImg.reset(NULL); // force a release of the image |
| 993 REPORTER_ASSERT(reporter, releaseCtx.fIsReleased); | 994 REPORTER_ASSERT(reporter, releaseCtx.fIsReleased); |
| 994 } | 995 } |
| 995 #endif | 996 #endif |
| OLD | NEW |