Chromium Code Reviews| 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 19 matching lines...) Expand all Loading... | |
| 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. | 35 * Gets if this differ needs to be initialized with and OpenCL device and co ntext. |
| 36 */ | 36 */ |
| 37 virtual bool requiresOpenCL() { return false; } | 37 virtual bool requiresOpenCL() { return false; } |
| 38 | 38 |
| 39 /** | 39 /** |
| 40 * | |
| 41 */ | |
| 42 virtual void enablePOIAlphaMask() { fPOIAlphaMask = true; } | |
|
epoger
2013/10/21 15:02:53
Related to my comments above about fPOIAlphaMask:
djsollen
2013/11/06 16:02:30
Done.
| |
| 43 | |
| 44 /** | |
| 40 * Wraps a call to queueDiff by loading the given filenames into SkBitmaps | 45 * Wraps a call to queueDiff by loading the given filenames into SkBitmaps |
| 41 * @param baseline The file path of the baseline image | 46 * @param baseline The file path of the baseline image |
| 42 * @param test The file path of the test image | 47 * @param test The file path of the test image |
| 43 * @return The results of queueDiff with the loaded bitmaps | 48 * @return The results of queueDiff with the loaded bitmaps |
| 44 */ | 49 */ |
| 45 int queueDiffOfFile(const char baseline[], const char test[]); | 50 int queueDiffOfFile(const char baseline[], const char test[]); |
| 46 | 51 |
| 47 /** | 52 /** |
| 48 * Queues a diff on a pair of bitmaps to be done at some future time. | 53 * Queues a diff on a pair of bitmaps to be done at some future time. |
| 49 * @param baseline The correct bitmap | 54 * @param baseline The correct bitmap |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 80 */ | 85 */ |
| 81 virtual int getPointsOfInterestCount(int id) = 0; | 86 virtual int getPointsOfInterestCount(int id) = 0; |
| 82 | 87 |
| 83 /** | 88 /** |
| 84 * Gets an array of the points of interest for the diff of the given id. The results are only | 89 * Gets an array of the points of interest for the diff of the given id. The results are only |
| 85 * meaningful after the queued diff has finished. | 90 * meaningful after the queued diff has finished. |
| 86 * @param id The id of the queued diff to query | 91 * @param id The id of the queued diff to query |
| 87 */ | 92 */ |
| 88 virtual SkIPoint* getPointsOfInterest(int id) = 0; | 93 virtual SkIPoint* getPointsOfInterest(int id) = 0; |
| 89 | 94 |
| 95 /* | |
| 96 * | |
| 97 */ | |
| 98 virtual SkBitmap* getPointsOfInterestAlphaMask(int id) { return NULL; } | |
| 90 | 99 |
| 91 | 100 |
| 92 protected: | 101 protected: |
| 93 bool fIsGood; | 102 bool fIsGood; |
| 103 bool fPOIAlphaMask; | |
| 94 }; | 104 }; |
| 95 | 105 |
| 96 | 106 |
| 97 #endif | 107 #endif |
| OLD | NEW |