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

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

Issue 1432503003: Comments Style: s/skbug.com/bug.skia.org/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: include Created 5 years, 1 month 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
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/skpdiff_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "SkBitmap.h" 11 #include "SkBitmap.h"
12 12
13 /** 13 /**
14 * Encapsulates an image difference metric algorithm that can be potentially run asynchronously. 14 * Encapsulates an image difference metric algorithm that can be potentially run asynchronously.
15 */ 15 */
16 class SkImageDiffer { 16 class SkImageDiffer {
17 public: 17 public:
18 SkImageDiffer(); 18 SkImageDiffer();
19 virtual ~SkImageDiffer(); 19 virtual ~SkImageDiffer();
20 20
21 static const double RESULT_CORRECT; 21 static const double RESULT_CORRECT;
22 static const double RESULT_INCORRECT; 22 static const double RESULT_INCORRECT;
23 23
24 struct Result { 24 struct Result {
25 double result; 25 double result;
26 int poiCount; 26 int poiCount;
27 // TODO(djsollen): Figure out a way that the differ can report which of the 27 // TODO(djsollen): Figure out a way that the differ can report which of the
28 // optional fields it has filled in. See http://skbug.com/2712 ('allow 28 // optional fields it has filled in. See https://bug.skia.org/2712 ('al low
29 // skpdiff to report different sets of result fields for different compa rison algorithms') 29 // skpdiff to report different sets of result fields for different compa rison algorithms')
30 SkBitmap poiAlphaMask; // optional 30 SkBitmap poiAlphaMask; // optional
31 SkBitmap rgbDiffBitmap; // optional 31 SkBitmap rgbDiffBitmap; // optional
32 SkBitmap whiteDiffBitmap; // optional 32 SkBitmap whiteDiffBitmap; // optional
33 int maxRedDiff; // optional 33 int maxRedDiff; // optional
34 int maxGreenDiff; // optional 34 int maxGreenDiff; // optional
35 int maxBlueDiff; // optional 35 int maxBlueDiff; // optional
36 double timeElapsed; // optional 36 double timeElapsed; // optional
37 }; 37 };
38 38
(...skipping 25 matching lines...) Expand all
64 * @param baseline The correct bitmap 64 * @param baseline The correct bitmap
65 * @param test The bitmap whose difference is being tested 65 * @param test The bitmap whose difference is being tested
66 * @param bitmapsToCreate Which bitmaps the differ should attempt to creat e 66 * @param bitmapsToCreate Which bitmaps the differ should attempt to creat e
67 * @return true on success, and false in the case of failure 67 * @return true on success, and false in the case of failure
68 */ 68 */
69 virtual bool diff(SkBitmap* baseline, SkBitmap* test, const BitmapsToCreate& bitmapsToCreate, 69 virtual bool diff(SkBitmap* baseline, SkBitmap* test, const BitmapsToCreate& bitmapsToCreate,
70 Result* result) const = 0; 70 Result* result) const = 0;
71 }; 71 };
72 72
73 #endif 73 #endif
OLDNEW
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/skpdiff_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698