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 #ifndef SkImageDiffer_DEFINED | 8 #ifndef SkImageDiffer_DEFINED |
9 #define SkImageDiffer_DEFINED | 9 #define SkImageDiffer_DEFINED |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 virtual const char* getName() = 0; | 26 virtual const char* getName() = 0; |
27 | 27 |
28 /** | 28 /** |
29 * Gets if this differ is in a usable state | 29 * Gets if this differ is in a usable state |
30 * @return True if this differ can be used, false otherwise | 30 * @return True if this differ can be used, false otherwise |
31 */ | 31 */ |
32 bool isGood() { return fIsGood; } | 32 bool isGood() { return fIsGood; } |
33 | 33 |
34 /** | 34 /** |
| 35 * Gets if this differ needs to be initialized with and OpenCL device and co
ntext. |
| 36 */ |
| 37 virtual bool requiresOpenCL() { return false; } |
| 38 |
| 39 /** |
35 * Wraps a call to queueDiff by loading the given filenames into SkBitmaps | 40 * Wraps a call to queueDiff by loading the given filenames into SkBitmaps |
36 * @param baseline The file path of the baseline image | 41 * @param baseline The file path of the baseline image |
37 * @param test The file path of the test image | 42 * @param test The file path of the test image |
38 * @return The results of queueDiff with the loaded bitmaps | 43 * @return The results of queueDiff with the loaded bitmaps |
39 */ | 44 */ |
40 int queueDiffOfFile(const char baseline[], const char test[]); | 45 int queueDiffOfFile(const char baseline[], const char test[]); |
41 | 46 |
42 /** | 47 /** |
43 * Queues a diff on a pair of bitmaps to be done at some future time. | 48 * Queues a diff on a pair of bitmaps to be done at some future time. |
44 * @param baseline The correct bitmap | 49 * @param baseline The correct bitmap |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual SkIPoint* getPointsOfInterest(int id) = 0; | 88 virtual SkIPoint* getPointsOfInterest(int id) = 0; |
84 | 89 |
85 | 90 |
86 | 91 |
87 protected: | 92 protected: |
88 bool fIsGood; | 93 bool fIsGood; |
89 }; | 94 }; |
90 | 95 |
91 | 96 |
92 #endif | 97 #endif |
OLD | NEW |