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

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

Issue 18066004: add yee's perceptual metric (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Image3D -> ImageArray 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
« no previous file with comments | « no previous file | experimental/skpdiff/SkPMetric.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkPMetric_DEFINED
9 #define SkPMetric_DEFINED
10
11 #include "SkTDArray.h"
12
13 #include "SkImageDiffer.h"
14
15 /**
16 * An image differ that uses the pdiff image metric to compare images.
17 */
18 class SkPMetric : public SkImageDiffer {
19 public:
20 virtual const char* getName() SK_OVERRIDE;
21 virtual int queueDiff(SkBitmap* baseline, SkBitmap* test) SK_OVERRIDE;
22 virtual bool isFinished(int id) SK_OVERRIDE;
23 virtual double getResult(int id) SK_OVERRIDE;
24
25 private:
26 struct QueuedDiff {
27 bool finished;
28 double result;
29 };
30
31 SkTDArray<QueuedDiff> fQueuedDiffs;
32
33 typedef SkImageDiffer INHERITED;
34 };
35
36
37 #endif
OLDNEW
« no previous file with comments | « no previous file | experimental/skpdiff/SkPMetric.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698