OLD | NEW |
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 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
10 | 10 |
11 #include "GrContext.h" | 11 #include "GrContext.h" |
12 #include "GrContextFactory.h" | 12 #include "GrContextFactory.h" |
13 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
14 #include "SkCanvas.h" | 14 #include "SkCanvas.h" |
15 #include "SkColor.h" | 15 #include "SkColor.h" |
16 #include "SkGpuDevice.h" | 16 #include "SkGpuDevice.h" |
17 #include "SkPaint.h" | 17 #include "SkPaint.h" |
18 #include "SkPixelRef.h" | 18 #include "SkPixelRef.h" |
19 #include "SkRect.h" | 19 #include "SkRect.h" |
20 #include "Test.h" | 20 #include "Test.h" |
21 #include "TestClassDef.h" | |
22 | 21 |
23 static const char* boolStr(bool value) { | 22 static const char* boolStr(bool value) { |
24 return value ? "true" : "false"; | 23 return value ? "true" : "false"; |
25 } | 24 } |
26 | 25 |
27 // these are in the same order as the SkBitmap::Config enum | 26 // these are in the same order as the SkBitmap::Config enum |
28 static const char* gConfigName[] = { | 27 static const char* gConfigName[] = { |
29 "None", "8888" | 28 "None", "8888" |
30 }; | 29 }; |
31 | 30 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 REPORTER_ASSERT(reporter, success == canSucceed); | 182 REPORTER_ASSERT(reporter, success == canSucceed); |
184 TestIndividualCopy(reporter, gPairs[j].fConfig, success, sub
set, subsetCopy, | 183 TestIndividualCopy(reporter, gPairs[j].fConfig, success, sub
set, subsetCopy, |
185 true); | 184 true); |
186 } | 185 } |
187 } // for (size_t j = ... | 186 } // for (size_t j = ... |
188 } // for (size_t i = ... | 187 } // for (size_t i = ... |
189 } // GrContextFactory::GLContextType | 188 } // GrContextFactory::GLContextType |
190 } | 189 } |
191 | 190 |
192 #endif | 191 #endif |
OLD | NEW |