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 SkDifferentPixelsMetric_DEFINED | 8 #ifndef SkDifferentPixelsMetric_DEFINED |
9 #define SkDifferentPixelsMetric_DEFINED | 9 #define SkDifferentPixelsMetric_DEFINED |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 public SkImageDiffer { | 27 public SkImageDiffer { |
28 #endif | 28 #endif |
29 public: | 29 public: |
30 virtual const char* getName() SK_OVERRIDE; | 30 virtual const char* getName() SK_OVERRIDE; |
31 virtual int queueDiff(SkBitmap* baseline, SkBitmap* test) SK_OVERRIDE; | 31 virtual int queueDiff(SkBitmap* baseline, SkBitmap* test) SK_OVERRIDE; |
32 virtual void deleteDiff(int id) SK_OVERRIDE; | 32 virtual void deleteDiff(int id) SK_OVERRIDE; |
33 virtual bool isFinished(int id) SK_OVERRIDE; | 33 virtual bool isFinished(int id) SK_OVERRIDE; |
34 virtual double getResult(int id) SK_OVERRIDE; | 34 virtual double getResult(int id) SK_OVERRIDE; |
35 virtual int getPointsOfInterestCount(int id) SK_OVERRIDE; | 35 virtual int getPointsOfInterestCount(int id) SK_OVERRIDE; |
36 virtual SkIPoint* getPointsOfInterest(int id) SK_OVERRIDE; | 36 virtual SkIPoint* getPointsOfInterest(int id) SK_OVERRIDE; |
| 37 virtual SkBitmap* getPointsOfInterestAlphaMask(int id) SK_OVERRIDE; |
37 | 38 |
38 protected: | 39 protected: |
39 #if SK_SUPPORT_OPENCL | 40 #if SK_SUPPORT_OPENCL |
40 virtual bool onInit() SK_OVERRIDE; | 41 virtual bool onInit() SK_OVERRIDE; |
41 #endif | 42 #endif |
42 | 43 |
43 private: | 44 private: |
44 struct QueuedDiff; | 45 struct QueuedDiff; |
45 | 46 |
46 SkTDArray<QueuedDiff> fQueuedDiffs; | 47 SkTDArray<QueuedDiff> fQueuedDiffs; |
47 | 48 |
48 #if SK_SUPPORT_OPENCL | 49 #if SK_SUPPORT_OPENCL |
49 cl_kernel fKernel; | 50 cl_kernel fKernel; |
50 | 51 |
51 typedef SkCLImageDiffer INHERITED; | 52 typedef SkCLImageDiffer INHERITED; |
52 #else | 53 #else |
53 typedef SkImageDiffer INHERITED; | 54 typedef SkImageDiffer INHERITED; |
54 #endif | 55 #endif |
55 }; | 56 }; |
56 | 57 |
57 #endif | 58 #endif |
OLD | NEW |