Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: experimental/skpdiff/SkImageDiffer.h

Issue 19374006: make OpenCL optional for skpdiff (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: this-> Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « experimental/skpdiff/SkDifferentPixelsMetric_opencl.cpp ('k') | experimental/skpdiff/diff_pixels.cl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698