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